
Conditional statement
Quiz
•
World Languages
•
Professional Development
•
Practice Problem
•
Medium
KEERTHI BADUGU
Used 5+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q1. Which function is used to take input from the user in Python?
A) scanf()
B) input()
C) cin>>
D) get()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q2. What is the output of the following code?
print("Hello", "World")
A) HelloWorld
B) Hello, World
C) Hello World
D) Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q3. What is the default separator used by print() in Python?
A) Comma (,)
B) Newline (\n)
C) Space ( )
D) Tab (\t)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q4. How do you display output in Python without a newline?
A) print(end='')
B)print(no_newline=True)
C) echo()
D) print.line()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q5. What is the output of:
x = input("Enter a number: ") print(x * 2)
If input is 3, what will be printed?
A) 6
B) 33
C) 9
D) Error
A) 6
B) 33
C) 9
D) Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q6. Which of the following will correctly convert input to integer?
A) int(input())
B) input(int())
C) eval(input())
D) float(input())
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q7. What does the following code do?
a = input("Enter name: ") print("Hello", a)
A) Greets the user by name
B) Prints Hello only
C) Error
D) None of the above
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Warna (Mandarin)
Quiz
•
Professional Development
10 questions
Australie Quiz
Quiz
•
10th Grade - Professi...
18 questions
Would like + to-infinitive
Quiz
•
Professional Development
14 questions
Naamvallen oefenquiz
Quiz
•
KG - Professional Dev...
10 questions
La cabane à sucre
Quiz
•
Professional Development
12 questions
Spanish Grammar
Quiz
•
Professional Development
20 questions
Kuis Bahasa Indonesia SMP Teks Berita
Quiz
•
Professional Development
10 questions
Irodori Kanji Meaning and Usage Elementary1 L11
Quiz
•
University - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for World Languages
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
