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

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

MCQ▾

Question

The output of following C program will be:

  1. #include <stdio.h>
  2. int main () {
  3.     int a = 10;
  4.     while(a) {
  5.         while(!a==a-a) {
  6.             printf("value of a: %dn"a);
  7.         }
  8.         return 0;
  9.     }

Choices

Choice (4) Response

a.

10

b.

1

c.

0

d.

None of the above

Question number: 8

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

MCQ▾

Question

What will happen after compiling and running following code?

  1. main () {
  2.     printf("%p"main);
  3. }

Choices

Choice (4) Response

a.

Will make an infinite loop

b.

Some address will be printed

c.

Error

d.

Question does not provide sufficient data or is vague

Question number: 9

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

MCQ▾

Question

What is the output of following code?

  1. #include<stdio.h>
  2. main()
  3. {
  4.     char p[]="good"q[]="good";
  5.     if(p==q){
  6.         printf("strings are equal");
  7.     }
  8. }

Choices

Choice (4) Response

a.

Strings are equal

b.

No output

c.

Strings are unequal

d.

Compilation error

Question number: 10

» Computer Application and Data Processing » Basics of Programming » Different Programming Languages

MCQ▾

Question

Which of the following statement is/are incorrect regarding Python:

Choices

Choice (4) Response

a.

New line never means termination of the statement.

b.

Python require a semicolon (; ) to terminate a statement.

c.

Both a. and b. are correct

d.

Question does not provide sufficient data or is vague

Question number: 11

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

MCQ▾

Question

Two dimensional arrays are also called

Choices

Choice (4) Response

a.

Tables arrays

b.

Matrix arrays

c.

Both a. and b. are correct

d.

Question does not provide sufficient data or is vague

Question number: 12

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

MCQ▾

Question

Which of the following statements are correct about the below program?

  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int i = 1j = 2;
  5.     if(i = 1) || if(j = 1)
  6.     printf("Good Morning");
  7.     return 0;
  8. }

Choices

Choice (4) Response

a.

No output

b.

Error: Expression syntax

c.

Error: Undeclared identifier if

d.

Output: Good Morning

Sign In