Questions
Which of the following data types is not defined in Standard C++?
- Char
- Int
- Real
- Bool
Which of the following is not a relational operator?
- >
- <
- > =
- + =
- None of these
Which of the following is not a looping statement in C++?
- While
- For
- Until
- Do
Linked list is a ............
- Linear Data Structure
- Non-Linear Data Structure
- Both of these
- None of these
Which of the following is possible number of nodes in complete binary tree?
- 8
- 15
- 17
- 21
What is the functionality of break statement?
- To exit from the program.
- To exit from the loop.
- To end the current iteration and jump to the next iteration.
- None of these
What is the meaning of enqueue?
- Adding an element in stack
- Adding an element in queue
- Removing an element from stack
- Removing an element from queue
Which of the following is used to terminate a process in Unix?
- ctrl-z
- ctrl-c
- vi
- fg
Which of the following commands displays all the files in the directory?
- ps
- wc
- ls
- who
The octal value of 7 with reference to permission of a file signifies
- Read Permission
- Write permission
- Execute permission
- All of these
The command pwd is used to
- change the directory
- create new directory
- obtain the absolute pathname for current working directory
- none of these
Which of the following can be used to represent hierarchical relationship between elements?
- Dequeue
- Array
- Tree
- All of these
How many different trees are possible with nine nodes?
- 1014
- 1013
- 503
- 511
What will be the output of following program?
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
int k =1;
for(int i=1;i<=1;i++)
printf(%d,k++);
printf(%d,k);
system(PAUSE);
return 0;
- 22
- 11
- 12
- compile error
What will be the output of following program?
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
int p;
p = 1,2,3;
printf(%d,p);
system(PAUSE);
return 0;
- 1
- 2
- 3
- garbage value
- compile error