Sh3rrymagdah
On this page, you find all documents, package deals, and flashcards offered by seller sh3rrymagdah.
- 652
- 0
- 34
Community
- Followers
- Following
685 items
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...
- Exam (elaborations)
- • 9 pages •
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...
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...
- Exam (elaborations)
- • 7 pages •
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...
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...
- Exam (elaborations)
- • 7 pages •
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...
CMSC131(100% Guaranteed)
CMSC131 Exam 2 Review(Complete solutions)
CMSC 131 UMD Midterm 2(A+ Graded)
CMSC131 Hardware/Software/Java Terminology(Complete solutions)
- Package deal
- • 23 items •
- CMSC 131 Exemption Exam(With complete solutions) • Exam (elaborations)
- CMSC 131 Quiz #1(Answered correctly) • Exam (elaborations)
- CMSC131 Review UMD(With complete solutions) • Exam (elaborations)
- CMSC 131 Exam 1(Accurately solved) • Exam (elaborations)
- CMSC 131 Midterm #1(A+ Guaranteed Answers) • Exam (elaborations)
- And more ….
CMSC131 Exam 2 Review(Complete solutions)
CMSC 131 UMD Midterm 2(A+ Graded)
CMSC131 Hardware/Software/Java Terminology(Complete solutions)
CMPSC 131 Quiz 1(Accurate answers)
false correct answers Python comes pre-installed on Windows machines. 
 
false correct answers A computer is a single device that performs different types of tasks for its users. 
 
false correct answers Python 3.0 is backwards compatible. 
 
true correct answers RAM is a volatile memory used for temporary storage while a program is running. 
 
true correct answers Python is an open-source language. 
 
true correct answers The CPU understands instructions written in a binary machine language. 
 ...
- Package deal
- Exam (elaborations)
- • 3 pages •
false correct answers Python comes pre-installed on Windows machines. 
 
false correct answers A computer is a single device that performs different types of tasks for its users. 
 
false correct answers Python 3.0 is backwards compatible. 
 
true correct answers RAM is a volatile memory used for temporary storage while a program is running. 
 
true correct answers Python is an open-source language. 
 
true correct answers The CPU understands instructions written in a binary machine language. 
 ...
CMSC 132 Exam review(Solved answers)
Analyzing runtime 
 
Insert element into position 0 of an array of size n (in java) correct answers Runs in linear time, (if the array is size n and you double it, time will be doubles as well, this is a good way to think about linear time). 
 
Analyzing runtime 
 
Retrieving an element from an array of size n (at a particular index, in java). correct answers When the CPU has to do the arithmetic to get the element from the specified index, it's a constant time operation. The arithmetic barle...
- Package deal
- Exam (elaborations)
- • 29 pages •
Analyzing runtime 
 
Insert element into position 0 of an array of size n (in java) correct answers Runs in linear time, (if the array is size n and you double it, time will be doubles as well, this is a good way to think about linear time). 
 
Analyzing runtime 
 
Retrieving an element from an array of size n (at a particular index, in java). correct answers When the CPU has to do the arithmetic to get the element from the specified index, it's a constant time operation. The arithmetic barle...
CMPSC 131 Midterm(with correct solutions)
Solid State Drive correct answers What has no moving parts and operates faster than a traditional disk drive? 
 
True correct answers True or False: The main reason to use secondary storage is to hold data for long periods of time, even when the power supply to the computer is turned off. 
 
False correct answers True or False: Python 3.0 is backwards compatible. 
 
ENIAC correct answers What is considered to be the world's first programmable electronic computer? 
 
bit correct answers The smal...
- Package deal
- Exam (elaborations)
- • 7 pages •
Solid State Drive correct answers What has no moving parts and operates faster than a traditional disk drive? 
 
True correct answers True or False: The main reason to use secondary storage is to hold data for long periods of time, even when the power supply to the computer is turned off. 
 
False correct answers True or False: Python 3.0 is backwards compatible. 
 
ENIAC correct answers What is considered to be the world's first programmable electronic computer? 
 
bit correct answers The smal...
Summer CMSC 131 Exam 2(Correct answers)
What is the difference between formal verification and testing? correct answers - prove test is correct, bad: time consuming and hard 
- write test code to check production code, anyone can do it, bad: never quite sure its correct, cant test everything 
 
Unit Testing vs Integrated Testing correct answers - frontline, unit like a method, test each little unit 
- if units work together, possibly whole project 
 
JUnit correct answers - part of Java 
- framework that lets you write tests for code ...
- Package deal
- Exam (elaborations)
- • 8 pages •
What is the difference between formal verification and testing? correct answers - prove test is correct, bad: time consuming and hard 
- write test code to check production code, anyone can do it, bad: never quite sure its correct, cant test everything 
 
Unit Testing vs Integrated Testing correct answers - frontline, unit like a method, test each little unit 
- if units work together, possibly whole project 
 
JUnit correct answers - part of Java 
- framework that lets you write tests for code ...
CMSC131 Quiz 6(Accurately answered)
Why data encapsulation is important correct answers Reason #2 (#1 is on CMSC Quiz 5) 
- wider latitude for modifying the "guts" without having to re-code external modules 
 
Key Idea: encapsulate things that might change within a public interface so it won't change 
 
* if you don't change API, the rest of the code won't need to change * 
 
analogy: if someone changes the spark plugs in the car, the driver won't care bc the car will drive the same 
 
How to change API correct answers don'...
- Package deal
- Exam (elaborations)
- • 12 pages •
Why data encapsulation is important correct answers Reason #2 (#1 is on CMSC Quiz 5) 
- wider latitude for modifying the "guts" without having to re-code external modules 
 
Key Idea: encapsulate things that might change within a public interface so it won't change 
 
* if you don't change API, the rest of the code won't need to change * 
 
analogy: if someone changes the spark plugs in the car, the driver won't care bc the car will drive the same 
 
How to change API correct answers don'...
CMSC 131 quiz 2(Accurately solved)
What are the three logical operators? correct answers &&, ||, ! 
 
Write "truth-tables" for && and ||. correct answers A B A && B A || B -------------------------------------------------- T T T T T F F T F T F T F F F F 
 
Is the following boolean expression true or false?((3 < 5) && !(1 > 14) && (-5 < -15)) || ((6 == 6) && !(2 == 2)) correct answers False 
 
If s1 and s2 are variables representing Strings, what Java boolean expression is equivalent to "s1 is not the same as s2"? co...
- Package deal
- Exam (elaborations)
- • 4 pages •
What are the three logical operators? correct answers &&, ||, ! 
 
Write "truth-tables" for && and ||. correct answers A B A && B A || B -------------------------------------------------- T T T T T F F T F T F T F F F F 
 
Is the following boolean expression true or false?((3 < 5) && !(1 > 14) && (-5 < -15)) || ((6 == 6) && !(2 == 2)) correct answers False 
 
If s1 and s2 are variables representing Strings, what Java boolean expression is equivalent to "s1 is not the same as s2"? co...