UNIT-I (As per JNTUH R18 Syllabus CSE & IT II-Year Semester I)
I. Fill in the Blanks
1. ________ is a process of showing relevant details and hiding irrelevant details from the user.
2. Object oriented programming allows code ________
3. Comments in C++ are represented by ________
4. By default, all member functions defined inside the class are treated as ________
5 A ________ is used to indicate the type of data value stored in a variable.
6. A variable that stores address of another variable is called a ________
7. ________ function is used to compare two strings.
8. ________ is a multiway decision making statement.
9. ________ refers to the process of converting the data of one type into another type.
10. An ________ is a variable which is capable of holding fixed values of same type in contiguous memory locations.
II. Multiple Choice
1. A simple C++ program executes ________
(a) Without preprocessor directives
(b) Object code
(c) With pre-processor: directives.
(d) Standard library functions.
2. Which one of the below things is not considered as a key component of object oriented programming?
(a) Inheritance
(b) Encapsulation
(c) polymorphism
(d) Parallelism
3. In C++ the function main has default return type .
(a) Float
(b) Integer
(c) Character
(d) None of the above
4. Default arguments are defined when functions are ________
(a) Defined
(b) Declared
(c) Both (a) and (b)
(d) None of the above
5. The scope resolution operator (:;) is used to access ________
(a) Objects
(b) Local variables
(c) Global variables
(d) Both (a) and (b)
6. Identify which of the following function calls are allowed
1. Sum (2)
2. Sum (2, 3)
3. Sum()
4. Sum (3, 4, 5)
(a) 1, 4
(b) 1, 2 and 4
(c) 2 and 4
(d) 2 and 1
7. Inline function ________
(a) Executes slowly
(b) Wastes memory
(c) Saves memory
(d) Saves more time
8. ________ operator is used for deallocation.
(a) new
(b) delete
(c) deallocate
(d) allocate
9. The memory allocated dynamically can be accessed only using ________
(a) Pointers
(b) Structures
(c) Unions
(d) Arrarys
10. Which function is used to concatenate two strings?
(a) strcmp
(b) strlen
(c) strcat
(d) strcmpi
III. Match the Fallowing
1. Two dimensional array | [ ] | (a) Unconditional jump |
2. Global Scope | [ ] | (b) Using two subscripts |
3. Break | [ ] | (c) Within any function |
4. Micro definition | [ ] | (d) Outside any function |
5. Local Scope | [ ] | (e) #undef |