ISS (Statistical Services) Statistics Paper I (New 2016 MCQ Pattern): Questions 112 - 116 of 471

Access detailed explanations (illustrated with images and videos) to 471 questions. Access all new questions we will add tracking exam-pattern and syllabus changes. Subscription can be renewed yearly absolutely FREE! View Sample Explanation or View Features.

Rs. 300.00 or

How to register?

Question number: 112

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

Edit
MCQ▾

Question

Which of the following statement is/are incorrect regarding Static class member variables?

Choices

Choice (4) Response

a.

All the objects share the single copy of a static variable.

b.

On the creation of the first object of the class a static variable is always initialized by zero.

c.

The scope is only within the class but its lifetime is throughout the program.

d.

None of the above

Question number: 113

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

Edit
MCQ▾

Question

What is the output of following program?

  1. #include<stdio.h>
  2. void main()
  3. {
  4.     int x=25,y=15,z;
  5.     z = x2 + y!=15;
  6.     printf("%d",z);
  7. }

Choices

Choice (4) Response

a.

0

b.

5

c.

1

d.

15

Question number: 114

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

Edit
MCQ▾

Question

What will happen if the below program is executed?

  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int main = 45;
  5.     printf("%d"main);
  6. }

Choices

Choice (4) Response

a.

It will experience infinite looping.

b.

It will cause a compile-time error.

c.

It will cause a run-time error.

d.

It will run without any error and prints 45.

Question number: 115

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

Edit
MCQ▾

Question

What is the output of this C code?

  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int x = 1y = 1;
  5.     while (x < 2)
  6.     {
  7.         p1x++;
  8.         while (y < 3)
  9.         {
  10.             printf("loopn");
  11.             goto p1;
  12.         }
  13.     }
  14. }

Choices

Choice (4) Response

a.

Compilation error

b.

loop loop loop

c.

loop loop

d.

Infinite loop

Question number: 116

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

Edit
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.

All of the above