wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MIND SWEEPER

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

Is Bitwise & and | are unary operators

a)

True

b)

False

2.

Which bitwise operator is suitable for turning off a particular bit in a number?

a)

&& operator

b)

& operator

c)

|| operator

d)

! operator

3.

If the two strings are identical, then strcmp() function returns

a)

-1

b)

1

c)

0

d)

Yes

4.

How will you free the allocated memory ?

a)

free(var-name);

b)

remove(var-name);

c)

delete(var-name);

d)

dalloc(var-name);

5.

You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?

a)

Protected

b)

Public

c)

Private

d)

Transistent

6.

We can add a row using SQL in a database with which of the following?

ADD

a)

Make

b)

create

c)

Add

d)

insert

7.

If the array is already sorted, then the running time for merge sort is

a)

O(1)

b)

O(n*log n)

c)

O(n)

d)

O(n^2)

8.

The command to remove a table 'CUSTOMER' in database

a)

remove

b)

delete

c)

drop

d)

remove

9.

for an algorithm time complexity is given by O(1) then complexityof it is:

a)

constant

b)

All options will use

c)

exponential

d)

polynomial

10.

Which one of the following is not a valid state of a thread?

a)

block

b)

Destroying

c)

Running

d)

ready

11.

Which of the following type of class allows only one object of it to be created?

a)

Virtual class

b)

Abstract class

c)

Friend class

d)

Singleton class

12.

Total bits used by the IPv6 address is (a)  

13.

Why is a firewall used in a computer?

a)

Authentication

b)

security

c)

Monitoring

d)

data transmission

14.

Among the following which is not a database management software

a)

Sybase

b)

COBOL

c)

Oracle

d)

Mysql

15.

The total view of a database is known as

a)

physical view

b)

Conceptual view

c)

internal view

d)

External view

16.

What terms is Computer memory measured (a)  

17.

The complexity of merge sort algorithm is

a)

O(n log n)

b)

O(n2)

c)

O(n)

d)

O(log n)

18.

Which of the following is not an operating system?

a)

Dos

b)

oracle

c)

Windows

d)

Unix

19.

#include <stdio.h>

 

int main()

{

    int i = 1024;

    for ( ; I ; i >>= 1)

        printf("codemaker");

    return 0;

}

How many times will "codemaker" be printed in the above program?

(a)  

20.

Automatic type conversion is possible in which of the possible cases?

a)

 Int to long

b)

Byte to int

c)

long to int

d)

short to int

21.

Select the valid statement from the following ?

a)

char[] ch = new char(5)

b)

char[] ch = new char()

c)

char[] ch = new char[5]

d)

char[] ch = new char[]

22.

When an array is passed to a method, what does the method receive?

a)

reference of the array

b)

copy of the array

c)

length of the array

d)

copy of first element

23.

If the number of records to be sorted is small, then …… sorting can be efficient.

(a)  

24.

Arrays in java are

a)

Objects

b)

primitive data type

c)

none

d)

object references

25.

What is the size of float and double in java?

a)

32 and 32

b)

64 and 32

c)

64 and 64

d)

32 and 64

26.

The complexity of Fibonacci series is ?

a)

O(log n)

b)

O(2n)

c)

O(n log n)

d)

O(n2)

27.

Who developed Python Programming Language?

a)

Rasmus Lerdorf

b)

Niene Stom

c)

Wick van Rossum

d)

Guido van Rossum

28.

Which type of Programming does Python support?

a)

structured programming

b)

Object oriented programming

c)

All the options

d)

functional programming

29.

Is Python case sensitive when dealing with identifiers?

a)

none of the mentioned

b)

no

c)

yes

d)

machine dependent

30.

Is Python code compiled or interpreted?

a)

python code is interpreted

b)

python code is neither compiled nor interpreted

c)

Python code is both compiled and interpreted

d)

python code is compiled

31.

All keywords in Python are in ?

a)

lower case

b)

none of the mentioned

c)

capitalized

d)

upper case

32.

Extension for an HTML document?

(a)  

33.

Which of the following character is used to give single-line comments in Python?

a)

#

b)

//

c)

/*

d)

!

34.

Output for following snippet is:

int main()

{    

int a=12,b=39;    

printf ("%d",a&b);   

 return 0;}

a)

None

b)

468

c)

4

d)

0

35.

It is possible to pass a structure variable to a function either by value or by address ?

a)

True

b)

False

36.

Which type of language is savepoint and what it does?

a)

DML and it saves the changes

b)

TCL and its save a transaction so that you can rollback to that point whenever required. 

c)

DDL and its save the schema

d)

TCL and it sets a savepoint within a transaction

37.

Floor division operator is represented by (a)  

38.

Worst case occur in linear search algorithm when

a)

Item is somewhere in the middle of the array

b)

Item is the last element in the array or is not there at all

c)

Item is the last element of the array

d)

Item is not in the array at all

39.

Which of the following functions is a built-in function in python?

a)

print()

b)

fact()

c)

seed()

d)

prime()

40.

Which of the following statements is used to create an empty set in Python?

a)

[]

b)

set()

c)

()

d)

{}

41.

Extension of the Python file

(a)  

42.

How many bits make a byte?

(a)  

43.

Which of the following case does not exist in complexity theory?

a)

best case

b)

worst case

c)

average case

d)

null case

44.

output for following snippet:

int main()

{

int x;

for(x=1;x <=10;x++)

printf("%d",x);

return 0;

}

a)

1 2 3 4 5 6 7 8 9 10

b)

None of the above

c)

10

d)

11

45.

The complexity of linear search algorithm is

a)

O(n2)

b)

O(log n)

c)

O(n log n)

d)

O(n)

46.

The output of an AND gate with three inputs, A, B, and C, is HIGH when

a)

A=1, B=1, C=0

b)

A=1, B=1, C=1

c)

A=1, B=0, C=1

d)

A=0, B=0, C=0

47.

What is the infix version of the following postfix expression?

x 12 + z 17 y + 42 * / +

a)

x + 12 + z / 17 + y * 42

b)

x + 12 + z / ((17 + y) * 42)

c)

(x + 12 + z) / (17 + y * 42)

d)

None of the options

48.

What is the frequency range of the IEEE 802.11a standard?

a)

 A.2.4Gbps

b)

5Gbps

c)

2.4GHz

d)

5GHz

49.

output for the following snippet

While(“%d”, printf(“abc”)) 

   {

Printf(“de”);   

 }

a)

abcde

b)

abcabc.....

c)

abcdeabcdeabcde

d)

dedededede...

50.

The default parameter passing mechanism is called as

a)

None

b)

function call

c)

call by reference

d)

call by value