Inputs and Variables

Inputs and Variables

9th - 11th Grade

12 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

8th - 10th Grade

10 Qs

Python Basics

Python Basics

6th - 12th Grade

9 Qs

AI-9A-PA1-Practical

AI-9A-PA1-Practical

9th Grade

10 Qs

Introduction to Python

Introduction to Python

9th Grade

10 Qs

Intro to Python recap

Intro to Python recap

10th Grade - Professional Development

11 Qs

Program Development - Python: Errors

Program Development - Python: Errors

8th - 10th Grade

13 Qs

Python programming -recap

Python programming -recap

7th - 10th Grade

12 Qs

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

Inputs and Variables

Inputs and Variables

Assessment

Quiz

Computers

9th - 11th Grade

Medium

Created by

Patrick Bryar

Used 33+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to accept data as input at run time?

output()

print()

int()

input()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions display an output to the screen?

display()

output()

print()

post()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code produces the following output? Hello

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a input?

A function that allows us to ask the user to enter some data.

To plug in something.

Data displayed on a screen.

A user-defined function

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python3, Whatever you enter as input, the input() function converts it into a string

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following input commands would allow the user to receive and store an integer from the keyboard?

integer = input("Please enter an integer:")

integer = int(input("Please enter an integer:"))

integer = float(input("Please enter an integer:"))

integer = bool(input("Please enter an integer:"))

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement correctly assigns the string "Tanner" to the variable name?
name  = print( "Tanner")
input("Tanner")
name = "Tanner"
name = input("Tanner")

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?