NEW
Font size
WorksheetsTECHNICAL QUIZ
Total questions: 45
Worksheet time: 34mins
Which of the following is not the type of queue?
Priority queue
Single-ended queue
Circular queue
Ordinary Queue
What is the disadvantage of array data structure?
The amount of memory should be allocated should be known beforehand.
Elements of an array can be accessed in constant time.
Elements are stored in contiguous memory blocks.
Multiple other data structures can be implemented using arrays.
What is the maximum number of swaps that can be performed in the Selection Sort algorithm?
n-1
n
1
n-2
What is the time complexity of the binary search algorithm?
O(n)
O(1)
O(log2n)
O(n^2)
Consider a B+-tree in which the maximum number of keys in a node is 5. What is the minimum number of keys in any non-root node?
1
2
3
4
What will be the output of the following code snippet?
Example = [“Sunday”, “Monday”, “Tuesday”, “Wednesday”]; Print(example[-3:-1])
[‘Monday’,’Tuesday’]
[‘Sunday’,’Monday’]
[`Tuesday’,’Wednesday’]
[‘Wednesday’,’Monday’]
What will be the type of the variable sorted_numbers in the below code snippet?
numbers = (4, 7, 19, 2, 89, 45, 72, 22)
sorted_numbers = sorted(numbers)
print (sorted_numbers)
tuple
list
string
int
What will be the output of the following code snippet?
dict1 = {‘first’ : ‘Sunday’, ‘second’ : ‘Monday’}
dict2 = {1: 3, 2: 4}
dict1.update(dict2)
print(dict1)
{‘first’:’sunday’,’second’:’monday’,1:3,2:4}
{‘first’: ’sunday’ ,’second’: ’monday’}
{1:3,2:4}
None of the above
Which of the following is true for variable names in C?
They can contain alphanumeric characters as well as special characters
It is not an error to declare a variable to be one of the keywords(like goto, static)
Variable names cannot start with a digit
Variable can be of any length
What will happen if the following C code is executed?
#include <stdio.h>
int main()
{
int a = 10, b = 25;
a = b++ + a++;
b = ++b + ++a;
printf("%d %d n", a, b);
}
36 64
35 62
36 63
30 28
What will happen if the following C code is executed?
#include <stdio.h>
int main()
{
int main = 3;
printf("%d", main);
return 0;
}
It will cause a compile-time error
It will cause a run-time error
It will run without any error and prints 3
It will experience infinite looping
Which of the following declaration is not supported by C language?
String str;
char *str;
float str = 3e2;
Both “String str;” and “float str = 3e2;”
What will be the final value of x in the following C code?
#include <stdio.h>
void main()
{
int x = 5 * 9 / 3 + 9;
}
3.75
Depends on compiler
24
Cannot be determined
What is short int in C programming?
The basic data type of C
Short is the qualifier and int is the basic data type
Qualifier
All of the mentioned
What will be the output of the program ?
#include<stdio.h>
int main()
{
void fun(int, int[]);
int arr[] = {1, 2, 3, 4};
int i;
fun(4, arr);
for(i=0; i<4; i++)
printf("%d,", arr[i]);
return 0;
}
void fun(int n, int arr[])
{
int *p=0;
int i=0;
while(i++ < n)
p = &arr[i];
*p=0;
}
2,3,4,5
1,2,3,4
5,6,7,8
4,3,2,1
As what data type are the *kwargs stored, when passed into a function?
Lists
Tuples
Dictionary
None of the Above
What will be the output of the following code snippet?
set1 = {1, 3, 5}
set2 = {2, 4, 6}
print(len(set1 + set2))
3
6
0
ERROR
What will be the output of the following code snippet?
a = 3
b = 1
print(a, b)
a, b = b, a
print(a, b)
1 3 3 1
3 1 3 1
3 1 1 3
ERROR
Which of the following are valid string manipulation functions in Python?
count()
upper()
strip()
All of the above
What will be the output of the following code snippet?
Print(2**3 + (5 + 6)**(1 + 1))
130
128
129
125
From a group of 7 men and 6 women, five persons are to be selected to form a committee so that at least 3 men are there on the committee. In how many ways can it be done?
564
756
684
657
The sum of ages of 5 children born at the intervals of 3 years each is 50 years. What is the age of the youngest child?
4 years
8 years
10 years
None of the above
SCD, TEF, UGH, ___, WKL
CMN
UJI
VIJ
IJT
Which company developed the first mobile phone?
Motorola
Apple
Nokia
Samsung
Who is the director of the Chandrayaan 3 mission?
Veeramuthuvel
Vanitha
Ritu Karidhal
Sivan
Which country launched the world's first fully- fledged 5G mobile networks in April 2019?
China
Japan
South Korea
Singapore
India's first-ever Night Sky Sanctuary is located in which state/UT?
Himachal Pradesh
Sikkim
Uttarakhand
Ladakh
Union Information and Broadcasting Ministry signed agreement with which company to boost India's creative economy?
IBM
Amazon India
Microsoft
When was Prime Minister Narendra Modi announced a Nation-Wide Lockdown for 21 days due to Corona?
March 24,2020
March 22,2020
March 28,2020
March 26,2020
Name of the new software developed by meta and Microsoft to offer new Ai software for businesses?
Bard
Llama 2
Gpt 3
Copilot
The keyword used to transfer control from a function back to the calling function is
Switch
Goto
Go back
Return
What is the result of logical or relational expression in C?
True or False
0 or 1
0 if an expression is false and any positive number if an expression is true
None of the mentioned
What will be the output of the following C function?
#include <stdio.h>
enum birds {SPARROW, PEACOCK, PARROT};
enum animals {TIGER = 8, LION, RABBIT, ZEBRA};
int main()
{
enum birds m = TIGER;
int k;
k = m;
printf("%d\n", k);
return 0;
}
0
Compile time error
1
8
Today it is Thursday.After 132 days,it will be
Monday
Sunday
Wednesday
Thursday
Find the odd man out: 396, 462, 572, 427, 671, 264
427
396
264
572
If one-third of one-fourth of a number is 15, then three-tenth of that number is:
35
36
45
54
Who was crowned Miss International India 2023?
Nandini Gupta
Praveena Anjana
Shreya Poonja
Thounaojam Strela Luwang
What are the values of the following Python expressions?
2**(3**2)
(2**3)**2
2**3**2
512, 64, 512
512, 512, 512
64, 512, 64
64, 64, 64
A is B's sister. C is B's mother. D is C's father. E is D's mother. Then, how is A related to D?
Grand Father
Grand Mother
Daughter
Grand Daughter
Which minister launched the Agneepath scheme?
Rajnath Singh
Rahul Gandhi
Amit Shah
Ashwini Vaishnav
A cube is coloured red on all faces. It is cut into 64 smaller cubes of equal size. Now, answer the following questions based on this statement :How many cubes have no face coloured?
24
16
8
0
Which country chaired the ASEAN Summit in 2023?
Thailand
South Korea
Singapore
Indonesia
Which state is the top sugar producer of India in 2021-22?
Madhya Pradesh
Maharashtra
Gujarat
Karnataka
India's first human space mission "Gaganyaan" will be launched in which year?
2022
2023
2024
2025
