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)
In Python, what is the default maximum level of recursion?
Anonymous Quiz
8%
500
21%
1000
15%
10000
56%
There is no default maximum level
Which code snippet below will not return True?
Anonymous Quiz
15%
1 in [1,0]
32%
1 in [1,0] == True
38%
(1 in [1,0]) == True
15%
1 in [1, 2, 3]
Which one is the Universal Selector in CSS which selects all the HTML elements on the page ?
Anonymous Quiz
28%
#
13%
.
10%
;
50%
*
👍1
Which element defines a drop-down list ?
Anonymous Quiz
37%
<input type=dropdown>
17%
<dropdown>
27%
<input type=select>
20%
<select>
Which character is used to represent the closing of a tag in HTML ?
Anonymous Quiz
16%
\
68%
/
11%
!
5%
.