
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
8 questions
prueba de examen

Quiz
•
University
10 questions
Fundamentos de JavaScript y DOM

Quiz
•
University
10 questions
BUCLES

Quiz
•
University
10 questions
Exploring Word Clines

Quiz
•
University
15 questions
Preguntas de JavaScript

Quiz
•
University
15 questions
Python Internship Quiz

Quiz
•
12th Grade - University
10 questions
8 ICT diagnostic test

Quiz
•
8th Grade - University
10 questions
Robotics/Coding Pop Quiz

Quiz
•
4th Grade - Professio...
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Instructional Technology
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University