Python Console Basics 1.1

Python Console Basics 1.1

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

MID SEMESTER TIK 9 OKT 2020

MID SEMESTER TIK 9 OKT 2020

12th Grade

10 Qs

MIL_GAME

MIL_GAME

12th Grade

10 Qs

ÔN TÂP TIN 9

ÔN TÂP TIN 9

6th - 9th Grade

10 Qs

QBASIC Programming

QBASIC Programming

5th - 10th Grade

10 Qs

Latihan Soal PTS Kelas 6 Semester 1

Latihan Soal PTS Kelas 6 Semester 1

10th Grade

10 Qs

คอมพิวเตอร์ในชีวิตประจำวัน

คอมพิวเตอร์ในชีวิตประจำวัน

12th Grade

10 Qs

loop while/do while

loop while/do while

7th - 12th Grade

10 Qs

Pemograman Dasar Kelas X TKJ 2020

Pemograman Dasar Kelas X TKJ 2020

10th Grade

10 Qs

Python Console Basics 1.1

Python Console Basics 1.1

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Michele Templeton Freeman

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, print refers to:

the function used to display the output to the console

the function for performing mathematical calculations

the keyword used to define a new variable

the method for reading user input

Answer explanation

In Python, the print function is used to display output to the console.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the line of Python code will display the words Hello World!

print_Hello_World!

print"Hello World!"

print('Hello World!')

print(Hello World!)

Answer explanation

The correct choice is print('Hello World!') because it uses the correct syntax to display the words 'Hello World!'

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function is:

A mathematical equation

A block of code that performs a specific task

A type of variable

A conditional statement

Answer explanation

A function is a block of code that performs a specific task.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The syntax for calling a function is

function_name( )

function_name("")

function name:

function name( )

Answer explanation

The correct syntax for calling a function is function_name( ).

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Write a single line of code to display 20

Answer explanation

The correct choice is 0 because the code 'print("20")' will display the string '20'.

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?