Year 8  Python EOT 3 test

Year 8 Python EOT 3 test

8th Grade

17 Qs

quiz-placeholder

Similar activities

Conditions

Conditions

8th - 10th Grade

16 Qs

Microcontrolere Noțiuni generale. Structura internă

Microcontrolere Noțiuni generale. Structura internă

KG - 12th Grade

16 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

Ultrasonic Sensor and Parking Assistance Quiz

Ultrasonic Sensor and Parking Assistance Quiz

8th Grade

20 Qs

Introduction to E-commerce chapter 10 (RB3)

Introduction to E-commerce chapter 10 (RB3)

6th - 8th Grade

20 Qs

ÔN TẬP WHILE DO VÀ FOR TO DO

ÔN TẬP WHILE DO VÀ FOR TO DO

8th Grade

20 Qs

EXAMEN-2°AÑO-INFORMATICA P3-2021

EXAMEN-2°AÑO-INFORMATICA P3-2021

1st - 9th Grade

13 Qs

Year 8 Lists

Year 8 Lists

8th Grade

20 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?