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)

Edit

Question 64

Question MCQ▾

The output of following code is:

  1. #include <stdio.h>
  2. void main()
  3. {
  4. 5>6 ? return 5 :return 6;
  5. }

Choices

Choice (4)Response

a.

Return 5

b.

Return 6

c.

Garbage Value

d.

Compilation error

Edit

Question 65

Question MCQ▾

What is the output of the following statements?

  1. for(i=0; i++; i<6)
  2. 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

Edit

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

Edit

Question 67

Question MCQ▾

What is the output of following C program?

  1. main()
  2. {
  3. int x =alpha(20);
  4. printf("%d", --x);
  5. }
  6. int alpha(int x)
  7. {
  8. return(x++);
  9. }

Choices

Choice (4)Response

a.

20

b.

21

c.

19

d.

All of the above

Edit

Question 68

Question MCQ▾

What is the output of following program?

  1. #include <stdio.h>
  2. int main()
  3. {
  4. char b,a='a' ;
  5. int i=0;
  6. for(b='A';b<'a';b++) {
  7. i=i+1;
  8. }
  9. if(i>0)
  10. printf("%d ",i);
  11. return(0);
  12. }

Choices

Choice (4)Response

a.

32

b.

0

c.

33

d.

None of the above

Edit