C++ Multiple Choice Questions Set 2

C++ Multiple Choice Questions Set 1 was posted on Monday, June 7th, 2010 and is filed under Multiple Choice Questions. You can click here to go to Questions of Set 1 and the Answers of Set 1.

Today, here are the twenty questions for second set – C++ Multiple Choice Questions Set 2. Click here for the answers of this set.

1. The conditional compilation

  1. It is taken care of by the compiler
  2. It is setting the compiler option conditionally
  3. It is compiling a program based on a condition
  4. none of above

2. Originally ‘C’ was developed as:

  1. System programming language
  2. General purpose language
  3. Data processing language
  4. None of above

3. Minimum number of temporary variagble needed to swap the contents of 2 variable is:

  1. 1
  2. 2
  3. 3
  4. 0

4. A direct access file is:

  1. A file in which recoreds are arranged in a way they are inserted in a file
  2. A file in which records are arranged in a particular order
  3. Files which are stored on a direct access storage medium
  4. None of the above

5. Which of the following is not an advantage of secondary memory

  1. It is cost-effective
  2. It has large storage capacity
  3. It has highest speed
  4. It is easily portable

6. An inverted file

  1. Locates information about data in small files that are maintained apart from actual data record
  2. A file which stores opposite records
  3. A file which stores information about records of a system
  4. None of above

7. Which of the following is not a file operation:

  1. Repositioning
  2. Truncating
  3. Appending
  4. None of above

8. Which of the following is not a component of file system

  1. Access method
  2. Auxiliary storage management
  3. Free integrity mechanism
  4. None of the above

9. Seek time is

  1. time taken to retrieve a dta
  2. Time taken by read/write head mechanism to position itself over appropriate cylinder
  3. Time taken by appropriate sector to come under read/write
  4. None of the above

10. Latency time is:

  1. Time taken by read/write head mechanism to position itself over appropriate cylinder
  2. Time taken to transfer a dta from memory
  3. Time taken by appropriate sector to come under read/write head
  4. None of above

11. ‘Prime area’ in context of file system is defined as

  1. It is memory area created by operating system
  2. It is an area into which data records are written
  3. It is the main area of a web page
  4. None of the above

12. The two types of file structure existing in VSAM file are

  1. Key sequenced structure, entry sequenced structure
  2. Key sequence structure, exit sequenced structure
  3. Entry sequence structure, exit sequenced structure
  4. None of above

13. In mulit-list organization

  1. Records that have equivalent value for a given secondary index item are linked together to form a list.
  2. Records are loaded in ordered sequence defined by collating sequence by content of the key
  3. Records are directly accessed by record key field
  4. None of the above

14. Which of the following is/are advantages of cellular partitioned structure:

  1. Simultaneous read operations can be overlapped
  2. Search time is reduced
  3. Both a & b
  4. None of the above

15. *ptr++ is equivalenet to:

  1. ptr++
  2. *ptr
  3. ++*ptr
  4. None of the above

16. Statement scanf(“%d”,80);

  1. Assign an integer to variable i
  2. Give an error message
  3. Print the value of i
  4. Assign an float to variable i

17. Value of ix+j, if i,j are integer type and ix long type would be

  1. integer
  2. float
  3. long integer
  4. double percision

18. In a C language ‘3’ represents

  1. A digit
  2. An integer
  3. A character
  4. A word

19. In C language, a hexadecimal number is represented by writing

  1. x
  2. xo
  3. ox
  4. h

20. Expression C=i++ causes

  1. Value of i assigned to C and then i incremented by 1
  2. i to be incremented by 1 and then value of i assigned to C
  3. Value of i assigned to C
  4. i to be incremented by 1

These were the questions of Set-2. You can find the correct answers to these questions here.

Related posts:

  1. Answers to C++ Multiple Choice Questions Set 1
  2. Multiple Choice Questions Set 1

One Response to “C++ Multiple Choice Questions Set 2”

  1. [...] C++ Studies « C++ Multiple Choice Questions Set 2 [...]

Leave a Reply

CommentLuv Enabled