Package deal
CMSC131(100% Guaranteed)
CMSC131 Exam 2 Review(Complete solutions) CMSC 131 UMD Midterm 2(A+ Graded) CMSC131 Hardware/Software/Java Terminology(Complete solutions)
[Show more]CMSC131 Exam 2 Review(Complete solutions) CMSC 131 UMD Midterm 2(A+ Graded) CMSC131 Hardware/Software/Java Terminology(Complete solutions)
[Show more]What does CPU stand for? correct answers Central Processing Unit 
 
What is an I/O device correct answers Input/Output - Mouse, Keyboard 
 
What does IDE stand for? correct answers Integrated Development Environment 
 
What does the acronym CVS stand for? correct answers Concurrent Versioning System...
Preview 1 out of 3 pages
Add to cartWhat does CPU stand for? correct answers Central Processing Unit 
 
What is an I/O device correct answers Input/Output - Mouse, Keyboard 
 
What does IDE stand for? correct answers Integrated Development Environment 
 
What does the acronym CVS stand for? correct answers Concurrent Versioning System...
CPU correct answers Central Processing Unit 
 
CPU function correct answers brain of the computer 
 
RAM correct answers Random Access Memory 
 
Secondary Memory Device examples correct answers hard drives, solid state drives, flash drives, CDs/DVDs 
 
Advantage of using RAM correct answers faster s...
Preview 2 out of 7 pages
Add to cartCPU correct answers Central Processing Unit 
 
CPU function correct answers brain of the computer 
 
RAM correct answers Random Access Memory 
 
Secondary Memory Device examples correct answers hard drives, solid state drives, flash drives, CDs/DVDs 
 
Advantage of using RAM correct answers faster s...
Why are there 8 different numeric types in java? correct answers Because java is a restrictive language: it requires that the bit count is noted and known. Different types have different bit counts, so it shows the size. 
 
How would you write an int and float constants? correct answers int i= numbe...
Preview 2 out of 15 pages
Add to cartWhy are there 8 different numeric types in java? correct answers Because java is a restrictive language: it requires that the bit count is noted and known. Different types have different bit counts, so it shows the size. 
 
How would you write an int and float constants? correct answers int i= numbe...
To base 10 correct answers Take each digit and multiply by its respective power 
 
From base 10 correct answers Long division 
 
Hex to binary correct answers convert each individual digit 
 
Binary to hex correct answers convert individual groups of 4 
 
# of combinations you can represent with n b...
Preview 2 out of 10 pages
Add to cartTo base 10 correct answers Take each digit and multiply by its respective power 
 
From base 10 correct answers Long division 
 
Hex to binary correct answers convert each individual digit 
 
Binary to hex correct answers convert individual groups of 4 
 
# of combinations you can represent with n b...
Whats does CVS stand for? correct answers Concurrent Versioning System 
 
What does IDE stand for? correct answers Integrated Development Enviroment 
 
What IDE do we use for this class correct answers Eclipse 
 
What Does CPU stand for? correct answers Central Processing Unit 
 
What is a bit? corr...
Preview 2 out of 5 pages
Add to cartWhats does CVS stand for? correct answers Concurrent Versioning System 
 
What does IDE stand for? correct answers Integrated Development Enviroment 
 
What IDE do we use for this class correct answers Eclipse 
 
What Does CPU stand for? correct answers Central Processing Unit 
 
What is a bit? corr...
java correct answers object-oriented programming language developed by Sun Microsystems 
 
Why is Java portable? correct answers compiled into Java bytecode which is machine code for a "virtual compiler" (Java Virtual Machine) and a JVM interpreter reads bytecode and simulates execution 
 
object ...
Preview 1 out of 4 pages
Add to cartjava correct answers object-oriented programming language developed by Sun Microsystems 
 
Why is Java portable? correct answers compiled into Java bytecode which is machine code for a "virtual compiler" (Java Virtual Machine) and a JVM interpreter reads bytecode and simulates execution 
 
object ...
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 langua...
Preview 2 out of 7 pages
Add to cartThe 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 langua...
True/False: In order to run a static method, you must run it for a particular object (the current object). correct answers False 
 
True/False: In order to run an instance method, you must run it for a particular object (the current object). correct answers True 
 
True/False: An instance variable c...
Preview 2 out of 12 pages
Add to cartTrue/False: In order to run a static method, you must run it for a particular object (the current object). correct answers False 
 
True/False: In order to run an instance method, you must run it for a particular object (the current object). correct answers True 
 
True/False: An instance variable c...
What kinds of variables are stored on the call stack? correct answers - parameters 
- local variables 
 
(True/False) The following code fragment will compile: 
 
int y = 5; 
if (y < 10) { 
 int x = 17; 
} 
Sln(x); correct answers - FALSE 
- x is a local variable and has block scope so it cannot ...
Preview 2 out of 8 pages
Add to cartWhat kinds of variables are stored on the call stack? correct answers - parameters 
- local variables 
 
(True/False) The following code fragment will compile: 
 
int y = 5; 
if (y < 10) { 
 int x = 17; 
} 
Sln(x); correct answers - FALSE 
- x is a local variable and has block scope so it cannot ...
Polymorphism correct answers The ability of a subroutine to use differing parameters at different times. 
 
ONE TYPE OF THIS: 
================ 
 
public class Ball { 
 public void Ball(String color); 
} 
public class Frisbee { 
 public void Frisbee(String color); 
} 
 
public void toss(Ball b) { 
 ...
Preview 1 out of 3 pages
Add to cartPolymorphism correct answers The ability of a subroutine to use differing parameters at different times. 
 
ONE TYPE OF THIS: 
================ 
 
public class Ball { 
 public void Ball(String color); 
} 
public class Frisbee { 
 public void Frisbee(String color); 
} 
 
public void toss(Ball b) { 
 ...
Name one class discussed in class that is immutable. correct answers String 
 
When should we define a method as static? correct answers If it makes no reference to instance variables. 
 
What is the default value of reference instance variables of a class? correct answers null 
 
When is space for ...
Preview 1 out of 3 pages
Add to cartName one class discussed in class that is immutable. correct answers String 
 
When should we define a method as static? correct answers If it makes no reference to instance variables. 
 
What is the default value of reference instance variables of a class? correct answers null 
 
When is space for ...
IDE correct answers Integrated Development Environment 
 
CVS correct answers Concurrent Versioning System 
 
CPU correct answers Central Processing Unit 
 
Main memory of CPU correct answers RAM - very fast 
 
Secondary memory of CPU correct answers Hard drive, flash drive, CD, DVD, etc. 
(used fo...
Preview 2 out of 5 pages
Add to cartIDE correct answers Integrated Development Environment 
 
CVS correct answers Concurrent Versioning System 
 
CPU correct answers Central Processing Unit 
 
Main memory of CPU correct answers RAM - very fast 
 
Secondary memory of CPU correct answers Hard drive, flash drive, CD, DVD, etc. 
(used fo...
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...
Preview 2 out of 12 pages
Add to cartWhat 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...
What does CPU stand for? correct answers central processing unit 
 
What is an I/O device? Give some examples correct answers It is a device that allows an input and an output. monitor, keyboard, mouse, printer. 
 
What does IDE stand for? correct answers Integrated development environment 
 
What d...
Preview 1 out of 2 pages
Add to cartWhat does CPU stand for? correct answers central processing unit 
 
What is an I/O device? Give some examples correct answers It is a device that allows an input and an output. monitor, keyboard, mouse, printer. 
 
What does IDE stand for? correct answers Integrated development environment 
 
What d...
Write a code fragment that creates a two-dimensional ragged array of ints with 3 rows, initialized with the following data: 
 
 5 8 9 
 
 
 
 0 1 correct answers Could do it with int[][] x = {{5, 8, 9}, {4, 11, 13, 15, 17}, {0, 1}}; 
 
After you have created this array, write code that will print t...
Preview 1 out of 2 pages
Add to cartWrite a code fragment that creates a two-dimensional ragged array of ints with 3 rows, initialized with the following data: 
 
 5 8 9 
 
 
 
 0 1 correct answers Could do it with int[][] x = {{5, 8, 9}, {4, 11, 13, 15, 17}, {0, 1}}; 
 
After you have created this array, write code that will print t...
What is an ArrayList? correct answers A useful polymorphic data structure provided 
by Java that is a general-purpose, array-based, resizable list that can hold any type of object you specify. 
-it is a generic stucture 
 
Differences between ArrayLists and Arrays? correct answers 
 
What is short-c...
Preview 1 out of 4 pages
Add to cartWhat is an ArrayList? correct answers A useful polymorphic data structure provided 
by Java that is a general-purpose, array-based, resizable list that can hold any type of object you specify. 
-it is a generic stucture 
 
Differences between ArrayLists and Arrays? correct answers 
 
What is short-c...
Which kinds of variables are given default values if you do not initialize them? (Local/ instance/static? Which ones?) correct answers Instance and static 
 
What default values are used for the variables mentioned above? correct answers primitives are all set to 0; reference variables are set to "...
Preview 1 out of 2 pages
Add to cartWhich kinds of variables are given default values if you do not initialize them? (Local/ instance/static? Which ones?) correct answers Instance and static 
 
What default values are used for the variables mentioned above? correct answers primitives are all set to 0; reference variables are set to "...
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 > 1...
Preview 1 out of 4 pages
Add to cartWhat 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 > 1...
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, ...
Preview 2 out of 12 pages
Add to cartWhy 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, ...
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 a...
Preview 2 out of 8 pages
Add to cartWhat 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 a...
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 c...
Preview 2 out of 7 pages
Add to cartSolid 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 c...
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 ar...
Preview 3 out of 29 pages
Add to cartAnalyzing 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 ar...
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 te...
Preview 1 out of 3 pages
Add to cartfalse 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 te...
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Stuvia is a marketplace, so you are not buying this document from us, but from seller sh3rrymagdah. Stuvia facilitates payment to the seller.
No, you only buy these notes for $24.49. You're not tied to anything after your purchase.
4.6 stars on Google & Trustpilot (+1000 reviews)
79271 documents were sold in the last 30 days
Founded in 2010, the go-to place to buy study notes for 14 years now