What will the following code print? age = 10 print('His age is:', age)

Quick Lookup - Printing Variables

Quiz
•
Information Technology (IT)
•
8th Grade
•
Hard
Peter Billett
Used 1+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
His age is: age
His age is: 10
His age is: {age}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using curly braces {} in an f-string?
Example:
print(f"Hello {name}")
To add comments
To insert the value of a variable
To create a list
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The function int() is used to:
Convert a string to an integer
Convert an integer to a string
Convert a string to a float
Convert an integer to an integer
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank: The '!=' operator means ________.
not equal to
equal to
greater than
less than
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression '1 > 2'?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank: The '<' operator is used to check if one value is ________ than another.
less
greater
equal
not equal
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What does the '+' operator represent in programming?
Addition
Subtraction
Multiplication
Division
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Quiz sobre el ornitorrinco y la programación

Quiz
•
8th Grade - University
20 questions
Python Programming Quiz

Quiz
•
8th Grade
20 questions
Ch. 5 Exam Review

Quiz
•
8th Grade
14 questions
Computer Science Vocabulary Quiz

Quiz
•
8th Grade
23 questions
Soal Latihan Blockly kelas 8

Quiz
•
8th Grade - University
17 questions
Programski jezik Python

Quiz
•
8th Grade
20 questions
quiz1B1

Quiz
•
7th Grade - University
20 questions
G08- ICT Q1 Reviewer

Quiz
•
8th Grade
Popular Resources on Quizizz
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
Discover more resources for Information Technology (IT)
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons

Quiz
•
8th Grade