Professional Documents
Culture Documents
Quiz Questions With Answers
Quiz Questions With Answers
Quiz Questions With Answers
------------------------
x=5
y=2
print(x ** y)
-------------------------
a) 10
b) 25
c) 7
d) 32
Answer: b) 25
a) <ul>
b) <ol>
c) <li>
d) <ulist>
Answer: a) <ul>
a) int function_name() {}
b) function function_name() {}
c) void function_name() {}
d) function_name() {}
Answer: c) void function_name() {}
a) // This is a comment
b) # This is a comment
c) ''' This is a comment '''
d) /* This is a comment */
a) <link>
b) <a>
c) <hlink>
d) <hyper>
Answer: b) <a>
a) <th>
b) <tr>
c) <thead>
d) <header>
Answer: a) <th>
--------------------------------------
my_list = [1, 2, 3, 4, 5]
print(my_list[2:4])
--------------------------------------
a) [1, 2]
b) [2, 3]
c) [3, 4]
d) [4, 5]
Answer: c) [3, 4]
9. What's the distinction between '==' and 'is' operators in Python?
10. Which operator is used to access the value stored in a pointer variable in C? a) .
b) *
c) ->
d) ::
Answer: b) *
a)_blank
b) Target
c) Same
d) Open
Answer: a) _blank
13. Select the property that is used to create spacing between HTML elements?
a) margin
b) spacing
c) padding
d) border
Answer: c) padding
14. In CSS, Select the property used to set the spacing between lines of text?
a) line-spacing
b) letter-spacing
c) line-height
d) spacing
Answer: c) line-height
a) list.pop(obj=list[-1])
b) list.sort([func])
c) list.reverse()
d) list.remove(obj)
Answer: c) list.reverse()
17. Which of the following functions print the output to the console?
a) console.log
b) print
c) output
d) echo
Answer: a) console.log
print 3/5
a) 0
b) None of the above
c) 0.6
d) 6/10
Answer: c) 0.6
Answer: a) Function