WorksheetsTechnical Quiz Round-2
Total questions: 15
Worksheet time: 11mins
Which of the following is not a keyword used in Python language?
1. Pass
Eval
3. Assert
4. Nonlocal
Which of the following is the use of the function id() in python?
1. Every object does not have a unique id in Python
2. The id function in python returns the identity of the object
3. None
4. All
What is the maximum possible length of an identifier?
a. 16
b. 32
c. 64
d. None of these above
Which of the following declarations is incorrect?
a. _x = 2
b. __x = 3
c. xyz = 5
d. None of these
Which of the following precedence order is correct in Python?
a. Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
b. Multiplication, Division, Addition, Subtraction, Parentheses, Exponential
c. Division, Multiplication, Addition, Subtraction, Parentheses, Exponential
d. Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
. How to add a background color in HTML?
a. <marquee bg color: "red">
b. <marquee bg-color = "red">
c. <marquee bgcolor = "red">
d. <marquee color = "red">
How to create a checkbox in HTML?
a. <input type = "checkbox">
b. <input type = "button">
c. <checkbox>
d. <input type = "check">
Which of the following attribute is used to provide a unique name to an element?
a. class
b. id
c. type
d. None of the above
Which of the following is the correct way to start an ordered list with the count of numeric value 4?
a. <ol type = "1" initial = "4">
b. <ol type = "1" begin = "4">
<ol type = "1" num = "4">
d. <ol type = "1" start = "4">
Which tag tells the browser where the page starts and stops?
<html>
b) <body>
<head>
d) <title>
Which of the following is the correct syntax to make the background-color of all paragraph elements to yellow?
a. p {background-color : yellow;}
b. p {background-color : #yellow;}
c. all {background-color : yellow;}
d. all p {background-color : #yellow;}
d. all p {background-color : #yellow;}
Which of the following property is used as the shorthand property for the padding properties?
a. padding-left
b. padding-right
c. padding
d. All of the above
Which of the following is the correct syntax to select the p siblings of a div element?
a. p
b. div + p
c. div p
d. div ~ p
What is the return type of the hashCode() method in the Object class?
a. Object
b. int
c. long
d. void
Which of the following tool is used to generate API documentation in HTML format from doc comments in source code?
a. javap tool
b. javaw command
c. Javadoc tool
d. javah command
