Font size
WorksheetsPython Intermediate Quiz - 2
Total questions: 15
Worksheet time: 3mins
Which module in python gives us the ability to open links in the browser?
Webbrowser
Requests
Html
googlesearch
What are status codes?
Status codes are issued by a server in response to a client's request made to the server
Status codes are numbers that tell whether a piece of information has gone successfully or not
Status codes are issued when servers run into a problem
Status codes are codes that the internet issues incase of faults
Mention the name of the loop that works only is the condition given is true
(a) LOOP
The _________ string is a string that contains sequence of bytes, which we later put it in the form of an image
byte
fill
data
picture
image
What are printing patterns?
Patterns that can be printed by using complex algorithms
Patterns which consist of ' * ' mark that prints in different shapes
Patterns can be printed in python using simple for loops
Patterns that will be printed using complex code which consists of loops
What's the output of the code?
Which of the following do you use to get information about a webpage?
requests.get()
re.get()
webbrowser.get()
googlesearch.get()
Choose the correct option:
a - 200
b - 404
a - ok
b - ok
a - server error
b - ok
a - ok
b - page not found
a - ok
b - network error
Which file handling mode enables us to write byte code?
w
w+
wb
wbyte
1 byte = _ bits
2
4
5
8
Choose the correct one
if
if
if
if
else
if
elif
elif
else
if
else
if
else
if
else
if
elif
if
elif
else
Out of the 4 keywords, which of the 2 are necessary for catching an error?
try
finally
except
else
JSON
JavaScript Object Notation
JavaScript Oriented Notation
Java scripter objects note
JavaScript of Nodes
which function of json module is used for reading the information from a json file in the form of a string?
.load()
.loads()
.dump()
.dumps()
What would you prefer?
IDLE or VS CODE
IDLE
VS CODE
