Python Basic #1

Python Basic #1

9th Grade

25 Qs

quiz-placeholder

Similar activities

Unit 1 Test

Unit 1 Test

9th - 12th Grade

20 Qs

Quiz1_7A

Quiz1_7A

2nd Grade - Professional Development

20 Qs

Python Essentials 119

Python Essentials 119

9th - 12th Grade

20 Qs

Python Basics

Python Basics

7th - 9th Grade

23 Qs

Coding Math Python 222

Coding Math Python 222

9th Grade

20 Qs

Python for Absolute Beginners

Python for Absolute Beginners

8th - 12th Grade

25 Qs

Python Final-Exam

Python Final-Exam

9th Grade

21 Qs

Python basics yr7

Python basics yr7

6th - 9th Grade

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