Python programming -recap

Python programming -recap

7th - 10th Grade

12 Qs

quiz-placeholder

Similar activities

Contact Center Sevices

Contact Center Sevices

7th - 10th Grade

10 Qs

Quiz 8 (01.09.2021)

Quiz 8 (01.09.2021)

1st - 12th Grade

10 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

Mid-Tern Exam's Review

Mid-Tern Exam's Review

8th Grade

15 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

IT related jobs

IT related jobs

9th Grade

9 Qs

Numpy-1

Numpy-1

9th - 12th Grade

10 Qs

Common Protocols

Common Protocols

10th - 12th Grade

15 Qs

Python programming -recap

Python programming -recap

Assessment

Quiz

Computers

7th - 10th Grade

Hard

Created by

Shiv K

Used 257+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command will display the text 'Hello world!' on the screen?

print(Hello world!)

print "Hello world!"

print("Hello world!")

print = "Hello world!"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command will correctly ask the user for their age?

age = input("How old are you?")

age = input(How old are you?)

input("How old are you?") = age

How old are you = input()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which decision statement will be triggered if the variable x is less than 20?

if x > 20:

if x <> 20:

if x == 20:

if x < 20:

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these tests whether the variable x is the same as 'Hello'?

x = "Hello"

x != "Hello"

x == "Hello"

x <> "Hello"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following program?

Yes

No

Error

No output

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following program?

Yes

No

Error

No output

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following program?

1 to 10 numbers

1 to 5 numbers

1

5

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

Already have an account?