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

Access detailed explanations (illustrated with images and videos) to 472 questions. Access all new questions we will add tracking exam-pattern and syllabus changes. Unlimited Access for Unlimited Time! View Sample Explanation or View Features.

Rs. 300.00 or

How to register?

Question number: 132

» Computer Application and Data Processing » Basics of Programming » Loops

Edit
MCQ▾

Question

What will be output of following c code?

  1. #include<stdio.h>
  2. int main(){
  3.     int x=20;
  4.     do{
  5.         printf("%d",x++);
  6.     }
  7.     while(2,0);
  8.     return 0;
  9. }

Choices

Choice (4)Response

a.

Compilation error

b.

21

c.

20

d.

0

Question number: 133

» Computer Application and Data Processing » Basics of Programming » Loops

Edit
MCQ▾

Question

Fill the blanks in the following statement by using suitable option: ________is used to take control to the beginning of the loop while ________ is used for terminating all loops.

Choices

Choice (4)Response

a.

Break, continue

b.

Continue, break

c.

Continue, exit

d.

None of the above

Question number: 134

» Computer Application and Data Processing » Basics of Programming » Functions

Edit
MCQ▾

Question

What is the output of this C code?

  1. void main()
  2. {
  3.     int x=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 number: 135

» Computer Application and Data Processing » Basics of Programming » Variables

Edit
MCQ▾

Question

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 number: 136

» Computer Application and Data Processing » Basics of Programming » Control Structures

Edit
MCQ▾

Question

Point out the error, if any in the program.

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

Choices

Choice (4)Response

a.

No Error

b.

Error: No case statement specified

c.

Error: No default specified

d.

Error: infinite loop occurs

Developed by: