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?
void main()
{
int x=1;
if (x < 2)
main();
}
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.
#include<stdio.h>
int main()
{
int x = 1;
switch(x)
{
}
printf("Hello");
return 0;
}
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?
#include <stdio.h>
int main()
{
int x = 2;
int y= x +(x== 10);
printf("%dn", y);
}
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?
int main( )
{
const double PI;
int n;
PI = 3.14159265358979;
n = 22;
}
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 |