wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Tech quiz-july

Total questions: 20

Worksheet time: 7mins

Name
Class
Date
1.

What is the time and space complexity to delete a node from the singly linked list?

a)

Time complexity: O(1), Space complexity: O(1)

b)

Time complexity: O(1), Space complexity: O(n)

c)

Time complexity: O(n), Space complexity: O(1)

d)

Time complexity: O(n), Space complexity: O(n)

2.

How many edges are present in the complete graph of n vertices?

a)

n(n-1)/2

b)

n(n+1)/2

c)

n

d)

n/2

3.

What is the cost of searching for an AVL tree?

a)

O(n)

b)

O(log (n))

c)

O(n*n)

d)

O(n*log(n))

4.

When was C programming invented?

a)

1987

b)

1967

c)

1997

d)

1977

5.

What is the output of the following code?

def func(x=[]):

x.append(1)

return x

print(func())

print(func())

a)

[1] [1]

b)

[1] [1, 1]

c)

[1, 1] [1, 1]

d)

[1] [1] [1] [1]

6.

What will be the output of the following code

a)

1 2 3 4 5

b)

1 2 3 4

c)

2 3 4 5

d)

5 4 3 2 1

7.

The complexity of linear search algorithm is___

a)

0(n)

b)

0(log n)

c)

0(n2)

d)

0(n log n)

8.

URL stands for _______________

a)

Uninterrupted data locator

b)

Uninterrupted record locator

c)

Uniform record locator

d)

Uniform resource locator

9.

What is a process in the context of an operating system?

a)

A collection of hardware components

b)

A program in execution

c)

A static piece of code

d)

A type of network protocol

10.

What is the purpose of database normalization?

a)

To speed up queries

b)

To reduce redundancy and improve data integrity

c)

To allow for more complex queries

d)

To simplify database design

11.

What does the following function definition mean?

def multiply(x, y=1):

return x * y

a)

The function requires two arguments

b)

The function will only multiply x

c)

y is an optional parameter with a default value of 1

d)

The function will not work without specifying y

12.

Which layer of the OSI model is responsible for end-to-end communication?

a)

Physical Layer

b)

Data Link Layer

c)

Network Layer

d)

Transport Layer

13.

How many can max number of arguments present in function in the c99 compiler?

a)

99

b)

90

c)

102

d)

127

14.

Which of the following is the advantage of BigDecimal over double?

a)

Precision

b)

Garbage creation

c)

Syntax

d)

Memory usage

15.

What will be the output of the following Java code snippet?

a)

0.0099999999999998

0.01

b)

0.01

0.0099999999999998

c)

0.0099999999999998 0.0099999999999998

d)

0.01

0.01

16.

Which was the first purely object oriented programming language developed

a)

Kotlin

b)

SmallTalk

c)

java

d)

c++

17.

Which feature of OOP is indicated by the following code?

class student{ int marks; };

class topper:public student{ int age; topper(int age){ this.age=age; } };

a)

Encapsulation and Inheritance

b)

Inheritance and polymorphism

c)

Polymorphism

d)

Inheritance

18.

Which of the following is the most important language for Data Science?

a)

Java

b)

Ruby

c)

R

d)

None of the above

19.

Raw data should be processed only one time.

a)

True

b)

False

20.

Which of the architecture is power efficient

a)

RISC

b)

ISA

c)

IANA

d)

CISC