wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

TECH QUIZ SHRUJAN 4.0

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

Which data structure is used in BFS?

a)

Stack

b)

Queue

c)

Tree

d)

Heap

2.

In a max heap, which element is always at the root?

a)

Maximum

b)

Minimum

c)

Random

d)

Median

3.

What is the height of a single node tree?

a)

1

b)

-1

c)

0

d)

None of these

4.

Which is not a linear data structure?

a)

Array

b)

Stack

c)

Queue

d)

Graph

5.

OUTPUT OF THE FOLLOWING QUESTION:
print(type(type(int)))

a)

int

b)

type

c)

class

d)

error

6.

OUTPUT OF FOLLOWING PYTHON QUESTION:
print("Hello" * 3)

a)

Error

b)

Hello3

c)

HelloHelloHello

d)

3Hello

7.

OUTPUT OF FOLLOWING QUESTION PYTHON:
print(len(" "))

a)

0

b)

1

c)

Error

d)

None of these

8.

Which is faster in C?

a)

Recursion

b)

Iteration

c)

Both same

d)

Compiler dependent

9.

Which keyword prevents modification in C?

a)

static

b)

const

c)

volatile

d)

extern

10.

Which loop executes at least once in C?

a)

for

b)

while

c)

do-while

d)

if

11.

What is the full form of stdio.h

a)

Standard Input Output Header

b)

Standard Input & Output Header

c)

Standard Input or Output Header

d)

Standard Input/Output Header

12.

Which of these is NOT allowed in Java?

a)

Multiple inheritance using interfaces

b)

Method overloading

c)

Operator overloading

d)

Method overriding

13.

Give output of following java code
String s1 = "Hello";

String s2 = new String("Hello");

System.out.println(s1 == s2);

a)

true

b)

false

c)

False

d)

True

14.

OUTPUT OF FOLLOWING QUESTION IN JAVA:
System.out.println(5/2);

a)

2.5

b)

2

c)

3

d)

Error

15.

Which exception is unchecked?

a)

IOException

b)

SQLException

c)

NullPointerException

d)

FileNotFoundException

16.

JVM stands for:

a)

Java Variable Machine

b)

Java Virtual Machine

c)

Java Verified Machine

d)

Java Visual Machine

17.

Which concept binds data and methods together?

a)

Inheritance

b)

Encapsulation

c)

Polymorphism

d)

Abstraction

18.

Which is NOT an OOPS principle?

a)

Encapsulation

b)

Inheritance

c)

Compilation

d)

Polymorphism

19.

Data hiding is achieved using:

a)

public

b)

protected

c)

private

d)

static

20.

OUTPUT IN JS
console.log(0 == false);

a)

true

b)

false

c)

Error

d)

NaN

21.

OUPUT OF JS:
console.log(2 ** 3);

a)

6

b)

8

c)

9

d)

ERROR

22.

HTML STANDS FOR

a)

Hyper Text Mark Language

b)

High Text Machine Language

c)

Hyper Tool Markup Language

d)

Hyper Text Markup Language

23.

Which tag is used for line break?

a)

<B>

b)

<BR>

c)

<BREAK>

d)

<H2>

24.

HTML is:

a)

Programming language

b)

Markup Language

c)

Scripting Language

d)

Query Language

25.

A foreign key:

a)

Can be NULL

b)

Can have duplicate values

c)

References primary key

d)

All of the above

26.

Deadlock occurs when:

a)

Two transactions wait for each other

b)

Transaction fails

c)

System crashes

d)

Data is lost

27.

FULL FORM OF
DML AND DDL

a)

Data Manipulation Language and Data Definition Language

b)

Data Manipulate Languge and Data Define Language

c)

Data Manipulation Language

d)

Data Definition Language

28.

Which SQL command is used to remove all rows but keep table structure?

a)

Delete

b)

Drop

c)

Truncate

d)

Remove

29.

Which clause is used to filter grouped data?

a)

Where

b)

Group by

c)

Having

d)

Order by

30.

SELECT COUNT(*) FROM table_name;

What it gives?

a)

Count of non-NULL values

b)

Count of rows

c)

Count of columns

d)

Count of distinct rows

31.

Which SQL constraint ensures unique values?

a)

Primary key

b)

Foreign key

c)

Default

d)

Distinct

32.

What does CSS stand for?

a)

Creative Style Sheets

b)

Computer Style Sheets

c)

Colorful Style Sheets

d)

Cascading Style Sheets

33.

Which HTML element is used to define the title of a document?

a)

<title>

b)

<head>

c)

<meta>

d)

<header>

34.

Which of the following is a characteristic of a stack?

a)

Last In First Out

b)

First In First Out

c)

Random Access

d)

None of the above

35.

What is the output of the following Python code:
print(type([]) is list)

a)

None of these

b)

True

c)

False

d)

Error

36.

Which of the following is not a valid SQL data type?

a)

INTEGER

b)

VARCHAR

c)

FLOAT

d)

STRING

37.

Which of the following is a feature of object-oriented programming?

a)

Global variables

b)

Procedural abstraction

c)

Static typing

d)

Encapsulation

38.

What does the 'break' statement do in a loop?

a)

Exits the loop

b)

Restarts the loop

c)

Pauses the loop

d)

Continues to the next iteration

39.

What does the 'continue' statement do in a loop?

a)

Pauses the loop

b)

Skips the current iteration

c)

Restarts the loop

d)

Exits the loop

40.

Which of the following is a method to convert a string to an integer in Python?

a)

convert()

b)

float()

c)

str()

d)

int()