Quiz
Python basics: input, identifiers and operators
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (7)
11) What function do you use to read a string?
- Ainput("Enter a string")
- Beval(input("Enter a string"))
- Ceval(enter("Enter a string"))
- Denter("Enter a string")
2If you enter 1 2 3 in three separate lines, when you run this program, what will be displayed?
number1 = int(input())
number2 = int(input())
number3 = int(input())
# Compute average
average = (number1 + number2 + number3) / 3- A1.0
- B2.0
- C4.0
- D3.0
33) Which of the following is a valid identifier? (check all that apply)
- A$343
- Bmile
- C9X
- D8+9
- Emax_radius
4What will be displayed by the following code?
x = 1
x = 2*x+1
print(x)- A0
- B1
- C3
- D4
5What is the result of 45//4?
- A10
- B11
- C11.25
- D12
6Which of the following expressions results in a value 1?
- A2 % 1
- B15 % 4
- C25 % 5
- D37 % 6
7What is x after the following statements?
x = 1
y = 2
x *= Y + 1- Ax is 1
- Bx is 2
- Cx is 3
- Dx is 4
Information
- Description
- Quiz on Untitled, created by John Ovalles on 01/08/2017.
- Author
- John Ovalles
- Language
- English
- Views
- 0
- Rating
- No ratings yet Rate this quiz