wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Assessment Quiz on 09-09-2021

Total questions: 50

Worksheet time: 58mins

Name
Class
Date
1.

_______ generally occurs whenever more than one copy of the exact same data exists in several different places.

a)

Data Repository

b)

Data Inconsistency

c)

Data Mining

d)

Data Redundancy

2.

What do you mean by one to many relationship between Teacher and Class table?

a)

One class may have many teachers

b)

One teacher can have many classes

c)

Many classes may have many teachers

d)

Many teachers may have many classes

3.

Which of the following is a database model?

a)

Network Database Model

b)

Relational Database Model

c)

Object Oriented Database Model

d)

All of the mentioned

4.

_______ helps us in removing all the redundant data.

a)

Aggregation

b)

Normalization

c)

Optimization

d)

Generalization

5.

Triggers that contain DML and find other triggers for data modification are called _______.

a)

Nested Triggers

b)

DML Triggers

c)

DDL Triggers

d)

Logon Triggers

6.

A binary search tree whose left sub tree and right subtree differ in height by at most 1 unit is called _______.

a)

AVL tree

b)

Red-black tree

c)

Lemma tree

d)

None of the mentioned

7.

Which of the following data structure is not a linear type?

a)

Graph

b)

Trees

c)

Binary Trees

d)

All of the mentioned

8.

A growth rate of n, is referred to as _________.

a)

Absolute growth rate

b)

Linear growth rate

c)

Exponential growth rate

d)

Quadratic growth rate

9.

An analysis that estimates resource consumption of an algorithm is known to be ___________.

a)

Relative analysis

b)

Absolute analysis

c)

Asymptotic analysis

d)

Cost analysis

10.

The upper bound on the time complexity of the nondeterministic sorting algorithm is?

a)

O(n log n)

b)

O(1)

c)

O( log n)

d)

None of the mentioned

11.

What will be the output of the following program?

# define max(a,b)(a>b?a:b)

main()

{

cout<<”max(2,3)=”<<max(2,3)<<endl;

cout<<”max(10.2,4.5)=”<<max(10.2,4.5)<<endl;

int i=5,j=10;

cout<<”i=”<<i<<endl;

cout<<”j=”<<j<<endl;

cout<< “on execution of k=max(++i,++j);”<<endl;

int k=max(++i,++j);

cout<<”i=”<<i<<endl;

cout<<”j=”<<j<<endl;

cout<<”k=”<<k<<endl;

}

(a)  

12.

What does the following program print?

main ( )

int a[] = {0,1,2,3,4};

{

int i , *p;

for(p=a;i=0;p+i&lt;=a+4;p++;i++)

cout<<*(p+i);

}

(a)  

13.

What does the following program print?

main ( )

int a[] = {0,1,2,3,4};

{

int i , *p;

for(p=a+4;i=0;i&lt;=4;i++)

cout<<p[-i];

}

(a)  

14.

What is the output of this program?

using namespace std;

class X

{

int m;

public:

X() : m(10)

{

}

X(int mm): m(mm)

{

}

int getm()

{

return m;

}

};

class Y : public X

{

int n;

public:

Y(int nn) : n(nn)

{}

int getn()

{

return n;

}

};

int main()

{

Y yobj( 100 );

cout << yobj.getm() << " " << yobj.getn() << endl;

}

(a)  

15.

What is the output of this program?

using namespace std;

int i;

void increment( int i )

{

i++;

}

int main()

{

for (i = 0; i < 10;

increment( i ))

{

cout << i;

}

return 0;

}

(a)  

16.

Which statement should be included to get the output as 749736?

using namespace std;

int main ()

{

int x, y;

x = 5;

y = ++x * ++x;

cout << x << y;

x = 5;

-----------------;

cout << x << y;

return 0;

}

(a)  

17.

Spot out the error and fix it to get the output as 543.

int main ()

{

int n;

for (n = 5; n > 0; n++)

{

cout << n;

if (n == 3)

break;

}

return 0;

}

(a)  

18.

What does the following program print?

main ( )

{

int x=01;

x<<=3;

cout<<x;

}

(a)  

19.

What does the following program print?

int main()

{

int j;

int one[5];

int two[10];

for (j = 0; j < 5; j++)

one[j] = 5 * j + 3;

cout << "One contains: ";

for (j = 0; j < 5; j++)

cout << one[j] << " ";

cout << endl;

for (j = 0; j < 5; j++)

{

two[j] = 2 * one[j] - 1;

two[j + 5] = one[4 - j] + two [j];

}

cout << "Two contains: ";

for (j = 0; j < 10; j++)

cout << two[j] << " ";

cout << endl;

return 0;

}

(a)  

20.

What will be output of the following program?

void funct();

int main()

{

try

{

funct();

}

catch(double)

{

cerr << "caught a double type..." << endl;

}

return 0;

}

(a)  

21.

Three

Fifteen

Thirty Five

Sixty Three

__________

Find out the Next one?

a)

Ninety Nine

b)

Hundred

c)

Eighty Three

d)

Eighty Five

22.

Select the correct option(s) which match with this example: HANDS&FINGERS

Choose the best option :

a)

HEAD&HAIR

b)

FEET&TOES

c)

SKIN&COLORS

d)

BOTH HEAD&HAIR and FEET&TOES

23.

701 722 764

501 522 564

** 376 418

Find the value of **?

a)

352

b)

355

c)

353

d)

364

24.

Indicating to mala and ganesh said " Her Mom's only daughter is my mom". How is ganesh associated to mala?

a)

NEPHEW

b)

BROTHER

c)

SON

d)

None of the mentioned

25.

Find the odd one from this list: Magazine, Journal, Novel, Dictionary, Article.

a)

Article

b)

Novel

c)

Journal

d)

Dictionary

26.

All the Express Trains stop in this stop. Rajdhani doesn't stop here.

a)

Rajdhani is not an express train

b)

Rajdhani is a passenger train

c)

Rajdhani is a fast train

d)

None of the mentioned

27.

Sam,martin and manoj play badminton. Martin, sreyesh and pratheep play tennis, martin, sreyesh and sam play chess, who plays chess & badminton but not tennis?

a)

Sam

b)

Martin

c)

Pratheep

d)

Sreyesh

28.

A team of 25 boys play basketball, football & cricket. 5 of them plays all 3 games, 12 plays basketball & football only. 13 play football & cricket only. How many of them doesn't play any games?

a)

8

b)

7

c)

11

d)

5

29.

Statement I: some roots are boats.

Statement II: Some roots are onions.

a)

Some Onions are Boats

b)

Some Boats are Onions

c)

No root is a Boat

d)

None of the mentioned

30.

In a row of children guna is 7th from the left, barani is 4th from the right. When each of them exchanges their positions guna will be 15th from the left. Find the total strength of children.

a)

18

b)

19

c)

20

d)

21

31.

To access the services of operating system, the interface is provided by the ___________.

a)

System calls

b)

API

c)

Library

d)

Assembly instructions

32.

Which of the following is a database of information about the windows operating system including customized settings and software installations?

a)

Changelog

b)

Registry

c)

Performance Monitor

d)

None of the mentioned

33.

If a thread that had already locked a mutex, tries to lock the mutex again, it will enter into the waiting list of that mutex, which results in a________.

a)

Process

b)

Deadlock

c)

Seek Optimization

d)

Blockage

34.

The process of loading the page into memory on demand (whenever page fault occurs) is known as__________.

a)

Demand paging

b)

Deadlock

c)

Priority

d)

Scheduling

35.

A process that has finished the execution but still has an entry in the process table to report to its parent process is known as a _____process.

a)

Zombie

b)

Orphan

c)

Child

d)

Parent

36.

Storage mapping is done by________.

a)

Loader

b)

Linker

c)

Compiler

d)

Operating System

37.

The translator used by second generation languages_______.

a)

Assembler

b)

Compiler

c)

Linker

d)

Interpreter

38.

Which of the following actions an operator precedence parser may take to recover from an error?

a)

Delete symbols from the stack

b)

Insert symbols onto the stack

c)

Inserting or deleting symbols from the input

d)

All of the mentioned

39.

In a compiler, keywords of a language are recognized during ________.

a)

code generation

b)

parsing of the program

c)

lexical analysis of the program

d)

dataflow analysis

40.

Compiler translates the source code to ______.

a)

Machine code

b)

Binary code

c)

Executable code

d)

Machine code & Binary code

41.

What is the use of a semicolon (;) at the end of every program statement?

a)

A) It has to do with the parsing process and compilation of the code.

b)

B) A semicolon acts as a delimiter, so that the compiler knows where each statement ends.

c)

Both A and B

d)

None of the mentioned

42.

What are pointers?

a)

A) Pointers point to specific areas in the memory.

b)

B) Pointers contain the address of a variable, which in turn may contain a value or even an address to another memory.

c)

Both A and B

d)

None of the mentioned

43.

Which function in C can be used to append a string to another string?

a)

strcat

b)

strlen

c)

strcopy

d)

All of the mentioned

44.

What are logical errors and how does it differ from syntax errors?

a)

A) Program that contains logical errors tend to pass the compilation process, but the resulting output may not be the expected one.

b)

B) This happens when a wrong formula was inserted into the code, or a wrong sequence of commands was performed.

c)

Both A and B

d)

None of the mentioned

45.

__________ is the process of identifying errors within a program.

a)

programming

b)

debugging

c)

adding

d)

coding

46.

What is a pointer on pointer?

a)

It’s a pointer variable which can hold the address of another pointer variable.

b)

It’s a pointer variable which hold the value

c)

It’s a variable

d)

It’s a pointer variable

47.

What is the output of the following program?

#include<stdio.h>

void f()

{

static int i;

++i;

printf("%d", i);

}

main()

{

f();

f();

f();

}

a)

1 1 1

b)

0 0 0

c)

3 2 1

d)

1 2 3

48.

What is the output of the following program?

#include<stdio.h>

int x = 5;

int* f()

{

return &x;

}

main()

{

*f() = 10;

printf("%d", x);

}

a)

Compiler Error

b)

Runtime Error

c)

5

d)

10

49.

Which header file can be used to define input/output function prototypes and macros?

a)

math.h

b)

memory.h

c)

stdio.h

d)

dos.h

50.

What is the output of the following?

int i;

i=1;

i=i+2*i++;

printf(%d,i);

a)

4

b)

3

c)

5

d)

1