x=16.345
print(x-int(x))
What will output?
Unit 2 Review 1
Quiz
•
Computers
•
12th Grade
•
Hard
Barbara Anderson
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x=16.345
print(x-int(x))
What will output?
16.345
16
0.345
x
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When would you NOT use a string
To store a number such as 2.56
To store a name
To store a list of words
To store a list of phone numbers
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x = input("Enter a number: ")
print(int(x))
What happens is the user types A when the code runs?
It prints the A
It prints 65
It prints 1
An error occurs
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is NOT a data type in Python?
integer
float
string
decimal
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What numbers might this code generate?
x = random.randint( 1 , 10 )
0
1.4
5
11
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is NOT a built-in function in Python?
print( )
string( )
int( )
float( )
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To generate numbers between and including -3 to 3 you would use:
randint(-3, 3)
random.random(-3, 3)
random.random( )*3 + 1
random.randint(-3, 3)
10 questions
Functions and Parameters Summative preview
Quiz
•
9th - 12th Grade
10 questions
Python
Quiz
•
1st - 12th Grade
15 questions
Python Inbuilt functions
Quiz
•
12th Grade
11 questions
Python Projects Quiz
Quiz
•
6th Grade - University
10 questions
Белгіленген сипаттары бар элементті іздеу
Quiz
•
9th - 12th Grade
15 questions
Жанар214
Quiz
•
9th Grade - University
10 questions
Exploring Python: Input and Output Essentials
Quiz
•
9th Grade - University
10 questions
AP CSA Unit 1 & 2 Review
Quiz
•
9th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University