Python Console Basics 1.1

Python Console Basics 1.1

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Study Guide - More Advanced Java

Study Guide - More Advanced Java

11th - 12th Grade

10 Qs

Error Finding

Error Finding

12th Grade

10 Qs

Introduction to Python Quiz

Introduction to Python Quiz

8th Grade - University

10 Qs

PF Unit  10

PF Unit 10

9th Grade - University

10 Qs

Python Basics Quiz

Python Basics Quiz

7th Grade - University

10 Qs

Unit 4 Quiz

Unit 4 Quiz

12th Grade

10 Qs

Python Basics Quiz for KS3

Python Basics Quiz for KS3

11th Grade - University

9 Qs

Quiz - print() function

Quiz - print() function

9th Grade

10 Qs

Python Console Basics 1.1

Python Console Basics 1.1

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Michele Templeton Freeman

Used 2+ times

FREE Resource

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'.