NEW
Font size
WorksheetsInputs and Variables
Total questions: 12
Worksheet time: 6mins
Which function is used to accept data as input at run time?
output()
print()
int()
input()
Which of the following functions display an output to the screen?
display()
output()
print()
post()
Which code produces the following output? Hello
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
In Python3, Whatever you enter as input, the input() function converts it into a string
True
False
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:"))
What is the term for an error that a programmer makes in their code so the program won't run?
Program error
Syntax error
Code error
Logic error
name = 'Dave'
print (name)
print("3+4")
print("Hello world!\nHello world!")
Hello world!
