Computer Application and Data Processing (ISS Statistics Paper I (New 2016 MCQ Pattern)): Questions 116 - 120 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: 116

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

MCQ▾

Question

Let P be a square matrix of size n x n. Consider the following program. What is the expected

  1. C = 100
  2. for i = 1 to n do
  3. for j = 1 to n do
  4. {
  5.     Temp = P[i][j] + C
  6.     P[i][j] = P[j][i]
  7.     P[j][i] = Temp - C
  8. }
  9. for i = 1 to n do
  10. for j = 1 to n do
  11. Output(P[i][j]);

output?

Choices

Choice (4) Response

a.

Transpose of matrix P

b.

The matrix P itself

c.

Adding 100 to the upper diagonal elements and subtracting 100 from diagonal elements of P

d.

Question does not provide sufficient data or is vague

Question number: 117

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

MCQ▾

Question

Which for loop has range of similar indexes of ‘i’ used in for (i = 1; i < n; i++)?

Choices

Choice (4) Response

a.

for (i = n-2; i > -1; i–)

b.

for (i = n-1; i > 0; i–)

c.

for (i = n; i > 0; i–)

d.

for (i = n; i > = 0; i–)

Question number: 118

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

MCQ▾

Question

Which of the following correctly accesses the sixth element stored in A, an array with 50 elements?

Choices

Choice (4) Response

a.

A [6]

b.

A [5]

c.

A {6}

d.

A {5}

Question number: 119

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

MCQ▾

Question

Which of the statement is/are correct regarding ‘short integer’ and ‘long integer’?

Choices

Choice (4) Response

a.

A ‘short integer’ is at least 16 bits.

b.

A ‘long integer’ is at least 4 bytes wide.

c.

Both a. and b. are correct

d.

Question does not provide sufficient data or is vague

Question number: 120

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

MCQ▾

Question

What will be the output of following program?

  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int i=10;
  5.     whilei==5
  6.     {
  7.         i=i-1;
  8.         printf“%d”, i;
  9.         i=--;
  10.     }
  11. }

Choices

Choice (4) Response

a.

Print nothing

b.

1, 2, 3, 4, 5, 6, 7, 8, 9, 10

c.

10

d.

Question does not provide sufficient data or is vague

f Page
Sign In