Purdue CNIT 155 MIDTERM Exam ALL 300
QUESTIONS AND CORRECT ANSWERS
LATEST UPDATE THIS YEAR
Purdue CNIT 155 MIDTERM Exam
QUESTION: Which namespace is at the top of the namespace hierarchy in VS.NET?
A. Forms
B. Windows
C. System - ANSWER-C. System
QUESTION: In object oriented programming, a class is a [x] that describes an [y]. - ANSWER-x =
blueprint
y = object
QUESTION: What is encapsulation?
1
, Page 2 of 92
A. Means having the properties and behavior of an object all in one place.
B. Is one of the cornerstones of OOP.
C. It aids in hiding data (property) in an object.
D. all of the above - ANSWER-D. all of the above
QUESTION: T/F: The behaviors of an object are called methods. - ANSWER-True
QUESTION: What is a namespace?
A. It is the name of a space.
B. It is a collection of class definitions.
C. It is the .NET framework class library.
D. It is a class. - ANSWER-B. It is a collection of class definitions.
Q; T/F: C# is more popular that Java in software development market. - ANSWER-False
QUESTION: What does IDE stand for?
2
, Page 3 of 92
A. Integrated Development Elements
B. Initial Design Elements
C. Integrated Development Environment - ANSWER-C. Integrated Development Environment
QUESTION: T/F: Object instantiation is the creation of an object from a class. - ANSWER-True
QUESTION: What is inheritance in OOP?
A. A class can be derived from another class inheriting the properties and methods of the
parent class.
B. Inheritance is one of the main features of OOP.
C. Both A and B - ANSWER-C. Both A and B
QUESTION: In object oriented programming, state of an object is:
A. the behavior of the object.
3
, Page 4 of 92
B. All the properties and methods of the object.
C. All the values assigned to the properties of the object. - ANSWER-C. All the values assigned to
the properties of the object.
QUESTION: To access the property of an object use ________.
A. ; operator
B. = operator
C. dot operator . - ANSWER-C. dot operator .
QUESTION: What will be store in variable m and n by the following?
int m, n;
n = 11;
m = 10;
m *= n + 1;
4