
Programming Library Routines Activity
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
JackR JackR
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Round 18.7356 to two decimal place would use the pseudocode?
ROUND(18.7356, 2)
ROUND(Distance, 2)
ROUND(18.7356, 1)
ROUND(18.7356, 0)
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the pseudocode to carry out the following? Round 18.7356 to one decimal place
ROUND(18.7356, 0)
ROUND(18.7356, 3)
ROUND(18.7356, 2)
ROUND(18.7356, 1)
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
How could you create a random integer between 0 and 100?
ROUND(RANDOM() * 100, 3)
ROUND(RANDOM() * 100, 2)
ROUND(RANDOM() * 100, 0)
ROUND(RANDOM() * 100, 1)
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Explain what the following algorithm does: import statistics ages = [18,2,14,6] a = min(Ages) b = max(Ages) c = sum(Ages) d = statistics.mean(ages) ages.sort() print(ages) print(a,b,c,d) if 14 in ages: print("14 present")
Prints the sorted ages and their minimum, maximum, sum, and mean. Then checks if 14 is present in the ages.
Prints the sorted ages and their maximum, minimum, sum, and mean. Then checks if 14 is present in the ages.
Prints the sorted ages and their sum, minimum, maximum, and mean. Then checks if 14 is present in the ages.
Prints the sorted ages and their mean, maximum, minimum, sum. Then checks if 14 is present in the ages.
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What would the pseudocode be to convert the floating point number stored in totalBill to two decimal places?
ROUND(totalBill, 3)
ROUND(totalBill, 1)
ROUND(totalBill, 2)
ROUND(totalBill, 0)
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
How could you simulate the throw of a dice?
import random dice = random.randint(1, 5) print(dice)
import random dice = random.randint(0, 5) print(dice)
import random dice = random.randint(1, 6) print(dice)
import random dice = random.randint(0, 6) print(dice)
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
A random number between 0 and 100 can be generated with a statement such as
RANDOM() * 102
RANDOM() * 99
RANDOM() * 101
RANDOM() * 100
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Digital Etiquette
Quiz
•
4th Grade - University
10 questions
Keyboarding Terms
Quiz
•
9th - 12th Grade
15 questions
CIW
Quiz
•
9th - 12th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
10 questions
Online Databases vs. Search Engines
Quiz
•
6th - 10th Grade
10 questions
Microsoft Publisher
Quiz
•
7th - 10th Grade
10 questions
Logic Gates
Quiz
•
9th - 12th Grade
14 questions
Computing figures
Quiz
•
4th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
