# Computer Application and Data Processing (ISS Statistics Paper I (New 2016 MCQ Pattern)): Questions 156 - 161 of 199

Get 1 year subscription: Access detailed explanations (illustrated with images and videos) to 404 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: 156

» Computer Application and Data Processing » Basics of Programming » Array and Usages

MCQ▾

### Question

Which of the following function can be used for copying one array into another?

### Choices

Choice (4) Response

a.

strchr (s1, ch);

b.

strcmp (s1, s2);

c.

strcat (s1, s2);

d.

None of the above

## Question number: 157

» Computer Application and Data Processing » Basics of Programming » Array and Usages

MCQ▾

### Question

Comment on the 2 arrays regarding X and Y:

1. `int *A1[5];`
2. `int *(A2[5]);`

X: Pointer to an array

Y: Array of pointers

### Choices

Choice (4) Response

a.

A1 is X, A2 is Y

b.

A1 is Y, A2 is Y

c.

A1 is Y, A2 is X

d.

A1 is X, A2 is X

## Question number: 158

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

MCQ▾

### Question

What is the output of this C code?

1. `#include <stdio.h>`
2. `int main()`
3. `{`
4. `    int i=0;`
5. `    do`
6. `    printf("Go home ");`
7. `    while (i);`
8. `    printf("Come backn");`
9. `}`

### Choices

Choice (4) Response

a.

Go home Come back

b.

Go home

c.

Come back

d.

Infinite loop

## Question number: 159

» Computer Application and Data Processing » Basics of Programming » Array and Usages

MCQ▾

### Question

What will be output if you will execute following c code?

1. `#include<stdio.h>`
2. `void main(){`
3. `    int a[2][3]={0,1,2,3,4,5,6,7,8,9,10,11};`
4. `    printf("%o",data[0][2]);`
5. `}`

### Choices

Choice (4) Response

a.

Compilation error

b.

4

c.

5

d.

3

## Question number: 160

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

MCQ▾

### Question

Which of the following statement is/are correct regarding Modular Programming?

### Choices

Choice (4) Response

a.

Modular Programming encourages the use of control variables and flags in parameters.

b.

Modular programming is just a concept.

c.

Modular Programming tends to discourage splitting of functionality.

d.

Question does not provide sufficient data or is vague

## Question number: 161

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

MCQ▾

### Question

What will be the output of the program?

1. `#include<stdio.h>`
2. `int main()`
3. `{`
4. `    int i;`
5. `    for(i=0; i<=4; i++);`
6. `    printf("%d", i);`
7. `    return 0;`
8. `}`

### Choices

Choice (4) Response

a.

1, 2, 3

b.

5

c.

0, 1, 2, 3, 4

d.

4