Year 8  Python EOT 3 test

Year 8 Python EOT 3 test

8th Grade

17 Qs

quiz-placeholder

Similar activities

topologies

topologies

7th - 8th Grade

13 Qs

Unit Test 1 Class 8 Computer

Unit Test 1 Class 8 Computer

8th - 9th Grade

20 Qs

ÔN TẬP TIN 8 GIỮA KÌ 2

ÔN TẬP TIN 8 GIỮA KÌ 2

8th Grade

13 Qs

L4 Homework

L4 Homework

8th Grade

20 Qs

Google

Google

7th - 12th Grade

20 Qs

M1_Final_Quiz1_2017

M1_Final_Quiz1_2017

7th - 8th Grade

20 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

Creating Webpages

Creating Webpages

6th - 8th Grade

12 Qs

Year 8  Python EOT 3 test

Year 8 Python EOT 3 test

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

Shamim Fatima

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is a correct syntax to output "Hello World" in Python?

write (Hello World)

Print('Hello World')

print "Hello World"

print('Hello World')

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the syntax error in the following code? 


   print('Hello)

Missing parentheses

Missing closing quote

Incorrect indentation

Missing colon

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is a string in Python?

A number

A sequence of characters

A boolean value

A function

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How would you fix the following code to use a single quote inside the string?  


      print('I'm using a single quote!')

Use double quotes around the string

Remove the single quote

Use a backslash before the single quote

Use triple quotes around the string

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the name of the variable in the following code?


  greeting='Hello!'

name

Hello

greeting

variable

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which one is NOT a legal variable name?

flavour

flavour_choice

flavour!!

flavour123

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Why is xyz not a good variable name?

It is too short and not descriptive

It contains invalid characters

It starts with a number

It is a reserved word in Python

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?