Computer Application and Data Processing-Basics of Programming (ISS Statistics Paper I (New 2016 MCQ Pattern)): Questions 42 - 47 of 108

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: 42

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

MCQ▾

Question

Fill the blanks in the following statement by using suitable option: ________is used to take control to the beginning of the loop while ________ is used for terminating all loops.

Choices

Choice (4) Response

a.

Continue, exit

b.

Continue, break

c.

Break, continue

d.

Question does not provide sufficient data or is vague

Question number: 43

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

MCQ▾

Question

What is the output of this C code?

  1. void main()
  2. {
  3.     int x=1;
  4.     if (x < 2)
  5.     main();
  6. }

Choices

Choice (4) Response

a.

Run time error

b.

Compilation error

c.

Infinite calls to main

d.

Main is called twice

Question number: 44

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

MCQ▾

Question

Which of the following is not a pointer declaration?

Choices

Choice (4) Response

a.

double B [] = {‘25’, ‘36’, ‘11’};

b.

double A [20];

c.

char * ptr;

d.

double ptr;

Question number: 45

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

MCQ▾

Question

Point out the error, if any in the program.

  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int x = 1;
  5.     switch(x)
  6.     {
  7.     }
  8.     printf("Hello");
  9.     return 0;
  10. }

Choices

Choice (4) Response

a.

Error: No case statement specified

b.

No Error

c.

Error: No default specified

d.

Error: infinite loop occurs

Question number: 46

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

MCQ▾

Question

What is the output of this C code?

  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int x = 2;
  5.     int yx +(x== 10);
  6.     printf("%dn"y);
  7. }

Choices

Choice (4) Response

a.

2

b.

4

c.

20

d.

Question does not provide sufficient data or is vague

Question number: 47

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

MCQ▾

Question

Which of the following statement is correct regarding the following program?

  1. int main( )
  2. {
  3.     const double PI;
  4.     int n;
  5.     PI = 3.14159265358979;
  6.     n = 22;
  7. }

Choices

Choice (4) Response

a.

Initialization of int n is incorrect.

b.

Const declared PI must be initialized at the time of declaration.

c.

All of the above

d.

Question does not provide sufficient data or is vague

Sign In