Search Header Logo

Python I/O

Authored by Carol Luce

Computers

9th - 12th Grade

15 Questions

Used 7+ times

Python I/O
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a programming language?

A language used in pseudocode

Machine code

An artificial language used to create programs for a computer

Written English

2.

MATCH QUESTION

1 min • 5 pts

Match the commands to the explanation.

int ( )

used with a variable to get information from a user

break

tries to convert the arguments to an integer value

print ( )

calculates the closest integer with one argument or decimal place with 2 arguments

round ( )

quits a loop

input ( )

outputs a message on screen

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do we get user input from the keyboard?

input = (What is your name?)

input = What is your name?

output = ("What is your name?")

name=input("What is your name? ")

4.

DRAG AND DROP QUESTION

30 sec • 1 pt

Which data type would you use for the quantity of stock in a shop?​ (a)  

integer
float
string
boolean
list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable?

A box(memory location) where you store values
a type of graphics
Data type
a type of memory

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output?

name = "Dave"

print (name)

Dave

'Dave'

name

(name)

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

A ______ error is a type of error that a programmer makes in their code such that the program won't run.

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?