• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

ISRO CS 2017 - May

Question 71

What is the output of the following program? 
 

#include 
int tmp=20;
main( )
{
printf("%d ",tmp);
func( );
printf("%d ",tmp);
}
func( )
{
static int tmp=10;
printf("%d ",tmp);
}


 

  • 20 10 10
     

  • 20 10 20
     

  • 20 20 20
     

  • 10 10 10
     

Question 72

A B-Tree used as an index for a large database table has four levels including the root node. If a new key is inserted in this index, then the maximum number of nodes that could be newly created in the process are
  • 5
  • 4
  • 1
  • 2

Question 73

Which of the following operator(s) cannot be overloaded?
  • . (Member Access or Dot operator)
  • ?: (Ternary or Conditional Operator )
  • :: (Scope Resolution Operator)
  • All of the above

Question 74

What is the output of this C++ program?
#include 
using namespace std;
void square (int *x)
{
*x = (*x)++ * (*x);
}
void square (int *x, int *y)
{
*x = (*x) * --(*y);
}
int main ( )
{
int number = 30;
square(&number, &number);
cout << number;
return 0;
}
  • 910
  • 920
  • 870
  • 900

Question 75

Which of these is a super class of all errors and exceptions in the Java language?
  • RunTimeExceptions
  • Throwable
  • Catchable
  • None of the above

Question 76

The linux command “mknod myfifo b 4 16”
  • Will create a character device if the user is root
  • Will create a named pipe FIFO if the user is root
  • Will create a block device if the user is root
  • None of the above

Question 77

An Ethernet frame that is less than the IEEE 802.3 minimum length of 64 octets is called

  • Short frame

  • Small frame

  • Mini frame

  • Runt frame

Question 78

The default subnet mask for a class B network can be
  • 255.255.255.0
  • 255.0.0.0
  • 255.255.192.0
  • 255.255.0.0

There are 78 questions to complete.

Last Updated :
Take a part in the ongoing discussion