
INPUT AND OUTPUT PYTHON QUIZ BY AL-NAHDA INNOVATIVE ACADEMY
Quiz
•
Physics
•
1st - 5th Grade
•
Hard
elijah achiek
Used 4+ times
FREE Resource
Enhance your content
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 5 pts
Find the output of the below python code:
print("GFG ")
print("Hello")
Compilation Error
GFGHello
GFG Hello
GFG
Hello
2.
MULTIPLE CHOICE QUESTION
5 mins • 5 pts
Find the output of the below python code, for x=5 and y= 5
x = input()
y = input()
print(x+5)
10
5
0
Compilation Error
3.
MULTIPLE CHOICE QUESTION
5 mins • 5 pts
Find the output of the below python code, for x=1.5
x = int(input())
print(x)
1
1.5
Raises ValueError
Compilation Error
4.
MULTIPLE CHOICE QUESTION
5 mins • 5 pts
Find the output of the below python code for x=2
x = float(input())
print(x)
2.0
2
Compilation Error
None of the above
5.
MULTIPLE CHOICE QUESTION
5 mins • 5 pts
What will happen if a user enters a non-numeric value in the following code?
age = int(input("Enter your age: "))
print("You are", age, "years old")
It will print the age as a string.
It will convert the input to a string and print.
It will raise a ValueError.
It will print "You are 0 years old".
6.
MULTIPLE CHOICE QUESTION
5 mins • 5 pts
Which of the following statements is used to display a user-inputted message followed by a new line?
print(input("Enter message: "))
input(print("Enter message: "))
print("Enter message: " + input())
print("Enter message: ", input())
Similar Resources on Wayground
8 questions
BIMOS Cascade Amplifier Quiz
Quiz
•
1st Grade
8 questions
Physics Quiz: Neutralization Methods and Power Amplifiers
Quiz
•
1st Grade
7 questions
MEDICIONES Y ERRORES
Quiz
•
3rd Grade
5 questions
MEDICIONES Y ERRORES
Quiz
•
3rd Grade
11 questions
Robótica - Módulo 1
Quiz
•
2nd Grade
10 questions
Powertrain Review
Quiz
•
1st - 3rd Grade
10 questions
Técnicas Computacionales en Ingeniería Mecánica
Quiz
•
1st Grade
8 questions
PC-LJ028
Quiz
•
KG - 1st Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Physics
10 questions
Balanced and Unbalanced Forces
Quiz
•
5th Grade
15 questions
Waves, Parts of Waves and Wave Properties
Quiz
•
5th - 7th Grade
20 questions
5th grade Force
Quiz
•
5th Grade
28 questions
States of Matter
Quiz
•
5th - 6th Grade
22 questions
Force and Motion
Quiz
•
4th Grade
15 questions
Force and Motion Review
Quiz
•
5th Grade