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

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

MCQ▾

Question

What is the output of this C code?

  1. #include <stdio.h>
  2. void main()
  3. {
  4.     int i = 0;
  5.     for (i < 10i++)
  6.     printf("Apple");
  7. }

Choices

Choice (4) Response
a.

Nothing

b.

Garbage value

c.

Compile time error

d.

Apple is printed 10 times.

Question number: 99

» 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.     printf("Hello World! %i n"y);
  5.     return 0;
  6. }

Choices

Choice (4) Response
a.

Hello World!

b.

Hello World! y;

c.

Hello World! followed by a junk value.

d. None of the above

Question number: 100

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

MCQ▾

Question

What will be output if you will execute following c code, if size of int is 4 byte?

  1. #include<stdio.h>
  2. int main(){
  3.     char A[25]="Hello World";
  4.     printf("%d",sizeof(A));
  5.     return 0;
  6. }

Choices

Choice (4) Response
a.

40

b.

25

c.

100

d.

10

Question number: 101

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

MCQ▾

Question

Which of the following is correct regarding any function in C program.

Choices

Choice (4) Response
a.

C program may not contain even a single function.

b.

C program always contain 1 or more functions.

c. All of the above
d. Question does not provide sufficient data or is vague

Question number: 102

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

MCQ▾

Question

Which of the following is a correct notation of an array declaration?

Choices

Choice (4) Response
a.

int A [4] = {3, 4, 0, 1}

b.

int A (4) = [3, 4, 0, 1]

c.

int A {4} = {3, 4, 0, 1}

d.

int A {} = [3, 4, 0, 1]

Question number: 103

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

MCQ▾

Question

Which of the following is not a valid C variable name?

Choices

Choice (4) Response
a.

int % main

b.

float x4

c.

int mein;

d.

double 5i_

Sign In