NEW
Font size
WorksheetsTech quiz-july
Total questions: 20
Worksheet time: 7mins
What is the time and space complexity to delete a node from the singly linked list?
Time complexity: O(1), Space complexity: O(1)
Time complexity: O(1), Space complexity: O(n)
Time complexity: O(n), Space complexity: O(1)
Time complexity: O(n), Space complexity: O(n)
How many edges are present in the complete graph of n vertices?
n(n-1)/2
n(n+1)/2
n
n/2
What is the cost of searching for an AVL tree?
O(n)
O(log (n))
O(n*n)
O(n*log(n))
When was C programming invented?
1987
1967
1997
1977
What is the output of the following code?
def func(x=[]):
x.append(1)
return x
print(func())
print(func())
[1] [1]
[1] [1, 1]
[1, 1] [1, 1]
[1] [1] [1] [1]
What will be the output of the following code
1 2 3 4 5
1 2 3 4
2 3 4 5
5 4 3 2 1
The complexity of linear search algorithm is___
0(n)
0(log n)
0(n2)
0(n log n)
URL stands for _______________
Uninterrupted data locator
Uninterrupted record locator
Uniform record locator
Uniform resource locator
What is a process in the context of an operating system?
A collection of hardware components
A program in execution
A static piece of code
A type of network protocol
What is the purpose of database normalization?
To speed up queries
To reduce redundancy and improve data integrity
To allow for more complex queries
To simplify database design
What does the following function definition mean?
def multiply(x, y=1):
return x * y
The function requires two arguments
The function will only multiply x
y is an optional parameter with a default value of 1
The function will not work without specifying y
Which layer of the OSI model is responsible for end-to-end communication?
Physical Layer
Data Link Layer
Network Layer
Transport Layer
How many can max number of arguments present in function in the c99 compiler?
99
90
102
127
Which of the following is the advantage of BigDecimal over double?
Precision
Garbage creation
Syntax
Memory usage
What will be the output of the following Java code snippet?
0.0099999999999998
0.01
0.01
0.0099999999999998
0.0099999999999998 0.0099999999999998
0.01
0.01
Which was the first purely object oriented programming language developed
Kotlin
SmallTalk
java
c++
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; } };
Encapsulation and Inheritance
Inheritance and polymorphism
Polymorphism
Inheritance
Which of the following is the most important language for Data Science?
Java
Ruby
R
None of the above
Raw data should be processed only one time.
True
False
Which of the architecture is power efficient
RISC
ISA
IANA
CISC
