Search Header Logo

GCSE Programming Quiz 2

Authored by Theodore Coley

Computers

9th Grade

Used 19+ times

GCSE Programming Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the value `42` in Python?

String

Integer

Float

Boolean

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used for exponential?

//

**

%

!=

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used for floor division?

//

**

%

!=

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to assign a value to a variable?

=

==

:=

=>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to check if two values are equal in Python?

=

==

!=

<=

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the value `True` in Python?

String

Integer

Float

Boolean

7.

MULTIPLE CHOICE QUESTION

45 sec • 3 pts

What is the output of the following statement

num1=23

num2=24

if num2 == num1:

print ("Hello")

elif num1 >= num2:

print ("goodbye")

elif num1 < num2:

print (" see you soon)

goodbye

hello

see you soon

print nothing

Access all questions and much more by creating a free account

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

Already have an account?