Top 150+ C Language Online Test - 2

Question: 6

For accessing a structure element using a pointer, which of the following must be used?

(A) Arrow operator (→)

(B) Separate the codes code from the constant

(C) Delimit a section of

(D) Show what code goes in a particular function

Ans: A

Arrow operator (→)

Question: 7

Variable that ate both alive and active throughout the entire program are called

(A) Automatic variables

(B) Global variables

(C) Private variables

(D) Local variables

Ans: B

Global variables

Question: 8

The main difference in operation between an if statement and a while statement is that the

(A) Conditional expression following the key board is evaluated differently

(B) While loop body is executed

(C) Body of the while statement may be executed many times, the body of the if statement only once

(D) All of these

Ans: C

Body of the while statement may be executed many times, the body of the if statement only once

Question: 9

Declaring variables is advantageous because it

(A) Simplifies the writing of very short programs

(B) Helps the liner work efficiently

(C) Avoids error from misspelled variable names

(D) All of these

Ans: A

Simplifies the writing of very short programs

Question: 10

Integer division in a ‘C’ program results in

(A) Overflow

(B) Rounding

(C) Transaction

(D) None of these

Ans: C

Transaction

Related Questions