Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

QMB3302 EXAM 1 -LATEST update- QUESTIONS AND ANSWERS 100- CORRECT

Rating
-
Sold
-
Pages
31
Grade
A+
Uploaded on
17-02-2026
Written in
2025/2026

QMB3302 EXAM 1 -LATEST update- QUESTIONS AND ANSWERS 100- CORRECT

Content preview

QMB3302 EXAM 1 {LATEST 2026 -2027
update} QUESTIONS AND ANSWERS 100%
CORRECT

What is the MISSING row in the middle of the for loop?(replace the word MISSING with


the right code)




Total=0


For metas in range (1, 5):


MISSING


Print(total) - correct answer total += metas




Imagine we have a dataframe, df. What would be the purpose for running code like the


one below? (why would we run it?)




Df.loc[1] - correct answer To look for, retrieve a value from df

,Imagine we have a pandas dataframe we have named 'df'.




The dataframe consists of 2 columns.




"col1" is 30 values long, and is a random mix of the letters 'a', 'b', and 'c'.


"num1" is also 30 values long, and is a random set of numerical data (all integers).




Which of the following would give you the mean of the numerical (num1) column,


grouped by the values from column "col1"? - correct answer df.groupby('col1'). Mean()




What is the shape of the following numpy array?




Np.random.seed(1955)x = np.random.randn(2, 2, 2, 2)


Print(x.shape)

,X




#Hint: I have not loaded the necessary package here...but you should(load pandas,


import numpy) - correct answer (2, 2, 2, 2)




What is the output of the following code?


Import numpy as np


List1 = [5, 5, 5]


List2 = [10, 10, 10]


Np_list1 = np.array(list1)


Np_list2 = np.array(list2)


Np_list1/np_list2 - correct answer array([0.5, 0.5 0.5])

, Numpy allows us to do more complicated math on lists and other data structures, and


is used in most of the more advanced modules we will use (such as pandas) - correct


answer true




Pandas can be imported as import pandas as pd - correct answer true




Usually a programmer will use conventional names when importing packages. But it is


not strictly necessary. Numpy for example can be imported as: import numpy as


humpty_dumpty - correct answer true




Pandas allows us to use multiple different data types (like objects and numbers) in a


single table. - correct answer true




For pandas to work, data must be formatted as lists before it is imported - correct


answer false

Document information

Uploaded on
February 17, 2026
Number of pages
31
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$14.49
Get access to the full document:

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

Get to know the seller
Seller avatar
ACEGLOBAL

Get to know the seller

Seller avatar
ACEGLOBAL Teachme2-tutor
View profile
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
5 months
Number of followers
0
Documents
197
Last sold
-
course hero

Ace Your Exams with Premium Study Materials! Unlock your full potential with our expertly crafted revision materials. Whether you\'re prepping for exams, quizzes, or looking to solidify your understanding, Our study guides, summaries, and Questions banks are designated to simplify complex topics and enhance your knowledge retention. What to Expect Comprehensive Summaries: Key points made easy for quick revision. Test Banks: Practice with real exam- questions. Exam Prep Guides: Focused content to boost your scores. Instant Access: Download and start studying immediately! Don’t just study harder—study smarter! Excel in your exams with our trusted materials. Study, Learn and Excel

Read more Read less
0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced 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