Is Python case sensitive when dealing with identifiers?
Python Programming Basics 1

Quiz
•
Computers
•
University
•
Hard
Madhu Baswani
Used 111+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Yes
No
Machine Dependent
None of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum possible length of an identifier?
31 characters
63 characters
79 characters
None of the mentioned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an invalid variable?
my_string_1
1st_string
foo
_
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a keyword?
assert
eval
nonlocal
pass
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following cannot be a variable?
__init__
in
it
on
Answer explanation
'in' is a keyword.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the code:
a=21; b=6
print(a/b); print(a//b); print(a%b)
What is the result?
3.0
3
3
3
3
3
3.5
3
3
3.5
3.5
3
Answer explanation
division operator in python always meant for floating point arithmetic. Hence a/b returns 3.5 But floor division(//) operator can perform both integral and floating point arithmetic. If the arguments are int type then the result is int type and if the arguments are float type then the result is float type. Hence a//b returns 3. a%b returns the remainder which is 3.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the code and What is the result?
s='AB CD'
list=list(s)
list.append('EF')
print(list)
('A','B',' ','C','D','EF')
['A','B','C','D','E','F']
{'A','B',' ','C','D','EF'}
['A','B',' ','C','D','EF']
Answer explanation
List elements will be printed within square brackets.
Whenever we are converting string to list, each character will become element of List including space also.
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
PHP + MySQL

Quiz
•
7th Grade - University
25 questions
PYTHON CONTEST

Quiz
•
University
20 questions
Generics

Quiz
•
University
26 questions
String in C Programming

Quiz
•
University
20 questions
list 6th

Quiz
•
7th Grade - University
20 questions
Parallel & Distributed Database

Quiz
•
University
20 questions
AI BootCamp: 2024 Edition- Session 1

Quiz
•
University
25 questions
Stack and Queue

Quiz
•
University
Popular Resources on Quizizz
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