Codeforlife python worksheet 1 - Output, Operators and Data

Codeforlife python worksheet 1 - Output, Operators and Data

8th Grade

28 Qs

quiz-placeholder

Similar activities

Занятие 24_04(Python - повторение)

Занятие 24_04(Python - повторение)

6th - 8th Grade

25 Qs

Підсумкове оцінювання з інформатики за 8 клас

Підсумкове оцінювання з інформатики за 8 клас

8th Grade

25 Qs

TPMM_ X TAV_Gasal 2019

TPMM_ X TAV_Gasal 2019

7th Grade - University

25 Qs

CS 8 CH2|3 History of Computer | Generations of Computer

CS 8 CH2|3 History of Computer | Generations of Computer

8th Grade

25 Qs

Проверочная работа 8 класс (Паскаль)

Проверочная работа 8 класс (Паскаль)

8th Grade

25 Qs

Khám Phá Công Cụ Tìm Kiếm

Khám Phá Công Cụ Tìm Kiếm

8th Grade - University

25 Qs

ASK KOD ARAHAN

ASK KOD ARAHAN

7th - 9th Grade

23 Qs

แบบทดสอบคำสั่งเลือกทำตามเงื่อนไข

แบบทดสอบคำสั่งเลือกทำตามเงื่อนไข

KG - 12th Grade

25 Qs

Codeforlife python worksheet 1 - Output, Operators and Data

Codeforlife python worksheet 1 - Output, Operators and Data

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

I Robinson

FREE Resource

AI

Enhance your content in a minute

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

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's wrong with this line of code?

PRINT("Hello world")

Nothing

Missing round bracket

print is in uppercase

Missing quotation mark

Answer explanation

The issue with the code is that 'PRINT' is in uppercase. In Python, function names are case-sensitive, so it should be 'print' in lowercase to work correctly.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's wrong with this line of code?

print("Hello world")

Nothing

Missing round bracket

print is in uppercase

Missing quotation mark

Answer explanation

The line of code 'print("Hello world")' is correct as it properly uses the print function with the correct syntax. There are no missing brackets, uppercase issues, or missing quotation marks. Thus, the answer is 'Nothing'.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's wrong with this line of code?

print("Hello world)

Nothing

Missing round bracket

print is in uppercase

Missing quotation mark

Answer explanation

The code is missing a closing quotation mark after 'Hello world'. This causes a syntax error, making 'Missing quotation mark' the correct choice.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's wrong with this line of code?

print("Hello world"

Nothing

Missing round bracket

print is in uppercase

Missing quotation mark

Answer explanation

The line of code is missing a closing round bracket for the print function. It should be print("Hello world"). This is the reason for the error, making 'Missing round bracket' the correct choice.

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Which symbol (character) do we use to ADD two numbers together in python?

Answer explanation

In Python, the symbol used to add two numbers together is the plus sign (+). This operator performs addition when placed between two numeric values.

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Which symbol (character) do we use to SUBTRACT two numbers together in python?

Answer explanation

In Python, the symbol used to subtract two numbers is the minus sign (-). For example, to subtract 5 from 10, you would write '10 - 5', which evaluates to 5.

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Which symbol (character) do we use to DIVIDE two numbers together in python?

Answer explanation

In Python, the symbol used to divide two numbers is the forward slash (/). This operator performs floating-point division, returning a decimal result when applicable.

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?