You can use the stream insertion operator ">>" to send the output to cout.
Anonymous Quiz
72%
True
28%
False
What is output of following −
print("any".encode())
print("any".encode())
Anonymous Quiz
53%
‘any’
15%
‘yan’
25%
b’any’
7%
x’any’
What is the output of the following code?
print(type([1,2]))
print(type([1,2]))
Anonymous Quiz
17%
<class 'tuple'>
27%
<class 'int'>
16%
<class 'set'>
11%
<class 'complex'>
29%
<class 'list'>
Which of the following codes raises an exception?
Anonymous Quiz
23%
# test
55%
a = {1, 2, \ #comment 3, 4}
23%
a = {1, 2, #comment 3, 4}
👍1
Which function could be used to list every file and folder in the current directory?
Anonymous Quiz
21%
os.dirnames(‘.’)
38%
os.listdir(‘.’)
36%
os.listdir(‘/’)
5%
os.ls()
Which one is the root element of the HTML page ?
Anonymous Quiz
19%
<head>
16%
<body>
59%
<html>
7%
<title>
The first version of HTML was written by
Anonymous Quiz
23%
Dave Raggett
23%
Charles Babbage
47%
Tim Berners Lee
7%
Augusta Ada
CSS stands for
Anonymous Quiz
9%
Compiled Style Sheet
78%
Cascading Style Sheet
8%
Compiled Site Sheet
5%
Cascading Site Sheet
Which one is the correct way of adding image in HTML file?
Anonymous Quiz
11%
<image source>
70%
<img src>
12%
<img source>
7%
<image src>
👍1
What function do you use to read a string?
Anonymous Quiz
39%
input(«Enter a string»)
18%
eval(input(«Enter a string»))
9%
enter(«Enter a string»)
34%
print(enter(«Enter a string»))
How to check whether an object x is an instance of class A?
Anonymous Quiz
51%
x.instance(A)
31%
A.instance(x)
18%
isinstance(x, A)
0%
isinstance(A, x)