ISS (Statistical Services) Statistics Paper I (New 2016 MCQ Pattern): Questions 134 - 138 of 472

Access detailed explanations (illustrated with images and videos) to 472 questions. Access all new questions- tracking exam pattern and syllabus. View the complete topic-wise distribution of questions. Unlimited Access, Unlimited Time, on Unlimited Devices!

View Sample Explanation or View Features.

Rs. 300.00 -OR-

How to register? Already Subscribed?

Question 134

Question

MCQ▾

What is the output of this C code?

  1. voidmain()
  2. {
  3.     intx=1;
  4.     if (x < 2)
  5.     main();
  6. }

Choices

Choice (4)Response

a.

Infinite calls to main

b.

Run time error

c.

Compilation error

d.

Main is called twice

Question 135

Question

MCQ▾

Which of the following is not a pointer declaration?

Choices

Choice (4)Response

a.

double B [] = { ‘25’ , ‘36’ , ‘11’ } ;

b.

double A [20] ;

c.

char ptr;

d.

double ptr;

Question 136

Question

MCQ▾

Point out the error, if any in the program.

  1. #include<stdio.h>
  2. intmain()
  3. {
  4.     intx = 1;
  5.     switch(x)
  6.     {
  7.     }
  8.     printf("Hello");
  9.     return0;
  10. }

Choices

Choice (4)Response

a.

No Error

b.

Error: No case statement specified

c.

Error: No default specified

d.

Error: infinite loop occurs

Question 137

Question

MCQ▾

What is the output of this C code?

  1. #include<stdio.h>
  2. intmain()
  3. {
  4.     intx = 2;
  5.     inty= x +(x== 10);
  6.     printf("%dn", y);
  7. }

Choices

Choice (4)Response

a.

4

b.

2

c.

20

d.

Question does not provide sufficient data or is vague

Question 138

Question

MCQ▾

Which of the following statement is correct regarding the following program?

  1. intmain( )
  2. {
  3.     constdoublePI;
  4.     intn;
  5.     PI = 3.14159265358979;
  6.     n = 22;
  7. }

Choices

Choice (4)Response

a.

Const declared PI must be initialized at the time of declaration.

b.

Initialization of int n is incorrect.

c.

None of the above

d.

Question does not provide sufficient data or is vague