Python (grade 7)

Python (grade 7)

7th Grade

14 Qs

quiz-placeholder

Similar activities

Python - Data types and Conditional statements

Python - Data types and Conditional statements

4th - 8th Grade

10 Qs

Python

Python

1st - 10th Grade

10 Qs

Python Basics

Python Basics

6th - 7th Grade

15 Qs

Python Programming

Python Programming

7th - 9th Grade

10 Qs

Python

Python

7th Grade

10 Qs

Python Basics

Python Basics

4th - 7th Grade

10 Qs

Python Variables

Python Variables

7th - 12th Grade

10 Qs

why python

why python

6th - 8th Grade

11 Qs

Python (grade 7)

Python (grade 7)

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Ameera Omoush

Used 1K+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the code print?

a= 10

b= 18

if (a > b):

print("Hello")

else:

print("Bye")

18

Hello

10

Bye

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will this code print?

a = 3*2

print(a)

3

3*2

6

2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command will display the text 'Hello world!' on the screen?

print(Hello world!)

print=Hello world!

print ("Hello world!")

print Hello world!

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of this command? print ("5 + 3")

5+3

5

8

3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which decision statement will be triggered if the variable x is less than 20?

if > 20:

if == 20:

if <20:

if != 20:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these tests whether the variable x is the same as 'Hello'?

x != Hello

x = "Hello"

x <> Hello

x == "Hello"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable?

A piece of data that can change

A piece of data you cannot change

A coding technique

A special file

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?