Python Test 2

Python Test 2

9th - 12th Grade

41 Qs

quiz-placeholder

Similar activities

Latihan Soal AAS Ganjil Kelas 7

Latihan Soal AAS Ganjil Kelas 7

7th Grade - University

40 Qs

Final Revision G12_2T

Final Revision G12_2T

12th Grade

37 Qs

[SMP-IX] ASAS 2024 Ganjil

[SMP-IX] ASAS 2024 Ganjil

9th Grade - University

40 Qs

BTec DIT Comp3 - Revision

BTec DIT Comp3 - Revision

10th - 12th Grade

40 Qs

KOMPUTER AKUNTASI_MYOB

KOMPUTER AKUNTASI_MYOB

12th Grade

40 Qs

Ulangan Akhir Semester Siskomdig

Ulangan Akhir Semester Siskomdig

10th Grade

40 Qs

GCSE Computing Quiz

GCSE Computing Quiz

7th - 11th Grade

45 Qs

KHỐI 9 - GIỮA KÌ 1

KHỐI 9 - GIỮA KÌ 1

9th Grade

36 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:

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?