MAC - Unit 2
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Ryan Geary
Used 10+ times
FREE Resource
Enhance your content
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which line of code outputs a decimal portion of float stored in the variable: x
print (x / 1000)
print (x - int(x))
print (x)
print (x % 1000)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Three of the following values could be stored as strings. When would you NOT use a string command?
To store a list of colors
To store decimal values
To store a word
To store values NOT used for calculations
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following code:
x = int(input("Enter a number: ")
print (x)
What happens if the user types in A?
It prints 65
It prints A
This would cause an error: An integer variable cannot store a string
This would cause an error: int and input cannot be used together.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a data type in Python?
float
string
decimal
integer
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following numbers might this code generate:
import random
random.randint(1,9)
10
1
11
0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is NOT a build-in function in python?
sqrt()
string()
fabs()
print()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To generate numbers between and including -10 to 10 you would use:
random.random()*20 + (-10)
randint(-10, 10)
random.random(-10, 10)
random.randint(-10, 10)
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Unit Test 1 Class 8 Computer
Quiz
•
8th - 9th Grade
15 questions
9 сынып массив2
Quiz
•
9th Grade
20 questions
Q1 M3 PRE-TEST
Quiz
•
10th Grade
20 questions
HTML5 Basics
Quiz
•
7th - 10th Grade
14 questions
PRA TEST KE 2 INFORMATIKA
Quiz
•
10th Grade
20 questions
Computer Science - X
Quiz
•
8th - 10th Grade
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
20 questions
File Extensions
Quiz
•
9th Grade - Professio...
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
18 questions
Artificial Intelligence and Machine Learning Quiz
Quiz
•
9th Grade
35 questions
Computer Terminology Exercise #1 ( Multiple Choice)
Quiz
•
9th Grade
20 questions
Computer Components Exercise #4 - CTEA
Quiz
•
9th - 12th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade