wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

TECHNICAL QUIZ

Total questions: 45

Worksheet time: 34mins

Name
Class
Date
1.

Which of the following is not the type of queue?

a)

Priority queue

b)

Single-ended queue

c)

 Circular queue

d)

Ordinary Queue

2.

What is the disadvantage of array data structure?

a)

The amount of memory should be allocated should be known beforehand.

b)

Elements of an array can be accessed in constant time.

c)

Elements are stored in contiguous memory blocks.

d)

Multiple other data structures can be implemented using arrays.

3.

 What is the maximum number of swaps that can be performed in the Selection Sort algorithm?

a)

n-1

b)

n

c)

1

d)

n-2

4.

What is the time complexity of the binary search algorithm?

a)

O(n)

b)

O(1)

c)

O(log2n)

d)

O(n^2)

5.

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?

a)

1

b)

2

c)

3

d)

4

6.

What will be the output of the following code snippet?

Example = [“Sunday”, “Monday”, “Tuesday”, “Wednesday”]; Print(example[-3:-1])

a)

[‘Monday’,’Tuesday’]

b)

[‘Sunday’,’Monday’]

c)

[`Tuesday’,’Wednesday’]

d)

[‘Wednesday’,’Monday’]

7.

 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)

a)

 tuple

b)

list

c)

string

d)

int

8.

 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)

a)

{‘first’:’sunday’,’second’:’monday’,1:3,2:4}

b)

{‘first’: ’sunday’ ,’second’: ’monday’}

c)

{1:3,2:4}

d)

None of the above

9.

 Which of the following is true for variable names in C?

a)

 They can contain alphanumeric characters as well as special characters

b)

 It is not an error to declare a variable to be one of the keywords(like goto, static)

c)

Variable names cannot start with a digit

d)

Variable can be of any length

10.

 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);

}

a)

36 64

b)

35 62

c)

 36 63

d)

 30 28

11.

What will happen if the following C code is executed?

    #include <stdio.h>

    int main()

    {

        int main = 3;

        printf("%d", main);

        return 0;

    }

a)

 It will cause a compile-time error

b)

It will cause a run-time error

c)

 It will run without any error and prints 3

d)

 It will experience infinite looping

12.

 Which of the following declaration is not supported by C language?

a)

String str;

b)

char *str;

c)

 float str = 3e2;

d)

 Both “String str;” and “float str = 3e2;”

13.

What will be the final value of x in the following C code?

    #include <stdio.h>

    void main()

    {

        int x = 5 * 9 / 3 + 9;

    }

a)

 3.75

b)

 Depends on compiler

c)

24

d)

Cannot be determined

14.

 What is short int in C programming?

a)

 The basic data type of C

b)

Short is the qualifier and int is the basic data type

c)

Qualifier

d)

 All of the mentioned

15.

 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;

}

a)

2,3,4,5

b)

1,2,3,4

c)

5,6,7,8

d)

4,3,2,1

16.

As what data type are the *kwargs   stored, when passed into a function?

a)

 Lists

b)

Tuples

c)

Dictionary

d)

None of the Above

17.

 What will be the output of the following code snippet?

set1 = {1, 3, 5}

set2 = {2, 4, 6}

print(len(set1 + set2))

a)

3

b)

6

c)

0

d)

ERROR

18.

 What will be the output of the following code snippet?

a = 3

b = 1

print(a, b)

a, b = b, a

print(a, b)

a)

1 3 3 1

b)

3 1 3 1

c)

3 1 1 3

d)

ERROR

19.

 Which of the following are valid string manipulation functions in Python?

a)

 count()

b)

upper()

c)

strip()

d)

All of the above

20.

What will be the output of the following code snippet?

Print(2**3 + (5 + 6)**(1 + 1))

a)

130

b)

128

c)

129

d)

125

21.

 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?

a)

564

b)

756

c)

684

d)

657

22.

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?

a)

4 years

b)

8 years

c)

10 years

d)

None of the above

23.

SCD, TEF, UGH, ___, WKL

a)

CMN

b)

 UJI

c)

 VIJ

d)

 IJT

24.

Which company developed the first mobile phone?

a)

Motorola

b)

Apple

c)

Nokia

d)

Samsung

25.

Who is the director of the Chandrayaan 3 mission?

a)

Veeramuthuvel

b)

Vanitha

c)

Ritu Karidhal

d)

Sivan

26.

Which country launched the world's first fully- fledged 5G mobile networks in April 2019?

a)

China

b)

Japan

c)

South Korea

d)

Singapore

27.

India's first-ever Night Sky Sanctuary is located in which state/UT?

a)

Himachal Pradesh

b)

Sikkim

c)

Uttarakhand

d)

Ladakh

28.

Union Information and Broadcasting Ministry signed agreement with which company to boost India's creative economy?

a)

IBM

b)

Amazon India

c)

Google

d)

Microsoft

29.

When was Prime Minister Narendra Modi announced a Nation-Wide Lockdown for 21 days due to Corona?

a)

March 24,2020

b)

March 22,2020

c)

March 28,2020

d)

March 26,2020

30.

Name of the new software developed by meta and Microsoft to offer new Ai software for businesses?

a)

Bard

b)

Llama 2

c)

Gpt 3

d)

Copilot

31.

The keyword used to transfer control from a function back to the calling function is

a)

Switch

b)

Goto

c)

Go back

d)

Return

32.

What is the result of logical or relational expression in C?

a)

 True or False

b)

0 or 1

c)

 0 if an expression is false and any positive number if an expression is true

d)

None of the mentioned

33.

 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;

    }

a)

0

b)

 Compile time error

c)

1

d)

8

34.

Today it is Thursday.After 132 days,it will be

a)

Monday

b)

Sunday

c)

Wednesday

d)

Thursday

35.

Find the odd man out: 396, 462, 572, 427, 671, 264

a)

 427

b)

396

c)

264

d)

572

36.

 If one-third of one-fourth of a number is 15, then three-tenth of that number is:

a)

35

b)

36

c)

45

d)

54

37.

Who was crowned Miss International India 2023?

a)

Nandini Gupta

b)

Praveena Anjana

c)

 Shreya Poonja

d)

Thounaojam Strela Luwang

38.

What are the values of the following Python expressions?

2**(3**2)

(2**3)**2

2**3**2

a)

512, 64, 512

b)

512, 512, 512

c)

64, 512, 64

d)

64, 64, 64

39.

What will be the output of the following Python code?

  1. class tester:

  2. def init(self, id):

  3. self.id = str(id)

  4. id="224"

  5.  temp = tester(12)

    print(temp.id)

a)

12

b)

224

c)

None

d)

Error

40.

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?

a)

Grand Father

b)

Grand Mother

c)

Daughter

d)

Grand Daughter

41.

Which minister launched the Agneepath scheme?

a)

Rajnath Singh

b)

Rahul Gandhi

c)

Amit Shah

d)

Ashwini Vaishnav

42.

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?

a)

24

b)

16

c)

8

d)

0

43.

Which country chaired the ASEAN Summit in 2023?

a)

Thailand

b)

South Korea

c)

Singapore

d)

Indonesia

44.

Which state is the top sugar producer of India in 2021-22?

a)

Madhya Pradesh

b)

Maharashtra

c)

Gujarat

d)

Karnataka

45.

India's first human space mission "Gaganyaan" will be launched in which year?

a)

2022

b)

2023

c)

2024

d)

2025