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?
#include<stdio.h>
int main(){
int x=20;
do{
printf("%d",x++);
}
while(2,0);
return 0;
}
Choices
Choice (4) | Response | |
---|---|---|
a. | Compilation error | |
b. | 21 | |
c. | 20 | |
d. | 0 |
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 |
Question 255
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 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; |
Question 257
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 |