• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Start selling Create your account
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

Badm 211- Exam 1 Coding Practice Questions And Answers Already Passed

Document preview thumbnail
Preview 1 out of 4 pages

BADM 211- EXAM 1 CODING PRACTICE QUESTIONS AND ANSWERS ALREADY PASSED Business Analytics - Answers The science of transforming data into insights and models that lead to better decisions and add value to individuals, companies and societies. print(my_()) - Answers Converts string into upper case & converts it to new string Import required packages: pandas, numpy, with aliases pd, np, plt, respectively - Answers import pandas as pd import numpy as mp import as plt Create a list with 5 prime numbers - Answers prime_numbers[2, 3, 5, 7, 11] The code to print the third prime number in a list prime_numbers=[2, 3, 5, 7, 11] - Answers prime_numbers[2] output: 5 Write the code to print the sum of the 2nd and 4th prime number in a list prime_numbers=[2, 3, 5, 7, 11] - Answers prime_numbers[1] + prime_numbers[3] output: 10 Write the code that outputs the sum of the first 5 prime numbers prime_numbers=[2, 3, 5, 7, 11] - Answers sum(prime_numbers[0:5]) output: 18 Write a code to print the value responding to key, name - Answers my_profile["name"] output: Breena Define a dictionary with keys: name, password, birth_month, email, major. Name it my_profile. - Answers my_profile={"name":"Breena ", "password":"jimmyjohns", "birth_month":"march", "email":"", "major":"information systems"} modify the value corresponding to key, password

Content preview

BADM 211- EXAM 1 CODING PRACTICE QUESTIONS AND ANSWERS ALREADY PASSED

Business Analytics - Answers The science of transforming data into insights and models that
lead to better decisions and add value to individuals, companies and societies.

print(my_name.upper()) - Answers Converts string into upper case & converts it to new string

Import required packages:

pandas, numpy, matplotlib.pylab with aliases pd, np, plt, respectively - Answers import pandas
as pd

import numpy as mp

import matplotlib.pylab as plt

Create a list with 5 prime numbers - Answers prime_numbers[2, 3, 5, 7, 11]

The code to print the third prime number in a list



prime_numbers=[2, 3, 5, 7, 11] - Answers prime_numbers[2]



output: 5

Write the code to print the sum of the 2nd and 4th prime number in a list



prime_numbers=[2, 3, 5, 7, 11] - Answers prime_numbers[1] + prime_numbers[3]



output: 10

Write the code that outputs the sum of the first 5 prime numbers



prime_numbers=[2, 3, 5, 7, 11] - Answers sum(prime_numbers[0:5])



output: 18

Write a code to print the value responding to key, name - Answers my_profile["name"]

Document information

Uploaded on
November 19, 2025
Number of pages
4
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
£8.16

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TutorJosh
3.5
(76)
Sold
502
Followers
16
Items
32970
Last sold
1 day ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions