Writing your first program in Python

Writing your first program in Python

8th Grade

10 Qs

quiz-placeholder

Similar activities

Data types and Input

Data types and Input

7th - 9th Grade

14 Qs

Python Basics (Y9)

Python Basics (Y9)

8th - 10th Grade

13 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Python for beginners #1

Python for beginners #1

8th Grade

10 Qs

Program Development - Python: Errors

Program Development - Python: Errors

8th - 10th Grade

13 Qs

python

python

8th Grade

13 Qs

Python тілінде программалау

Python тілінде программалау

1st - 10th Grade

10 Qs

Python Basics

Python Basics

6th - 12th Grade

9 Qs

Writing your first program in Python

Writing your first program in Python

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Diana Mousa

Used 31+ times

FREE Resource

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

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?