Computer Application and Data Processing (ISS Statistics Paper I (New 2016 MCQ Pattern)): Questions 126 - 132 of 214

Get 1 year subscription: Access detailed explanations (illustrated with images and videos) to 469 questions. Access all new questions we will add tracking exam-pattern and syllabus changes. View Sample Explanation or View Features.

Rs. 300.00 or

Question number: 126

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

MCQ▾

Question

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 (nLogn)

b.

O (n2)

c.

Θ (nLogn)

d.

o (n2)

Question number: 127

» Computer Application and Data Processing » Basics of Programming » Conditional Statements

MCQ▾

Question

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

Question number: 128

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

MCQ▾

Question

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 6

c.

0 1 2 3 4 5

d.

None of the above

Question number: 129

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

MCQ▾

Question

Which of the following cannot be a variable name in C?

Choices

Choice (4) Response

a.

Extern

b.

Intern

c.

Right

d.

left

Question number: 130

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

MCQ▾

Question

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.

19

c.

21

d.

None of the above

Question number: 131

» Computer Application and Data Processing » Basics of Programming » Conditional Statements

MCQ▾

Question

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.

33

c.

0

d.

Question does not provide sufficient data or is vague

Question number: 132

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

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.

20

b.

0

c.

Compilation error

d.

21

f Page