No student devices needed. Know more
9 questions
1. What will print?
5
6
1
nothing
What will print?
nothing
7
z
12
How many times will Boo print?
3
4
5
none
What will print?
5
6
12
3
What would the output be from the program shown here? (assuming that the user enters "John" and "Smith"
def printname(firstname, lastname):
name = firstname + " " + lastname
return name
print(printname(Jonh, Smith)
John
Smith
Jonh Smith
Error
What would the output be for the following program if the user enters 4 and 6?
10
14
16
Error
Which of the following best describes the order in which these lines are processed in Python?
4, 1, 2
4, 2, 1
1,2 ,3,4
4, 3 ,2, 1
How do you correctly call this function
def(1)
x=square( )
x=square(5)
defSquare(4)
What will be the output of this program if the user enters "Han" and then "Solo"?
An error
Nothing
Han Solo
first surname
Explore all questions with a free account