Python Test 2

Python Test 2

9th - 12th Grade

41 Qs

quiz-placeholder

Similar activities

Computer Network

Computer Network

12th Grade - University

40 Qs

Uji Pengetahuan Sistem Komputer

Uji Pengetahuan Sistem Komputer

11th Grade

45 Qs

L3 Digital Technology (entry test)

L3 Digital Technology (entry test)

11th - 12th Grade

45 Qs

KIỂM TRA CUỐI HỌC KỲ II MÔN TIN LỚP 9 KNTT

KIỂM TRA CUỐI HỌC KỲ II MÔN TIN LỚP 9 KNTT

9th Grade

40 Qs

Quiz-PTS2-TIK Gr4

Quiz-PTS2-TIK Gr4

4th Grade - University

45 Qs

Unit 2 Creating Systems to Manage Information Quiz

Unit 2 Creating Systems to Manage Information Quiz

12th Grade

41 Qs

UH INFORMATIKA KLS X AK 2

UH INFORMATIKA KLS X AK 2

10th Grade

40 Qs

BÀI TẬP CHƯƠNG III TIN HỌC 10

BÀI TẬP CHƯƠNG III TIN HỌC 10

10th Grade

44 Qs

Python Test 2

Python Test 2

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

41 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is it called when you combine 2 strings into one?

Addition
Return value
Modular design
Concatenation

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is the assignment operator (symbol) in the following code.
message = input("Enter message: ")

(
)
"
=

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is the difference between these two lines of code
print("name")
print(name)

One will print " " marks and the other will not
One prints the word name, and the other prints whatever is assigned the name variable
One prints out name, the other gets input and stores it in name
There is no difference, they both do the same thing

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What happens if you run the following code?
 
foo = "a string"

foo and "a string" are printed
"a string" is added onto to the end of foo
The value "a string" is stored in the variable foo
The user is asked to enter "foo" into the console

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

Look at this code, what is the variable? 

0
4
for
i

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

What will the following lines of code print?

A
B
C
A
C
Nothing, it will return an error.

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which statement will check to see if a is equal to b?

if a == b
if a = b:
if a != b:
if a == b:

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?