CNIT 155 MIDTERM Exam Purdue University 2026-
2027 COMPLETE 300 QUESTIONS AND VERIFIED
SOLUTIONS LATEST UPDATE THIS YEAR
Purdue CNIT 155 MIDTERM Exam
QUESTION: In object oriented programming, state of an object is:
A. the behavior of the object.
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 .
,Page 2 of 97
QUESTION: What will be store in variable m and n by the following?
int m, n;
n = 11;
m = 10;
m *= n + 1;
A. 111, 11
B. 120, 11
C. 12, 12
D. 110, 11 - ANSWER-B. 120, 11
QUESTION: What will be stored in a and b by the following statements?
int a, b;
,Page 3 of 97
a = 12;
b = 15;
b = --a;
A. 11, 12
B. 11, 15
C. 12, 11
D. 11, 11 - ANSWER-D. 11, 11
Q; T/F: C# is more popular that Java in software development market. - ANSWER-False
QUESTION: What does IDE stand for?
A. Integrated Development Elements
B. Initial Design Elements
C. Integrated Development Environment - ANSWER-C. Integrated Development Environment
, Page 4 of 97
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: Which namespace is at the top of the namespace hierarchy in VS.NET?
A. Forms
B. Windows
C. System - ANSWER-C. System