
Quiz #5 - Python

Quiz
•
Instructional Technology
•
University
•
Medium
Carmeli Marie Joy Samson
Used 9+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is Python syntax for creating a variable and assigning the number 10 to it?
def variable_name = 10
variable_name = 10
new variable_name = 10
variable_name == 10
2.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Which of the following defined variables is a string?
cool_variable_2
cool_variable_4
cool_variable_3
cool_variable_1
3.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is the value of modulo_varibale in the following expressions?
modulo_variable = 14 % 4
3.5
56
2
4
4.
MULTIPLE CHOICE QUESTION
45 sec • 3 pts
How does one define multi-line string in Python?
***
Like
This
***
###
Like
This
###
" " "
like
This
" " "
5.
MULTIPLE CHOICE QUESTION
45 sec • 3 pts
How do you combine two strings?
string1 + string2
string1.concatenate(string2)
string1.combine(string2)
6.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What is the difference between float and int?
A float can only be used with whole numbers. An int can be any number with decimal point.
A float represents decimal quantities. An int represents whole numbers.
A float contains text information. An int is any number.
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What number is saved to exponented_variable in the following expression?
exponented_variable = 2 ** 4
16
8
32
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Python Operators

Quiz
•
University
10 questions
Lambda Expressions_v1.0

Quiz
•
University
10 questions
22AD003

Quiz
•
University
15 questions
Python Internship Quiz

Quiz
•
12th Grade - University
10 questions
Estructuras Selectivas C++

Quiz
•
7th Grade - Professio...
10 questions
Fundamentos de Programación

Quiz
•
University
12 questions
Secuencias

Quiz
•
7th Grade - University
17 questions
Python While Loops 2022

Quiz
•
8th Grade - University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade