Computer Application and Data Processing-Basics of Programming [ISS (Statistical Services) Statistics Paper I]: Questions 63 - 68 of 574
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 63
Question MCQ▾
Suppose we implement quicksort on an array of n elements by always choosing the central element of the array as the pivot. Then the tightest upper bound for the worst case performance is
Choices
Choice (4) | Response | |
---|---|---|
a. | o (n2) | |
b. | O (nLogn) | |
c. | O (n2) | |
d. | Θ (nLogn) |
Question 64
Question MCQ▾
The output of following code is:
#include <stdio.h>
void main()
{
5>6 ? return 5 :return 6;
}
Choices
Choice (4) | Response | |
---|---|---|
a. | Return 5 | |
b. | Return 6 | |
c. | Garbage Value | |
d. | Compilation error |
Question 65
Question MCQ▾
What is the output of the following statements?
for(i=0; i++; i<6)
printf("%d ", i);
Choices
Choice (4) | Response | |
---|---|---|
a. | Infinite loop | |
b. | 0 1 2 3 4 5 | |
c. | 0 1 2 3 4 5 6 | |
d. | Question does not provide sufficient data or is vague |
Question 66
Question MCQ▾
Which of the following cannot be a variable name in C?
Choices
Choice (4) | Response | |
---|---|---|
a. | Extern | |
b. | left | |
c. | Right | |
d. | Intern |
Question 67
Question MCQ▾
What is the output of following C program?
main()
{
int x =alpha(20);
printf("%d", --x);
}
int alpha(int x)
{
return(x++);
}
Choices
Choice (4) | Response | |
---|---|---|
a. | 20 | |
b. | 21 | |
c. | 19 | |
d. | All of the above |
Question 68
Question MCQ▾
What is the output of following program?
#include <stdio.h>
int main()
{
char b,a='a' ;
int i=0;
for(b='A';b<'a';b++) {
i=i+1;
}
if(i>0)
printf("%d ",i);
return(0);
}
Choices
Choice (4) | Response | |
---|---|---|
a. | 32 | |
b. | 0 | |
c. | 33 | |
d. | None of the above |