Year 8 Python HW1

Year 8 Python HW1

7th Grade

20 Qs

quiz-placeholder

Similar activities

Robotik Kodlama-Temel Bilgisayar Bilgisi

Robotik Kodlama-Temel Bilgisayar Bilgisi

6th - 8th Grade

15 Qs

Ulangan Harian Kelas XI

Ulangan Harian Kelas XI

2nd Grade - University

20 Qs

Входно равнище - 7 клас, ООП, 2024

Входно равнище - 7 клас, ООП, 2024

7th Grade

15 Qs

ICT G7 Chapter 2.2 Direct Data Entry Devices

ICT G7 Chapter 2.2 Direct Data Entry Devices

7th Grade - University

15 Qs

MS Word Processing Software Quiz

MS Word Processing Software Quiz

7th Grade

20 Qs

Latihan Soal Sistem Komputer

Latihan Soal Sistem Komputer

7th Grade

20 Qs

Canva Quiz

Canva Quiz

7th Grade

20 Qs

Keyboarding Skills Vocabulary

Keyboarding Skills Vocabulary

6th - 8th Grade

18 Qs

Year 8 Python HW1

Year 8 Python HW1

Assessment

Quiz

Information Technology (IT)

7th Grade

Hard

Created by

Becky Webb

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to print "Hello, World!" in Python?

print("Hello, World!")

Print("Hello, World!")

print Hello, World!

echo "Hello, World!"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if you forget to close a string with quotation marks in a print statement?

The code will run but print nothing.

Python will show a syntax error.

The computer will shut down.

It will print the quotation mark.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a syntax error in Python?

print("Hello")

print("Hello'

print(123)

print("123")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for saving a Python programme?

.txt

.exe

.py

.doc

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Rohan is learning Python and wants to store his age, name, and height in a program. Which of these is a basic data type in Python that he can use?

integer

string

float

All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code print? ```python print(5 + 3) ```

53

8

5 + 3

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code? ```python print("Red", "Blue", "Green") ```

RedBlueGreen

Red, Blue, Green

Red Blue Green

"Red", "Blue", "Green"

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?