C++ Programming Objective Questions and Answers Pdf - 3

Question: 11

When a=6 and c=a++ what is the value of c?

(A) 6

(B) 7

(C) 8

(D) 9

Ans: A

6

Question: 12

The statement int A; b; is invalid because ____

(A) Variables should be separated by Comma

(B) Capital A is not allowed

(C) Only one variable should be given

(D) All of these

Ans: A

Variables should be separated by Comma

Question: 13

What is a file?

(A) A file is a selection of main storage used to store data.

(B) A file is another name for floppy disk.

(C) A file is a part of a program that is used to describe what the program should do.

(D) A file is a collection of information that has been given a name and is stored in secondary memory.

Ans: D

A file is a collection of information that has been given a name and is stored in secondary memory.

Question: 14

What is the default file extension for all Word documents?

(A) FIL

(B) DOC

(C) WRD

(D) TXT

Ans: B

DOC

Question: 15

The ____ key and the ___ key can be used in combination with other keys to perform shortcuts and special tasks.

(A) Control, Alt

(B) Function, toggle

(C) Delete, Insert

(D) Caps Lock, Num Lock

Ans: A

Control, Alt

Related Questions