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

Question number: 76

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

MCQ▾

Question

Comment on the following code below:

  1. #include <stdio.h>
  2. void main()
  3. {
  4.     int x = 10y;
  5.     if correct;
  6.     y=x;
  7.         printf("hello");
  8.     }
  9. }

Choices

Choice (4) Response

a.

Nothing will be displayed

b.

It will throw an error

c.

It will display hello

d.

Compiler dependent

Question number: 77

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

MCQ▾

Question

int a [10] = {0, 23, 3, 14} What is the value of a [5]?

Choices

Choice (4) Response

a.

3

b.

14

c.

0

d.

Garbage value

Question number: 78

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

MCQ▾

Question

What is the output of following program?

  1. #include<stdio.h>
  2. void main()
  3. {
  4.     if(1 && 0)
  5.     printf("Go to school");
  6.     else
  7.     printf("Go to zoo");
  8. }

Choices

Choice (4) Response

a.

Go to school

b.

Compilation error

c.

Go to zoo

d.

Question does not provide sufficient data or is vague

Question number: 79

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

MCQ▾

Question

Exceptions that inherit from RuntimeException include which of the following problem?

Choices

Choice (4) Response

a.

An out-of-bounds array access.

b.

Trying to find a Class object for a string that does not denote an existing class.

c.

Trying to open a malformed URL.

d.

Question does not provide sufficient data or is vague

Question number: 80

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

MCQ▾

Question

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

Choices

Choice (4) Response

a.

double________3a

b.

int ________A3

c.

char ________a3

d.

None of the above

Question number: 81

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

MCQ▾

Question

Correct option regarding the following statement is?

! (3 < 5)|| (6 > 7)

Choices

Choice (4) Response

a.

It is always False.

b.

It is always True.

c.

Sometimes True sometimes False.

d.

Can’t say

Sign In