
Revision and Extended Learning for Lab 1
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Careene McCallum
Used 2+ times
FREE Resource
Enhance your content in a minute
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What TYPE of value is stored in the variable num?
Integer
Float
String
Boolean
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the value of ans if num is 12?
4.0
4
4.33
TypeError: unsupported operand type(s) for /: 'str' and 'int'
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
What correction should be made to line 2 to ensure proper execution? NB: There are TWO possible answers.
ans = float(num) /3
ans = num(float) / 3
ans = f"{float(num) / 3}"
ans = f"(float(num) / 3)"
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What value is printed if the user enters 12?
TypeError: unsupported operand type(s) for /: 'str' and 'int'
4.33
4
4.0
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the data type of formatted_num?
str
int
float
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the data type for formatted_num?
str
int
float
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of :d in the f-string?
It ensures that the variable num_items is treated as an integer when formatting the output.
It formats the number as a string.
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
23 questions
ICEBERG_Assessment_Pre
Quiz
•
University - Professi...
23 questions
Module 3. Exploitation
Quiz
•
University
23 questions
T-Mobile Quiz 2
Quiz
•
University
23 questions
Object-Oriented Design Final Exam
Quiz
•
University
21 questions
Sorting algorithms I
Quiz
•
University
21 questions
1 бет параллель
Quiz
•
University
22 questions
FUNDAMENTAL CONCEPTS (VIDEO)
Quiz
•
University
22 questions
representing numbers (lesson 1 plenary)
Quiz
•
6th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
