Writing your first program in Python

Writing your first program in Python

8th Grade

10 Qs

quiz-placeholder

Similar activities

Tin 8/1

Tin 8/1

KG - University

10 Qs

ZOOM QUIZ

ZOOM QUIZ

1st - 12th Grade

10 Qs

Kiểm tra 15' tin 8 lần 2

Kiểm tra 15' tin 8 lần 2

8th Grade

10 Qs

7.02 going online

7.02 going online

4th - 9th Grade

10 Qs

hardware and software(g3)

hardware and software(g3)

2nd - 10th Grade

10 Qs

Microbit Features Activity

Microbit Features Activity

6th - 8th Grade

9 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

Мотылек

Мотылек

6th - 8th Grade

14 Qs

Writing your first program in Python

Writing your first program in Python

Assessment

Quiz

Computers

8th Grade

Practice Problem

Medium

Created by

Diana Mousa

Used 31+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the print() function in Python?

To save a program

To display text on the console

To create variables

To upload files

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to write a comment in Python?

/* This is a comment */

// This is a comment

# This is a comment

<-- This is a comment -->

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output? print('Hello World')

Hello World

Hello, World!

Hello World!

Hello

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: print(3 * 4)?

34

12

7

3 x 4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step to create a Python program according to the text?

Run the program

Write the code

Open the Python editor

Save the program

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a feature of Python mentioned in the text?

Open source

Rich library of functions

General-purpose programming language

High cost

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output? print('100-99=', 100-99)

100-99=1

1

99

100-99=0

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?