Python If statement

Quiz
•
Computers
•
University
•
Medium
Geeta Gupta
Used 5+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Is Python case sensitive?
Yes
No
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is the correct extension of the Python file?
.python
.pl
.py
.p
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of the following Python expression?
4 + 3 % 5
7
2
4
1
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is used to define a block of code in Python language?
Indentation
Key
Brackets
All of the mentioned
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true for variable names in Python?
underscore and ampersand are the only two special characters allowed
unlimited length
all private members must have leading and trailing underscores
none of the mentioned
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following statement?
print(2**3 + (5 + 6)**(1 + 1))
128
121
129
28
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code ?
print(type(5 / 2))
print(type(5 // 2))
int
int
int
float
float
int
float
float
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python-Variables, Expressions

Quiz
•
University
10 questions
Java Static

Quiz
•
University
16 questions
Python Basics

Quiz
•
KG - University
15 questions
Python Basics

Quiz
•
KG - University
15 questions
[Python For All] Quiz 5 - Numpy

Quiz
•
University
15 questions
Exam 1 Practice

Quiz
•
University
15 questions
Python and PseudoCode Quiz

Quiz
•
10th Grade - University
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade