ISS (Statistical Services) Statistics Paper I: Questions 253 - 257 of 1595

Choose Programs:

📹 Video Course 2024 (60 Lectures [26 hrs : 20 mins]): Offline Support

Rs. 160.00 -OR-

1 Month Validity (Multiple Devices)

Preview All LecturesDetails

🎓 Study Material (589 Notes): 2024-2025 Syllabus

Rs. 650.00 -OR-

3 Year Validity (Multiple Devices)

Topic-wise Notes & SampleDetails

🎯 1595 MCQs (& PYQs) with Full Explanations (2024-2025 Exam)

Rs. 500.00 -OR-

3 Year Validity (Multiple Devices)

CoverageDetailsSample Explanation

Help me Choose & Register (Watch Video) Already Subscribed?

Question 253

Question MCQ▾

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

Edit

Question 254

Question MCQ▾

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

Edit

Question 255

Question MCQ▾

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

Edit

Question 256

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;

Edit

Question 257

Question MCQ▾

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

Edit