Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

TECHNICAL QUIZ

Total questions: 45

Worksheet time: 45mins

Name
Class
Date
1.

What is the range of values that can be stored by int datatype in C?

a)

a.    -(2^31) to (2^31) -1

b)

a.     -256 to 255

c)

a.     -(2^63) to (2^63)-1

d)

a.     0 to (2^31)-1

2.

Which is valid C expression?

a)

int my_num=100,000;

b)

int my_num=100000;

c)

int my num =1000;

d)

int $my_num=10000;

3.

Which of the following is true about interpreters?(C language)

a)

They translate the entire program at once.

b)

They execute programs faster than compilers.

c)

they translate and execute code line by line

d)

they are not used in modern programming

4.

which of the following is a valid declaration of a char?(java)

a)

char ch='\utea';

b)

char ca='tea'

c)

char cr=\u0223;

d)

char cc='\itea';

5.

What is the output of the following code?

                public class Main{

     public static void main(String []args){

        int x = 10;

        int y = 5;

        int z = (x > y) ? x : y;

        System.out.println(z);

}

}

a)

10

b)

5

c)

15

d)

the code will not compile due to syntax error

6.

Which of these keywords are used for the block to be examined for exceptions?(java)

a)

check

b)

throw

c)

catch

d)

try

7.

Which class provides system independent server side implementation?(java)

a)

Server

b)

ServerReader

c)

Socket

d)

ServerSocket

8.

Amongst which of the following is / are the application areas of Python programming?

a)

Web Development

b)

Game Development

c)

Artificial Intelligence and machine learning

d)

All of the mentioned above

9.

The picture is the logo of which company?

a)

ExxonMobile

b)

Walmart

c)

Nvidia

d)

Alphabet

10.

Which algorithm is used for hierarchical clustering?

a)

K-means clustering

b)

Agglomerative clustering

c)

DBSCAN

d)

principal Component Analysis(PCA)

11.

Which one of the following is not a Java feature?

a)

Object-oriented

b)

Use of pointers

c)

Portable

d)

Dynamic and Extensible

12.

Which option should be selected to work the following C expression?

string p = "HELLO";

a)

typedef char[] string;

b)

typedef char *string;

c)

typedef char[] string; and typedef char *string;

d)

such expression cannot be generated in c

13.

Which option should be selected to work the following C expression?

string p = "HELLO";

a)

typedef char[] string;

b)

typedef char *string;

c)

typedef char[] string; and typedef char *string;

d)

such expression cannot be generated in c

14.

Which type of Programming does Python support?

a)

object-oriented programming

b)

structured programming

c)

functional programming

d)

all of the above

15.

What will be the output of the following Python code?

i = 1

while True:

    if i%3 == 0:

         break

    print(i)

 

   i + = 1

a)

1 2 3

b)

error

c)

1 2

d)

none

16.

What is the order of namespaces in which Python looks for an identifier?

a)

Python first searches the built-in namespace, then the global namespace and finally the local namespace

b)

Python first searches the global namespace, then the local namespace and finally the built-in namespace

c)

Python first searches the built-in namespace, then the local namespace and finally the global namespace

d)

Python first searches the local namespace, then the global namespace and finally the built-in namespace

17.

Amongst the following which is not a database management software?

a)

MySQL

b)

COBOL

c)

Sybase

d)

Oracle

18.

Who is the founder of the company ‘Walmart’?

a)

Sam Walton

b)

Sachin Bansal

c)

Jensen Huang

d)

Bill Gates

19.

What will be the output of the following C code?

 #include  <stdio.h>

int main()

{

signed char chr;

chr = 128;

printf("%d\n", chr);

return 0;

}

a)

128

b)

-128

c)

Depends on the compiler

d)

none of the above

20.

What will be the output of the following C code?

#include <stdio.h>

int main()

 {

 int y = 10000;

 int y = 34;

printf("Hello World! %d\n", y);

return 0;

}

a)

Compile time error

b)

Hello World! 34

c)

Hello World! 1000

d)

Hello World! followed by a junk value

21.

Functions can return enumeration constants in C?

a)

true

b)

false

c)

depends on the compiler

d)

depends on the standard

22.

What will be the output of the following Java code?

 class increment {

 public static void main(String args[])

{       

     int g = 3;

System.out.print(++g * 8);

}

  }

a)

32

b)

33

c)

24

d)

25

23.

Which of the following for loop declaration is not valid?

a)

for ( int i = 99; i >= 0; i / 9 )

b)

for ( int i = 7; i <= 77; i += 7 )

c)

for ( int i = 20; i >= 2; - -i )

d)

for ( int i = 2; i <= 20; i = 2* i )

24.

In which process, a local variable has the same name as one of the instance variables?

(java)

a)

serialization

b)

variable Shadowing

c)

Abstraction

d)

Multi-threading

25.

An interface with no fields or methods is known as a __. (java)

a)

Runnable interface

b)

marker interface

c)

Abstract interface

d)

CharSequence interface

26.

Which of the following declarations is incorrect in python language?

a)

xyzp = 5,000,000

b)

x y z p = 5000 6000 7000 8000

c)

x,y,z,p = 5000, 6000, 7000, 8000

d)

x_y_z_p = 5,000,000

27.

What will be the output of the following Python code?

class tester:

def init(self, id):

self.id = str(id)

id="224"

>>>temp = tester(12)

>>>print(temp.id)

a)

12

b)

224

c)

none

d)

error

28.

list, tuple, and range are the ___ of Data Types.(python)

a)

Sequence Types

b)

Binary Types

c)

Boolean Types

d)

None of the mentioned above

29.

What is the value of the postfix expression 6 3 2 4 + – *?

a)

74

b)

-18

c)

22

d)

40

30.

Identify the different features of Big Data Analytics.

a)

open source

b)

data recovery

c)

scalability

d)

all of the above

31.

Which keyword is used to prevent any changes in the variable within a C program?

a)

immutable

b)

mutable

c)

const

d)

volatile

32.

  How many bytes does "int = D" use?

a)

0

b)

1

c)

2 or 4

d)

10

33.

.  Which environment variable is used to set the java path?

a)

MAVEN_Path

b)

JavaPATH

c)

JAVA

d)

JAVA_HOME

34.

What will be the output of the following program

public class Test {  

public static void main(String[] args) {  

 int count = 1;  

while (count <= 15) {  

System.out.println(count % 2 == 1 ? "***" : "+++++");  

++count;  

 }      // end while  

 }       // end main   

}  

a)

15 times ***

b)

15 times +++++

c)

8 times *** and 7 times +++++

d)

both will print only once

35.

Which of these cannot be used for a variable name in Java?

a)

identifier & keyword

b)

identifier

c)

keyword

d)

none of the above

36.

Is Python case sensitive when dealing with identifiers?

a)

no

b)

yes

c)

machine dependent

d)

none of the above

37.

What will be the output of the following Python code?

print("abc. DEF".capitalize())

a)

Abc. def

b)

abc. def

c)

Abc. Def

d)

ABC. DEF

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.

Which of the following tree data structures is not a balanced binary tree?

a)

Splay tree

b)

B-tree

c)

AVL tree

d)

Red-black tree

40.

Computer word size is a multiple of______ bits

a)

4

b)

10

c)

16

d)

1024

41.

The standard header _______ is used for variable list arguments (…) in C.

a)

<stdio.h >

b)

<stdlib.h>

c)

<math.h>

d)

<stdarg.h>

42.

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

43.

 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

44.

Which one of the following is the use of function in python?

a)

Functions don’t provide better modularity for your application

b)

you can’t also create your own functions

c)

functions are reusable pieces of programs

d)

All of the mentioned

45.

What arithmetic operators cannot be used with strings in Python?

a)

*

b)

-

c)

+

d)

all of the mentioned