What will be the output of the following Python program?
Quiz 2

Quiz
•
Computers
•
University
•
Hard
Vineela Allada
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
8
2
1
5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code snippet?
z=set('abc$def')
'a' in z
Error
No output
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
Hello (‘foo’, ‘bin’) and (‘foo’, ‘bin’)
Hello foo and bin
Error
None of the mentioned
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to read all the characters?
Read()
Readcharacters()
Readall()
readchar()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following are the modes of both writing and reading in binary format in file?
wb
w
wb+
w+
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what does ~~~~~~~5 evaluate to ?
+11
-5
+5
-11
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what will be the output of the following code?
x=1234
reg="integers:....%d...%-6d...%06d"%(x,x,x)
print(reg)
error
integers:....1234...1234 ...123400
integers:....1234...1234 ...001234
integers:....1234...1234...1234
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
BS TEST2

Quiz
•
University
25 questions
GNIDOC ROUND 1

Quiz
•
University
20 questions
Python Lists

Quiz
•
University
20 questions
Python

Quiz
•
University
23 questions
PYTHON - 14.07.2023

Quiz
•
University
30 questions
Coding Competation(Round 1)

Quiz
•
University
20 questions
Knack Club Selection Test

Quiz
•
University
20 questions
ISTE TECHNICAL

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