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
- It is taken care of by the compiler
- It is setting the compiler option conditionally
- It is compiling a program based on a condition
- none of above
2. Originally ‘C’ was developed as:
- System programming language
- General purpose language
- Data processing language
- None of above
3. Minimum number of temporary variagble needed to swap the contents of 2 variable is:
- 1
- 2
- 3
- 0
4. A direct access file is:
- A file in which recoreds are arranged in a way they are inserted in a file
- A file in which records are arranged in a particular order
- Files which are stored on a direct access storage medium
- None of the above
5. Which of the following is not an advantage of secondary memory
- It is cost-effective
- It has large storage capacity
- It has highest speed
- It is easily portable
6. An inverted file
- Locates information about data in small files that are maintained apart from actual data record
- A file which stores opposite records
- A file which stores information about records of a system
- None of above
7. Which of the following is not a file operation:
- Repositioning
- Truncating
- Appending
- None of above
8. Which of the following is not a component of file system
- Access method
- Auxiliary storage management
- Free integrity mechanism
- None of the above
9. Seek time is
- time taken to retrieve a dta
- Time taken by read/write head mechanism to position itself over appropriate cylinder
- Time taken by appropriate sector to come under read/write
- None of the above
10. Latency time is:
- Time taken by read/write head mechanism to position itself over appropriate cylinder
- Time taken to transfer a dta from memory
- Time taken by appropriate sector to come under read/write head
- None of above
11. ‘Prime area’ in context of file system is defined as
- It is memory area created by operating system
- It is an area into which data records are written
- It is the main area of a web page
- None of the above
12. The two types of file structure existing in VSAM file are
- Key sequenced structure, entry sequenced structure
- Key sequence structure, exit sequenced structure
- Entry sequence structure, exit sequenced structure
- None of above
13. In mulit-list organization
- Records that have equivalent value for a given secondary index item are linked together to form a list.
- Records are loaded in ordered sequence defined by collating sequence by content of the key
- Records are directly accessed by record key field
- None of the above
14. Which of the following is/are advantages of cellular partitioned structure:
- Simultaneous read operations can be overlapped
- Search time is reduced
- Both a & b
- None of the above
15. *ptr++ is equivalenet to:
- ptr++
- *ptr
- ++*ptr
- None of the above
16. Statement scanf(“%d”,80);
- Assign an integer to variable i
- Give an error message
- Print the value of i
- Assign an float to variable i
17. Value of ix+j, if i,j are integer type and ix long type would be
- integer
- float
- long integer
- double percision
18. In a C language ‘3’ represents
- A digit
- An integer
- A character
- A word
19. In C language, a hexadecimal number is represented by writing
- x
- xo
- ox
- h
20. Expression C=i++ causes
- Value of i assigned to C and then i incremented by 1
- i to be incremented by 1 and then value of i assigned to C
- Value of i assigned to C
- 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:

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