NEW
Font size
WorksheetsRound2TechQuiz
Total questions: 30
Worksheet time: 31mins
Find the next number in the series:
5, 11, 23, 47, 95, ___
155
191
190
185
A person buys an article for Rs. 1500 and sells it at a profit of 20%.
What is the selling price of the article?
Rs. 1800
Rs. 1600
Rs. 1750
Rs. 2000
A train travels 120 km at a speed of 60 km/h.
How long will it take to cover the same distance at 90 km/h?
1 hour
1.5 hours
2 hours
2.5 hours
In a group of 100 people, 80 like football, 70 like cricket, and 60 like both.
How many people like only one of the two sports?
30
50
60
40
A team of 4 workers can complete a task in 6 days.
How many days will it take for 6 workers to complete the same task?
3 days
5 days
6 days
4 days
Which of the following is true about a pointer in C?
A pointer stores the address of a variable
A pointer can hold only one type of data
A pointer stores a value of a variable
A pointer cannot be dereferenced
What is the output of the following C program?
10
Address of x
0
Compiler error
What is the default value of a variable that is declared as static in C?
0
Undefined
Depends on the type of variable
1
What will be the output of the following C program?
15
16
14
17
Which of the following statements is true about the malloc function in C?
It initializes the allocated memory to zero.
It allocates memory in the heap but does not initialize it.
It frees the allocated memory.
It allocates memory on the stack.
What will be the output of the following code?
9
14
Error
Undefined behavior
What will be the output of the following code?
[1, 2, 3]
[5, 2, 3]
[1, 5, 3]
Error
Which of the following is true about Python's memory management?
Python uses garbage collection to reclaim unused memory.
Variables in Python are statically typed.
The del keyword completely deletes an object from memory.
Python does not support dynamic memory allocation.
What will be the output of this code?
15, 20
15, 25
15, 30
Error
Which of the following Python interpreters is the default and most widely used?
Jython
PyPy
CPython
IronPython
What is the space complexity of the merge sort algorithm?
O(1)
O(log n)
O(n)
O(n log n)
Consider a min-heap with elements {10, 20, 30, 40, 50, 60}.
If you delete the root, which of the following represents the resulting heap?
{20, 40, 30, 50, 60}
{20, 30, 60, 40, 50}
{20, 30, 40, 50, 60}
{30, 20, 40, 50, 60}
What is the primary advantage of a linked list over an array?
Faster access to elements.
Fixed size for memory allocation.
Dynamic memory allocation and ease of insertion/deletion.
Requires less memory than an array.
What is the time complexity of accessing an element in an array by its index?
O(n)
O(1)
O(logn)
O(n2)
Which of the following is a characteristic of a stack?
FIFO (First In, First Out)
LIFO (Last In, First Out)
Random access
Indexed access
Which sorting algorithm is best suited for small datasets or nearly sorted arrays?
Merge sort
Quick sort
Insertion sort
Heap sort
In the quick sort algorithm, what is the role of the pivot element?
It is the element that divides the array into equal parts.
It is used to arrange the array in ascending order.
It is selected randomly to improve the algorithm’s performance.
It helps partition the array such that all elements smaller than it are on the left and greater elements are on the right.
Which of the following is true for a linear search algorithm?
It requires the list to be sorted.
It has a time complexity of O(logn)
It searches for an element by checking each item one by one.
It is faster than binary search on large datasets.
You need to search for an element in an unsorted array.
What is the most efficient way to search?
Binary search
Linear search
Quick sort
Heap sort
You need to sort an array of integers with a known range (e.g., from 0 to 100).
Which algorithm would be most efficient?
Merge sort
Counting sort
Heap sort
Quick sort
What does cloud computing refer to?
Using local storage to store data
Using remote servers to store and manage data
Running applications on a personal computer
Managing databases on a local server
What is the primary function of a search engine like Google?
To store websites
To index websites and provide relevant search results
To design websites
To run server-side scripts
Which of the following is an example of artificial intelligence (AI) technology
Data mining
Self-driving cars
Virtual private networks (VPN)
Word processors
Which of the following technologies is used for mobile app development?
Swift (for iOS)
Kotlin (for Android)
React Native (cross-platform)
All of the above
Which of the following is a programming paradigm focused on using functions and immutability?
Object-oriented programming
Functional programming
Procedural programming
Declarative programming
