CMSC131 Final Exam Prep (100% Accurate Answers)
The following declaration is possible: public class Foo extends A implements B, C { ... } correct answers true Where is a "current object" present? correct answers Constructors and Instance methods If you were taking an introductory programming course in the 1980's, which of these languages is most likely to have been taught? correct answers Pascal Which of the following are considered "secondary memory devices." correct answers USB flash drive and hard drive How many different values can be represented by 4 bits? correct answers 16 (2^4) What term describes the situation where two different variables refer to the same object? correct answers aliasing How is your Java source code translated into machine code? correct answers First a compiler then an interpreter What kinds of variables are stored on the call stack? correct answers Local variables and parameters The following code fragment will compile: int y = 5; if(y 10) { int x = 17; } Sln(x); correct answers False What term describes 2^20 bytes of space? correct answers megabyte What kind of variables are used to represent the "state" of objects? correct answers instance variables What advantages does primary memory have over secondary memory? correct answers Faster Which of the following is the best definition for the term "byte"? correct answers A sequence of 8 bits What is the output of the following code fragment? for(int x = 7; x 11; x= x*2){ x-=3;
Written for
- Institution
- CMSC131
- Course
- CMSC131
Document information
- Uploaded on
- September 21, 2023
- Number of pages
- 7
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
the following declaration is possible public clas
Document also available in package deal