- Study guides, Class notes & Summaries
Looking for the best study guides, study notes and summaries about ? On this page you'll find 94 study documents about .
94 results
Exam (elaborations)
CMSC 132 Midterm 1 Exam Questions With 100% Correct Answers | Verified | Latest Update
CMSC 132 Midterm 1 Exam Questions With 100% Correct Answers | Verified | Latest Update
Exam (elaborations)
CMSC 132 Exam 1 Questions With 100% Correct Answers 2024
CMSC 132 Exam 1 Questions With 100% Correct Answers 2024
Exam (elaborations)
CMSC 132 Exam 1 Study Guide with Complete Solution 2024
CMSC 132 Exam 1 Study Guide with Complete Solution 2024
Exam (elaborations)
CMSC132 Final Exam Review Questions With 100% Correct Answers 2024
CMSC132 Final Exam Review Questions With 100% Correct Answers 2024
Exam (elaborations)
CMSC 132 Exam review Questions with 100% Correct Answers | Verified | Latest Update 2024
CMSC 132 Exam review Questions with 100% Correct Answers | Verified | Latest Update 2024
Exam (elaborations)
CMSC 132 Exam 1 Review Questions With 100% Correct Answers 2024
CMSC 132 Exam 1 Review Questions With 100% Correct Answers 2024
Exam (elaborations)
CMSC 132 EXAM #1 Exam Questions With 100% Correct Answers 2024
CMSC 132 EXAM #1 Exam Questions With 100% Correct Answers 2024
Exam (elaborations)
CMSC 135 Python Final(Correctly solved)
Types of applications correct answers Console application, GUI application, web application 
 
Syntax error correct answers An error from python not being able to understand something, usually a typo 
 
Runtime error correct answers An error that happens while a program is running 
 
Logic error correct answers Nothing is directly "wrong", the code runs, but the result is wrong 
 
Exception correct answers An error or other message raised by the interpreter or compiler to indicate a special ci...
Exam (elaborations)
CMPSC 132 midterm(Complete solutions)
Shell mode correct answers A style of using Python where we type expressions at the command prompt, and the results are shown immediately. Contrast with source code, and see the entry under Python shell. 
 
Program mode correct answers write an entire program by placing lines of Python instructions in a file and then use the interpreter to execute the contents of the file as a whole 
 
interpreters correct answers source code---interpreter---output 
 
compilers correct answers source code--compi...
Exam (elaborations)
CMPSC 132 Exam 1(Errorless answers)
interpreter correct answers reads high level program and executes it; processed by alternating reading lines and executing instructions 
 
compiler correct answers reads all program lines before beginning to execute code (this does not exist in Python to keep debugging fast) 
 
shell correct answers type Python expressions here, and the interpreter will immediately show the results 
 
program mode correct answers write an entire program by placing lines of Python instructions in a file and then ...
Exam (elaborations)
CMSC132 Exam 3(Guaranteed solutions)
What is the motivation for writing multithreaded Java code? correct answers Capture logical structure of problem, better utilize hardware resources 
 
What are possible states for Java threads? correct answers New, Runnable, Running, Blocked, Dead 
 
What is the effect of invoking the start( ) method of the Thread class? correct answers Tells JVM thread is now Runnable 
 
What is the effect of invoking the join( ) method of the Thread class? correct answers Tells JVM to wait until thread is Dead...
Exam (elaborations)
CMSC 132 - Exam 2 Lectures(All solved)
(T/F) Type parameters work with arrays without need for adjustment correct answers FALSE 
 
Correct type parameter implementation for an array correct answers private T[] b = (T[])new Object[]; 
 
Subtype correct answers "Is-A" of all things above 
 
Code to restrict type parameter "T" to something that extends "Foo" correct answers <T extends Foo> 
 
(T/F) Using generics in collections works with polymorphism correct answers FALSE 
 
Definition of "Ordered" correct answers can tel...
Exam (elaborations)
CMSC132 Exam Test(A+ Graded)
Serializing Objects correct answers An object can be represented as a sequence of bytes that includes the objects data as well as information about the objects type and the types of data stored. 
 
Super() correct answers A method call in a sub class constructor invokes the superclass constructor 
 
Overloading correct answers Having multiple methods with same name but different signatures in a class 
 
Overriding correct answers Overrides the functionality of an existing method but not if it is...
Exam (elaborations)
CMSC132 Midterm 1(Correct solutions)
Private keyword correct answers Which term allows us to implement encapsulation in java? 
 
48% of the code has been tested. correct answers A set of Tests generate 48% code coverage. What does this mean? 
 
Methods correct answers When designing object-oriented systems what do verbs in a problem statement represent? 
 
Class must define abstract otherwise it will not compile correct answers If a class extends an abstract class and it does not override one of the abstract methods then: 
 
Overri...
Exam (elaborations)
cmsc 132 runtime stuff(Correctly solved)
What is the average runtime for adding an element to the end of a singly linked list with a tail reference? correct answers O(1) 
 
What is the worst-case runtime for removing an element from a singly linked list if you are given a cursor to the node containing that element? correct answers O(n) 
 
What is the best-case runtime for adding an element to the end of a singly linked list with NO tail reference? correct answers O(n) 
 
What is the average runtime for searching a doubly linked list? c...
Exam (elaborations)
CMSC 132 quiz 2 review(100% Guaranteed answers)
What does it mean for a class/object to be immutable? correct answers The state (instance variables) are set during construction but cannot be modified after that. 
 
What does it mean for a class/object to be mutable? correct answers The state is set during construction and it might be modified later. 
 
What are privacy leaks? correct answers Suppose a mutable member has been intentionally encapsulated (made private), modification of its 'state' within the class is expected ("mutation"). 
...
Exam (elaborations)
CMSC 132 exam 1(Correct answers)
abstraction correct answers a technique in which we provide a very high-level model of activity or data. Small details about the model's functionality are not specifies to the user. 
 
procedural abstraction correct answers in which the user is aware of what actions are being performed but they are not told how the action is performed. 
 
data abstraction correct answers in which various data objects are known to the user, but how they are represented or implemented is not known to the user. 
 ...
Exam (elaborations)
CMSC 132 quiz 3 review(All solved)
Lets say there is a class called Student that extends a class called Person and we write: 
 
Student s = .....; 
Person p = (Person)s; 
 
Is this up casting or down casting? will it work? correct answers This is upcasting and it will work without any issues. 
 
Lets say there is a class called Student that extends a class called Person and we write: 
 
Person p = ......; 
Student s = (Student)p; 
 
Is this up casting or down casting? will it work? correct answers This is down casting. It compile...
Exam (elaborations)
CMSC 132 Exams(with answered solutions)
object-oriented programming correct answers takes advantage of abstraction and encapsulation 
 
abstraction correct answers provides high level model of activity of data, what it does 
 
procedural abstraction correct answers specifies what actions should be performed, hide algorithms 
 
example: sort numbers in an array 
 
data abstraction correct answers specifies data objects for a problem, hide representation 
 
example: list of names 
 
abstract data type correct answers implementation ind...
Exam (elaborations)
CMSC 132 Exam 1 Review(Accurate solutions)
What is a class in Java? correct answers A class in Java is a blueprint for creating objects. It defines a data structure that includes variables and methods. Classes provide a means for bundling data and methods that operate on the data into one unit. 
 
How is an object created in Java? correct answers An object in Java is created using the new keyword followed by a call to a constructor of the class. This process allocates memory for the new object and initializes it. 
 
Where are Java object...