Top 300+ C Programming Multiple Choice Questions & Answers - 2

Question: 6

How many values can be returned from a function?

(A) 1

(B) 2

(C) 3

(D) 4

Ans: A

1

Question: 7

A pointer is

(A) data type of an address variable

(B) a variable for storing address

(C) indication of the variable to be accessed next

(D) address of a variable

Ans: B

a variable for storing address

Question: 8

A relational operator

(A) assigns operand to another

(B) yields a Boolean result

(C) logically combines two operands

(D) compares two operands

Ans: D

compares two operands

Question: 9

In C++, a function contained within a class is called

(A) a method

(B) a class function

(C) member function

(D) none of these

Ans: C

member function

Question: 10

An array element is accessed using

(A) member name

(B) an index number

(C) dot operator

(D) a first in first out approach

Ans: B

an index number

Related Questions