Python 2.1 quiz

Python 2.1 quiz

9th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

Python Lesson 1 - Homework

Python Lesson 1 - Homework

8th - 9th Grade

10 Qs

Python

Python

3rd - 10th Grade

10 Qs

Python 2

Python 2

9th - 12th Grade

10 Qs

Python Variables

Python Variables

7th - 12th Grade

10 Qs

Python L1 Quiz 4: Lists

Python L1 Quiz 4: Lists

1st - 12th Grade

10 Qs

2.1.2 Flowcharts and algorithms

2.1.2 Flowcharts and algorithms

10th Grade

10 Qs

Introduction to Python

Introduction to Python

9th Grade

10 Qs

Python 2.1 quiz

Python 2.1 quiz

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Scott Freeman

Used 1+ times

FREE Resource

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]