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
What will be the output of the following Python program?
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 ...123400integers:....1234...1234 ...001234integers:....1234...1234...1234Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Bubble Sort and Pointers
Quiz
•
University
20 questions
Device Hardening
Quiz
•
University
20 questions
System and network support and management
Quiz
•
11th Grade - Professi...
20 questions
C - Structures
Quiz
•
University
20 questions
DreamWeaver CS6
Quiz
•
University
20 questions
История
Quiz
•
University
20 questions
POTENCIACIÓN NIVEL I
Quiz
•
1st Grade - University
20 questions
MIDTERM-SW3 MARKETING COMMUNICATION
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
