
CSC500 Unit 1 Quiz Reset
Quiz
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Hard
Used 25+ times
FREE Resource
Enhance your content in a minute
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Khalid has a shop that sells computer parts. The prices for
each part are listed in the table below.
Which of the following is the correct way to declare a DataFrame horizontally to store the prices?
prices = [250,1000,250,500]
prices = pd.DataFrame( [[250,1000,250,500]] )
prices = pd.DataFrame( [250,1000,250,500] )
prices = [[250,1000,250,500]]
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Amani is conducting a chemistry experiment. She collected the weight and volume data for 3 different objects as shown in the table.
Which of the following are the correct indices for the columns?
0, 1
0, 1, 2, 3
1, 2
1, 2, 3, 4
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Using the table in question 2 fill in the blank the numbers that will make the output 4:
print(weight_volume.loc[___ , ___])
0, 3
1, 4
1, 3
0, 4
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Ahmad wants to track his weekly activity by measuring the distance he covers. He created a table to store his activity for each week, as shown below.
Assume this was stored in a DataFrame called running, Append week 3’s distance to the data (week 3 – 28 km) as a new column.
running[2] = [3, 28]
running[3] = [3, 28]
running.append([3,28], ignore_index=True)
running.append([3,28])
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kholoud is doing a physics experiment that requires her to measure the density of different objects. Information about the objects is shown in the table below.
Which of the following will store data in a pandas DataFrame.
objects = [ [5000,10000,1000] , [2,3,1] ]
objects = pd.DataFrame( [ [5000,10000,1000] , [2,3,1] ] )
objects = pd.DataFrame( [ [5000,2] , [10000,3] , [1000,1] ] )
objects = [ [5000,2] , [10000,3] , [1000,1] ]
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Based on the table in Q5, which of the following lines of code change the weight unit from gram to kilogram by dividing the values by 1000.
objects.loc[0,0:2] = objects.loc[0, 0:2] / 1000
objects.loc[1,0:2] = objects.loc[1, 0:2] / 1000
weight_kg = weight/1000
objects = objects / 1000
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Based on Q5, calculate the density by dividing the weight in kg over the volume in liters.
density = objects[weight] / objects[volume]
density = weight / volume
density = objects.loc[0, 0:2] / objects.loc[1, 0:2]
density = objects.loc[1, 0:2] / objects.loc[0, 0:2]
Similar Resources on Wayground
10 questions
Sistema Binario
Quiz
•
1st Grade - University
10 questions
Initial Assessment - Cybersecurity Awareness
Quiz
•
9th Grade - Professio...
10 questions
Greetings
Quiz
•
1st Grade - University
10 questions
Численные методы
Quiz
•
12th Grade
10 questions
História e Evolução Sistemas Operativos Servidor
Quiz
•
11th Grade
10 questions
python
Quiz
•
10th Grade
10 questions
Jaringan Komputer / AIJ
Quiz
•
11th Grade
10 questions
Treasure Hunt
Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
