Python 2.1 quiz

Python 2.1 quiz

9th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

TIN 10 BÀI F14

TIN 10 BÀI F14

10th Grade

10 Qs

Tin 10 - Định dạng văn bản

Tin 10 - Định dạng văn bản

10th Grade

10 Qs

Одновимірні масиви.

Одновимірні масиви.

10th Grade

10 Qs

Информатика 8ә-сынып

Информатика 8ә-сынып

11th Grade

10 Qs

Recap

Recap

12th Grade

10 Qs

Asesmen Diagnostik Informatika XI

Asesmen Diagnostik Informatika XI

10th Grade

10 Qs

Microsoft Excel էլեկտրոնային աղյուսակ

Microsoft Excel էլեկտրոնային աղյուսակ

12th Grade

10 Qs

9-րդ դասարան  Թեմատիկ գրավոր աշխատանք

9-րդ դասարան Թեմատիկ գրավոր աշխատանք

9th Grade

10 Qs

Python 2.1 quiz

Python 2.1 quiz

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Easy

Created by

Scott Freeman

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

6 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

explain what would print in the following code without coding it

print("My \nname \n is \nBond.", end=" ")

print("James Bond.")

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

Correct the following code so it will work in the manner it is intended using the sep=

print(sep="&", "fish" , "chips")

Evaluate responses using AI:

OFF

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following lines of code would make a SyntaxError?

print('Freg\'s book.')

print (" ' Greg's book.' ")

print(' "Greg\'s book." ')

print("Greg\'s book.")

print(' "Greg's book." ')

4.

OPEN ENDED QUESTION

3 mins • 1 pt

Explain what the part of the code that has sep= "-*-" would do to each argument of a line of code?

Evaluate responses using AI:

OFF

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to print "Hello, World!" in Python?

print(Hello, World!)

print("Hello, World!")

echo "Hello, World!"

printf("Hello, World!")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct way to print "parsley, sage, rosemary, and thyme"?

print parsley, sage, rosemary, and thyme
print "parsley, sage, rosemary, and thyme"
print("parsley, sage, rosemary, and thyme")
print[parsley, sage, rosemary, and thyme]

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?