Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Technical Quiz Round-2

Total questions: 15

Worksheet time: 11mins

Name
Class
Date
1.

Which of the following is not a keyword used in Python language?

a)

1.    Pass

b)

Eval

c)

3.    Assert

d)

4.    Nonlocal

2.

Which of the following is the use of the function id() in python?

a)

1.    Every object does not have a unique id in Python

b)

2.    The id function in python returns the identity of the object

c)

3.    None

d)

4.    All

3.

What is the maximum possible length of an identifier?

a)

a.                  16

b)

b.     32

c)

c.      64

d)

d.     None of these above

4.

Which of the following declarations is incorrect?

a)

a.                  _x = 2

b)

b.     __x = 3

c)

c.      xyz = 5

d)

d.     None of these

5.

Which of the following precedence order is correct in Python?

a)

a.                  Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

b)

b.     Multiplication, Division, Addition, Subtraction, Parentheses, Exponential

c)

c.      Division, Multiplication, Addition, Subtraction, Parentheses, Exponential

d)

d.     Exponential, Parentheses, Multiplication, Division, Addition, Subtraction

6.

.  How to add a background color in HTML?

a)

a.                  <marquee bg color: "red">

b)

b.     <marquee bg-color = "red">

c)

c.      <marquee bgcolor = "red">

d)

d.     <marquee color = "red">

7.

How to create a checkbox in HTML?

a)

a.                  <input type = "checkbox">

b)

b.     <input type = "button">

c)

c.      <checkbox>

d)

d.     <input type = "check">

8.

Which of the following attribute is used to provide a unique name to an element?

a)

a.                  class

b)

b.     id

c)

c.      type

d)

d.     None of the above

9.

Which of the following is the correct way to start an ordered list with the count of numeric value 4?

a)

a.                  <ol type = "1" initial = "4">

b)

b.     <ol type = "1" begin = "4">

 

c)

     <ol type = "1" num = "4">

d)

d.     <ol type = "1" start = "4">

10.

Which tag tells the browser where the page starts and stops?

a)

<html>

b)

b) <body>

c)

<head>

d)

d) <title>

11.

Which of the following is the correct syntax to make the background-color of all paragraph elements to yellow?

a)

a.                  p {background-color : yellow;}

b)

b.     p {background-color : #yellow;}

c)

c.      all {background-color : yellow;}

d.     all p {background-color : #yellow;}

d)

d.     all p {background-color : #yellow;}

12.

Which of the following property is used as the shorthand property for the padding properties?

a)

a.                  padding-left

b)

b.     padding-right

c)

c.      padding

d)

d.     All of the above

13.

Which of the following is the correct syntax to select the p siblings of a div element?

a)

a.                  p

b)

b.     div + p

c)

c.      div p

d)

d.     div ~ p

14.

What is the return type of the hashCode() method in the Object class?

a)

a.                  Object

b)

b.     int

c)

c.      long

d)

d.     void

15.

Which of the following tool is used to generate API documentation in HTML format from doc comments in source code?

a)

a.                  javap tool

b)

b.     javaw command

c)

c.      Javadoc tool

d)

d.     javah command