- Guías de estudio, Notas de estudios & Resúmenes
¿Buscas las mejores guías de estudio, notas de estudio y resúmenes para ? En esta página encontrarás 94 documentos de estudio para .
94 resultados
Examen
CMSC 132 - 3 Machine Models(A+ Guaranteed)
operands, results correct answers Where do o__ come from? Where do the r__ go? 
 
ALU, memory, processor correct answers 3 Machine Models: A__ M__ P__ 
 
stack, accumulator, general-purpose register correct answers 3 main types of instruction sets s__ a__ g__ 
 
organization of registers, access memory, instructions and operations correct answers Machine models involve: 1.) o__ of r__ 2.) a__ m__ 3.) i__ and o__ 
 
register-memory, register-register correct answers general purpose registers: r__...
Examen
CMSC 132 Exam 2 review(A+ Graded)
When implementing a linked list class, the inner class representing the nodes serves as a __________ around a piece of _________ and a reference to another node. correct answers wrapper, data 
 
What does an empty linked list look like? correct answers head ---> null 
 
Use a for loop to traverse through a linked list. correct answers for(Node<T> curr = head; curr != null; curr = ){ 
 } 
 
What is something important to think about when writing methods for a linked list implementation? ...
Examen
CMSC 132: Threads(100% Correct answers)
Multithreading Problems correct answers We want computer systems to be able to perform many tasks simultaneously 
 
How do we do this? 
Multiprocessing- Multiple processing units allow a system to actually work on several tasks in parallel 
Multitasking- OS managed 
 
Concurrent programming correct answers Both multiprocessing and multitasking involve independent, concurrently executing tasks 
 
Tasks may be executed in parallel on multiprocessor hardware 
 
A process correct answers A process ...
Examen
CMSC132 Final study PT A(Correct answers)
What is an "instance" member? correct answers a member that belongs to an Instance of an object 
 
What is a "static" member? correct answers member that belongs to the class itself and does not require an instance of an object 
 
True/False: 
a. A class can implement numerous interfaces. 
b. Interfaces are useful for inheritance. 
c. Interfaces are useful for polymorphism. 
d. A class implementing an interface must implement... 
 i. The public methods in the interface. 
 ii. Methods in...
Examen
CMSC 132 Exam 1 Review(100% Verified)
Abstraction correct answers Separates the interface from the algorithms 
 
Encapsulation correct answers Hides the algorithms and only provides the interface 
 
Abstract method correct answers All methods in an interface are abstract implicitly, unless "default" keyword 
 
In a non-interface, the class must be declared abstract 
 
"Is a" relationship correct answers Interfaces 
 
Enhanced for loop correct answers for (int index : someArray) 
 Sysout (index); 
 
Will print out each item in so...
Examen
CMSC 132 quiz 5 review(with complete answers)
Three data structures that can implement the List abstract data type (ADT) are _____________, ______________, and _____________. correct answers arrays, linked lists, doubly linked lists 
 
(T/F) Arrays are part of the actual Java language. correct answers TRUE. (They are not part of the library) 
 
The node class serves as a _____________ around a piece of data and a ______________ to another node. correct answers wrapper, reference 
 
When implementing a linked list class, how do you keep trac...
Examen
CMSC 132 MIDTERM 1(Complete solutions)
Provide an example that illustrates procedural abstraction correct answers One example: a function that sorts data, but we don't indicate how to sort it. 
 
the private access specifier correct answers Mention one Java language feature that allow us to implement encapsulation. 
 
Yes, as finalize() is called when an object is garbage collected correct answers You would like to generate a message when an object is garbage collected. Would you be able to generate that message using the finalize()...
Examen
CMSC132 Exam #2(Errorless solutions)
Recursion correct answers A strategy for solving problems where a method calls itself 
Recursion relies on the runtime call stack 
 'every method invocation gets its own stack space 
 
Tail recursion correct answers -Single recursive call thats the last thing performed in the method 
 'can easily be turned into a loop 
 
Non-tail recursion correct answers -The recursive call are not performed last in the method 
 
Recursion vs. Iteration correct answers -Iterative are more efficient 
 'b/c i...
Examen
CMSC 132 Exam review(Accurately solved)
What do you find in a java interface? correct answers method prototypes, final static variables, static methods (note: instance methods are ok if you use the term 'default'). 
 
The classes that implement an interface must implement ___________ correct answers Instance methods from interface (note: default instance method does not need to be implemented, it has already been inherited). 
 
When should you use the key word 'Override'? correct answers When you are implementing a method from an ...
Examen
CMSC132 Final Exam review(All solved)
What is the main reason software projects fail? correct answers Complexity of projects 
 
What is the program life-cycle? correct answers Problem Specification, Program Design, Algorithms and Data Structures, Coding and Debugging, Testing and Verification, Deployment, Documentation and Support, Maintenance and Upgrades 
 
True/False: Compared to program verification, empirical testing... correct answers a) Handles larger programs (True) 
b) Always catches more errors (False) 
c) Ensures code is ...
Examen
CMSC132 - Final Exam Review(Corrrectly solved)
Subclasses correct answers - inherits all properties, behaviors, and fields of its superclass 
- inherits private fields and methods in its superclasses, but it cannot directly access them 
- can have more methods than its superclass 
- classes can only extend one superclass 
- subclass is a type of a superclass object 
- constructor automatically calls its superclass's default constructor (error if it doesn't have one) 
- can explicitly invoke its superclass constructor using super 
- executi...
Examen
CMSC 132 Exam 1(Accurate answers)
What is the only time that data from your program exists? correct answers When the program is actually running 
 
All parameters in Java are passed by _________ correct answers Value 
 
When does a parameter come into existence? correct answers When the method is called 
 
When do types come into existence? correct answers At compilation 
 
Give three examples of predefined types correct answers Int, char, string 
 
Give an example of a user defined type correct answers Class 
 
All primitive ty...
Examen
CMSC132(Complete solutions)
Abstraction provides correct answers high level model of activity 
 
Procedural abstraction correct answers Specifies actions performed 
hides algorithms 
 
Data abstraction correct answers Specifies data objects for the problem 
Hides implementations 
 
Encapsulation correct answers hides implementation details while providing interface (methods) for data access 
allows us to use code without knowing its implementation 
makes debugging and code modification simple 
 
Interface correct answers S...
Examen
CMSC 132 EXAM #1(All solved)
Classes can only extend more than one other class if at least one of those classes is an abstract class. correct answers False - a Class can never extend more than one class. 
 
Downcasting can be done implicitly. correct answers False - it must be done explicitly or your code will not compile. 
 
"Sideways" casting is never allowed correct answers True 
 
'' will refer to the current object, treating it as an instance of the parent of the parent of the current class. correct answers True. F...
Examen
CMSC 132 Exam 1 With 100% Correct And Verified Answers
CMSC 132 Exam 1 With 100% Correct And Verified Answers 
abstraction - Correct Answer-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 Answer-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 Answer-in which various data objects are known to the user, but how they...
Examen
CMSC 132 MIDTERM 1 Exam With 100% Correct And Verified Answers
CMSC 132 MIDTERM 1 Exam With 100% Correct And Verified Answers
Examen
CMSC 132 Exam 1 With 100% Correct And Verified Answers 2024
CMSC 132 Exam 1 With 100% Correct And Verified Answers 2024
Examen
CMSC 132 Final Exam With 100% Correct And Verified Answers
CMSC 132 Final Exam With 100% Correct And Verified Answers
Examen
CMSC 132 With 100% Correct And Verified Answers 2024
CMSC 132 With 100% Correct And Verified Answers 2024
Examen
CMSC 132 Exam 1 Study Guide With 100% Complete Solution
CMSC 132 Exam 1 Study Guide With 100% Complete Solution