CS180 Final Exam| 185 questions| With Complete Solutions
Abstraction correct answer: hiding implementation details from other systems. Information hiding. Von Neumann Architecture correct answer: I/O, CPU, Memory. Encapsulation correct answer: constructs that aid in the bundling of data with methods operating on that data. Restricts access to some of an object's components. Use the most restrictive access modifiers possible. Fields are typically marked private. Expressions correct answer: combines variables, literals, operators, and method invocations to evaluate to a single value. Conversions correct answer: identity, widening, narrowing, boxing, unboxing, unchecked, captures, string, value. Widening correct answer: type promotion. No information loss. NEVER results in a runtime exception. Narrowing correct answer: may lose information: magnitude, precision, range. (cast). Casting correct answer: Runtime operation. Converts a value of one type to another. Autoboxing correct answer: object wrapper classes. One's complement correct answer: flip digits of binary representation.
Written for
- Institution
- CSC - Cyber Secure Coder
- Course
- CSC - Cyber Secure Coder
Document information
- Uploaded on
- May 19, 2023
- Number of pages
- 20
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cs180 final exam| 185 questions| with complete solutions
Also available in package deal