What is the output of the following?
a = True
b = False
c = False
if a or (b and c):
print("GEEKSFORGEEKS")
else:
print("geeksforgeeks")
Python Basics
Quiz
•
Computers
•
Professional Development
•
Hard
Vishal Sharma
Used 136+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following?
a = True
b = False
c = False
if a or (b and c):
print("GEEKSFORGEEKS")
else:
print("geeksforgeeks")
geeksforgeeks
GEEKSFORGEEKS
error
no output
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code :
print(9//2)
4.5
4.0
error
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a standard data type?
Tuple
Class
Dictionary
List
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is the object below ?
L = [1, 23, ‘hello’, 1]
List
Tuple
Dictionary
String
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is Python case sensitive when dealing with identifiers?
Machine Dependent
Yes
No
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is invalid?
_a=1
__a=1
__a__=1
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In order to store values in terms of key and value we use what core data type.
Dictionary
Tuple
List
None of the above
6 questions
Python Quiz
Quiz
•
Professional Development
15 questions
Python Skills
Quiz
•
1st Grade - Professio...
10 questions
Day 3
Quiz
•
Professional Development
10 questions
PYTHON
Quiz
•
Professional Development
10 questions
C++Quiz#1
Quiz
•
Professional Development
10 questions
04 - Python - Lists
Quiz
•
University - Professi...
10 questions
Batch 1
Quiz
•
Professional Development
12 questions
Week 1
Quiz
•
Professional Development
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade