Python Basic #1

Python Basic #1

9th Grade

25 Qs

quiz-placeholder

Similar activities

Python for Absolute Beginners

Python for Absolute Beginners

8th - 12th Grade

25 Qs

Python Quiz 1

Python Quiz 1

9th - 12th Grade

20 Qs

Beginner Python KS3 Revision

Beginner Python KS3 Revision

8th - 10th Grade

26 Qs

Python basics yr7

Python basics yr7

6th - 9th Grade

20 Qs

Unit 1 Test

Unit 1 Test

9th - 12th Grade

20 Qs

Intro to Python BBG

Intro to Python BBG

9th - 11th Grade

25 Qs

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

Python Basics

Python Basics

8th - 12th Grade

23 Qs

Python Basic #1

Python Basic #1

Assessment

Quiz

Computers

9th Grade

Hard

Created by

Alfian Syafii

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 4 pts

What symbol is used in python to assign values to a variable?

equals (=)

plus (+) 

forward slash (/)

asterisk (*)

2.

MULTIPLE CHOICE QUESTION

30 sec • 4 pts

What will be the output?

name = "Dave"

print (name)

Dave

'Dave'

name

(name)

3.

MULTIPLE CHOICE QUESTION

30 sec • 4 pts

Which statement correctly assigns the string "Tanner" to the variable name?
name  = print( "Tanner")
input("Tanner")
name = "Tanner"
name = input("Tanner")

4.

MULTIPLE CHOICE QUESTION

30 sec • 4 pts

What does the print function do in python?
It's a variable.
It can input data.

It displays an output

It loops the code.

5.

MULTIPLE CHOICE QUESTION

30 sec • 4 pts

Media Image
In the following code, "city" is an example of a what?
List
Loop
Variable
Array

6.

MULTIPLE CHOICE QUESTION

30 sec • 4 pts

What is the output from the following code?

print ("hello world")

Hello World
hello world
print hello world

"hello world"

7.

MULTIPLE CHOICE QUESTION

30 sec • 4 pts

What will be the output?

name = "Dave"

print ("name")

Dave

"Dave"

name

"name"

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?