Font size
WorksheetsAssessment Quiz on 09-09-2021
Total questions: 50
Worksheet time: 58mins
_______ generally occurs whenever more than one copy of the exact same data exists in several different places.
Data Repository
Data Inconsistency
Data Mining
Data Redundancy
What do you mean by one to many relationship between Teacher and Class table?
One class may have many teachers
One teacher can have many classes
Many classes may have many teachers
Many teachers may have many classes
Which of the following is a database model?
Network Database Model
Relational Database Model
Object Oriented Database Model
All of the mentioned
_______ helps us in removing all the redundant data.
Aggregation
Normalization
Optimization
Generalization
Triggers that contain DML and find other triggers for data modification are called _______.
Nested Triggers
DML Triggers
DDL Triggers
Logon Triggers
A binary search tree whose left sub tree and right subtree differ in height by at most 1 unit is called _______.
AVL tree
Red-black tree
Lemma tree
None of the mentioned
Which of the following data structure is not a linear type?
Graph
Trees
Binary Trees
All of the mentioned
A growth rate of n, is referred to as _________.
Absolute growth rate
Linear growth rate
Exponential growth rate
Quadratic growth rate
An analysis that estimates resource consumption of an algorithm is known to be ___________.
Relative analysis
Absolute analysis
Asymptotic analysis
Cost analysis
The upper bound on the time complexity of the nondeterministic sorting algorithm is?
O(n log n)
O(1)
O( log n)
None of the mentioned
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)
What does the following program print?
main ( )
int a[] = {0,1,2,3,4};
{
int i , *p;
for(p=a;i=0;p+i<=a+4;p++;i++)
cout<<*(p+i);
}
(a)
What does the following program print?
main ( )
int a[] = {0,1,2,3,4};
{
int i , *p;
for(p=a+4;i=0;i<=4;i++)
cout<<p[-i];
}
(a)
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)
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)
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)
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)
What does the following program print?
main ( )
{
int x=01;
x<<=3;
cout<<x;
}
(a)
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)
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)
Three
Fifteen
Thirty Five
Sixty Three
__________
Find out the Next one?
Ninety Nine
Hundred
Eighty Three
Eighty Five
Select the correct option(s) which match with this example: HANDS&FINGERS
Choose the best option :
HEAD&HAIR
FEET&TOES
SKIN&COLORS
BOTH HEAD&HAIR and FEET&TOES
701 722 764
501 522 564
** 376 418
Find the value of **?
352
355
353
364
Indicating to mala and ganesh said " Her Mom's only daughter is my mom". How is ganesh associated to mala?
NEPHEW
BROTHER
SON
None of the mentioned
Find the odd one from this list: Magazine, Journal, Novel, Dictionary, Article.
Article
Novel
Journal
Dictionary
All the Express Trains stop in this stop. Rajdhani doesn't stop here.
Rajdhani is not an express train
Rajdhani is a passenger train
Rajdhani is a fast train
None of the mentioned
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?
Sam
Martin
Pratheep
Sreyesh
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?
8
7
11
5
Statement I: some roots are boats.
Statement II: Some roots are onions.
Some Onions are Boats
Some Boats are Onions
No root is a Boat
None of the mentioned
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.
18
19
20
21
To access the services of operating system, the interface is provided by the ___________.
System calls
API
Library
Assembly instructions
Which of the following is a database of information about the windows operating system including customized settings and software installations?
Changelog
Registry
Performance Monitor
None of the mentioned
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________.
Process
Deadlock
Seek Optimization
Blockage
The process of loading the page into memory on demand (whenever page fault occurs) is known as__________.
Demand paging
Deadlock
Priority
Scheduling
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.
Zombie
Orphan
Child
Parent
Storage mapping is done by________.
Loader
Linker
Compiler
Operating System
The translator used by second generation languages_______.
Assembler
Compiler
Linker
Interpreter
Which of the following actions an operator precedence parser may take to recover from an error?
Delete symbols from the stack
Insert symbols onto the stack
Inserting or deleting symbols from the input
All of the mentioned
In a compiler, keywords of a language are recognized during ________.
code generation
parsing of the program
lexical analysis of the program
dataflow analysis
Compiler translates the source code to ______.
Machine code
Binary code
Executable code
Machine code & Binary code
What is the use of a semicolon (;) at the end of every program statement?
A) It has to do with the parsing process and compilation of the code.
B) A semicolon acts as a delimiter, so that the compiler knows where each statement ends.
Both A and B
None of the mentioned
What are pointers?
A) Pointers point to specific areas in the memory.
B) Pointers contain the address of a variable, which in turn may contain a value or even an address to another memory.
Both A and B
None of the mentioned
Which function in C can be used to append a string to another string?
strcat
strlen
strcopy
All of the mentioned
What are logical errors and how does it differ from syntax errors?
A) Program that contains logical errors tend to pass the compilation process, but the resulting output may not be the expected one.
B) This happens when a wrong formula was inserted into the code, or a wrong sequence of commands was performed.
Both A and B
None of the mentioned
__________ is the process of identifying errors within a program.
programming
debugging
adding
coding
What is a pointer on pointer?
It’s a pointer variable which can hold the address of another pointer variable.
It’s a pointer variable which hold the value
It’s a variable
It’s a pointer variable
What is the output of the following program?
#include<stdio.h>
void f()
{
static int i;
++i;
printf("%d", i);
}
main()
{
f();
f();
f();
}
1 1 1
0 0 0
3 2 1
1 2 3
What is the output of the following program?
#include<stdio.h>
int x = 5;
int* f()
{
return &x;
}
main()
{
*f() = 10;
printf("%d", x);
}
Compiler Error
Runtime Error
5
10
Which header file can be used to define input/output function prototypes and macros?
math.h
memory.h
stdio.h
dos.h
What is the output of the following?
int i;
i=1;
i=i+2*i++;
printf(%d,i);
4
3
5
1
