Quick Lookup - Printing Variables

Quick Lookup - Printing Variables

8th Grade

19 Qs

quiz-placeholder

Similar activities

Understanding Iteration and Selection

Understanding Iteration and Selection

8th Grade

19 Qs

Database Concepts and MS Access Assessment

Database Concepts and MS Access Assessment

8th Grade - University

15 Qs

ÔN TẬP CRV1

ÔN TẬP CRV1

6th Grade - University

22 Qs

RBT TAHUN 4 : Aplikasi Scratch

RBT TAHUN 4 : Aplikasi Scratch

6th - 8th Grade

20 Qs

Python String Operations Quiz

Python String Operations Quiz

8th Grade

18 Qs

Google sheets

Google sheets

7th Grade - University

14 Qs

Selection Programming_If condition

Selection Programming_If condition

8th Grade - University

15 Qs

List | Set | String - Nâng cao (1)

List | Set | String - Nâng cao (1)

6th - 8th Grade

23 Qs

Quick Lookup - Printing Variables

Quick Lookup - Printing Variables

Assessment

Quiz

Information Technology (IT)

8th Grade

Hard

Created by

Peter Billett

Used 1+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

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'?

true
1
2 > 1
false

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?