Computer Basics - 3

Computer Basics Mix Test - 3

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following data types is not defined in Standard C++?

  1. Char
  2. Int
  3. Real
  4. Bool
Question 2 Multiple Choice (Single Answer)

Which of the following is not a relational operator?

  1. >
  2. <
  3. > =
  4. + =
  5. None of these
Question 3 Multiple Choice (Single Answer)

Which of the following is not a looping statement in C++?

  1. While
  2. For
  3. Until
  4. Do
Question 4 Multiple Choice (Single Answer)

Linked list is a ............

  1. Linear Data Structure
  2. Non-Linear Data Structure
  3. Both of these
  4. None of these
Question 5 Multiple Choice (Single Answer)

Which of the following is possible number of nodes in complete binary tree?

  1. 8
  2. 15
  3. 17
  4. 21
Question 6 Multiple Choice (Single Answer)

What is the functionality of break statement?

  1. To exit from the program.
  2. To exit from the loop.
  3. To end the current iteration and jump to the next iteration.
  4. None of these
Question 7 Multiple Choice (Single Answer)

What is the meaning of enqueue?

  1. Adding an element in stack
  2. Adding an element in queue
  3. Removing an element from stack
  4. Removing an element from queue
Question 8 Multiple Choice (Single Answer)

Which of the following is used to terminate a process in Unix?

  1. ctrl-z
  2. ctrl-c
  3. vi
  4. fg
Question 9 Multiple Choice (Single Answer)

Which of the following commands displays all the files in the directory?

  1. ps
  2. wc
  3. ls
  4. who
Question 10 Multiple Choice (Single Answer)

The octal value of 7 with reference to permission of a file signifies

  1. Read Permission
  2. Write permission
  3. Execute permission
  4. All of these
Question 11 Multiple Choice (Single Answer)

The command pwd is used to

  1. change the directory
  2. create new directory
  3. obtain the absolute pathname for current working directory
  4. none of these
Question 12 Multiple Choice (Single Answer)

Which of the following can be used to represent hierarchical relationship between elements?

  1. Dequeue
  2. Array
  3. Tree
  4. All of these
Question 13 Multiple Choice (Single Answer)

How many different trees are possible with nine nodes?

  1. 1014
  2. 1013
  3. 503
  4. 511
Question 14 Multiple Choice (Single Answer)

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;

  1. 22
  2. 11
  3. 12
  4. compile error
Question 15 Multiple Choice (Single Answer)

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. 1
  2. 2
  3. 3
  4. garbage value
  5. compile error