
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
10 questions
Contact Center Sevices
Quiz
•
7th - 10th Grade
10 questions
Quiz 8 (01.09.2021)
Quiz
•
1st - 12th Grade
8 questions
Basic computer
Quiz
•
9th - 12th Grade
12 questions
OCR Internet Technologies
Quiz
•
10th - 11th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
10 questions
S2 Subject Choice Quiz
Quiz
•
8th - 10th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
11 questions
Programming basics
Quiz
•
10th - 11th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
