BADM /
211-
/ /
EXAM
/ //
1 /
Coding
/ /
practice exam questions with correct answers
/ // // // // //
Business /
/Analytics //- /
/CORRECT /
/ANSWERS(S)✔✔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()) //- /
/CORRECT //ANSWERS(S)✔✔Converts //string //into //upper //case //& //converts //it //to //new //string
Import //required //packages:
pandas, /
/numpy, /
/matplotlib.pylab /
/with //aliases //pd, //np, //plt, //respectively //- //CORRECT //ANSWERS(S)✔✔import //pandas //as //pd
, import //numpy //as //mp
import //matplotlib.pylab //as //plt
Create //
a //list //with //5 //prime //numbers //- //CORRECT //ANSWERS(S)✔✔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] //- //CORRECT //ANSWERS(S)✔✔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] //- //CORRECT //ANSWERS(S)✔✔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] //- //CORRECT //ANSWERS(S)✔✔sum(prime_numbers[0:5])
output: //18
Write //
a/
211-
/ /
EXAM
/ //
1 /
Coding
/ /
practice exam questions with correct answers
/ // // // // //
Business /
/Analytics //- /
/CORRECT /
/ANSWERS(S)✔✔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()) //- /
/CORRECT //ANSWERS(S)✔✔Converts //string //into //upper //case //& //converts //it //to //new //string
Import //required //packages:
pandas, /
/numpy, /
/matplotlib.pylab /
/with //aliases //pd, //np, //plt, //respectively //- //CORRECT //ANSWERS(S)✔✔import //pandas //as //pd
, import //numpy //as //mp
import //matplotlib.pylab //as //plt
Create //
a //list //with //5 //prime //numbers //- //CORRECT //ANSWERS(S)✔✔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] //- //CORRECT //ANSWERS(S)✔✔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] //- //CORRECT //ANSWERS(S)✔✔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] //- //CORRECT //ANSWERS(S)✔✔sum(prime_numbers[0:5])
output: //18
Write //
a/