Python Basics 2019

Python Basics 2019

7th Grade

49 Qs

quiz-placeholder

Similar activities

Y9 Python Turing 2023

Y9 Python Turing 2023

6th - 8th Grade

50 Qs

QBASIC For Grade 6

QBASIC For Grade 6

5th - 10th Grade

45 Qs

Ulangkaji ASK Ting 2 Bab 3.1 Persekitaran Kod Arahan

Ulangkaji ASK Ting 2 Bab 3.1 Persekitaran Kod Arahan

1st - 12th Grade

52 Qs

ECDL Python Lesson Boolean recap

ECDL Python Lesson Boolean recap

5th Grade - University

49 Qs

GCSE Python Legends

GCSE Python Legends

1st - 12th Grade

45 Qs

Year 8 Python Programming

Year 8 Python Programming

6th - 8th Grade

50 Qs

Python programming Grade 7

Python programming Grade 7

7th Grade

46 Qs

Python G7

Python G7

7th Grade

45 Qs

Python Basics 2019

Python Basics 2019

Assessment

Quiz

Computers

7th Grade

Hard

Created by

Martin Molloy

Used 163+ times

FREE Resource

49 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 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!)

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which command will correctly ask the user for their age?
How old are you = input()
age = input("How old are you?")
input("How old are you?") = age
age = input(How old are you?)

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which function will convert a number to a string?
chr()
int()
str()
ord()

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which function will convert a string containing only digits into a number?
str()
chr()
int()
ord()

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these statements means

if the variable x is less than 20?

if x == 20:

if x <> 20:

if x > 20:

if x < 20:

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these tests whether the variable x is the same as 'Hello'?
x = "Hello"
x == "Hello"
x <>'Hello'
x != "Hello"

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?