Home
Browse
Create
Search
Log in
Sign up
Upgrade to remove ads
Only $2.99/month
CS 301 Final Exam - Module 1
STUDY
Flashcards
Learn
Write
Spell
Test
PLAY
Match
Gravity
Terms in this set (30)
Implementation, Design, and Analysis
The three fundamental steps of software development that cannot be avoided, regardless of how the project is managed and organized
True
True or False: Agile Development involves building software incrementally with short iteration cycles and keeping development aligned with changing needs on the client side
Everything (incomplete)
The reasons that delivering the perfect software on time is difficult
20-40 Percent
The percentage range of large software development projects (budget = $1M+) that fail
False
True or False: The Waterfall process model is called Waterfall because it describes how the code is developed in a top-down manner as water falls down and not bottom-up
"new" followed by a constructor method call
When executed, code can access memory locations to read or write data. To support a life cycle for data (creation, read/write access, deletion), we can allocate memory and release memory such that it can be reused for other purpose. This is the command to allocate memory in Java.
Divide and conquer
The main strategy for managing complexity in software designs
Relate similar objects that can share data and algorithms, associate an object with a set of roles, retain a local control over access to data
The implications of object oriented programming languages that allow us to combine data and algorithms into objects
True
True or False: Hardware has a memory hierarchy with volatile and persistent levels. This implies that code needs to distinguish between those. The address space of a process with its objects resides in volatile memory such we can directly access its content. When it comes to accessing data that is in persistent storage we need to access the file system and load data from it.
Loops, Sequence, and Choice/Conditional Execution
Code is executed as a sequence of elementary, basic steps.
Programs need to specify this sequence, which is done using these control flow operators.
True
True or False: The JVM loads byte code for individual classes as needed during execution
False
True or False: A class can have several methods of same signature but with different names
False
True or False: A class can not have multiple constructor methods as they would all have the same name
The main method returns from execution and all of its threads terminate
A running Java program terminates naturally when this occurs
Its fields can memorize what happened to the object so far
An object is said to have a state for this reason
It resides in memory and that memory address makes it unique
An object is said to have an identity for this reason
Lots of things (incomplete)
What do you know about arrays
A list of its interfaces, definitions of its methods, its direct superclass, and definitions of its fields
A class definition can include these
static variables elsewhere in the codebase, its parameter values, instance variables of its own class (unique to each instance)
For a non-static method in a class, what data does the code inside the method have access to that is outside of its scope?
Instance variables of the method's class, accessible static variables somewhere in the code base, a parameter that refers to a mutable object, a return value
How can you transfer computed results out of the scope of a method that is not static?
The Age class must have a constructor method of signature Age(int a), the newly created object of type Age resides on the heap, and variable a is located in the current stack frame
If we write a line of code "Age a = new Age(123);" in some method and that line gets executed at runtime, the following is true
True
True or False: In Java programming, the format of the source code (indentation, paragraphs, end of line) follows common practice rules to make it easier for humans to read the code. The format does not matter for the compiler.
An interface is a list of method signatures (plus some optional definitions of constant values), a variable can be of interface type, a class can have only one super class but it can implement many interfaces
The following is true of Java Interfaces
Lots of shit (incomplete)
Java supports a for loop of the form for(A; B; C){D}
char, int, float
Select the primitive types in Java from the following list:
unsigned int
Boolean
bool
Integer
Float
Correct
char
Correct
int
integer
Long
Correct
float
Double
The String class is a subclass of object, a String is immutable, for two strings x and y, z = x + y results in a string z as the concatenation of x and y, a string supports a method length()
These are true with regard to Strings in Java
javac
This is the command to compile a Java code base into intermediate byte code
True
True or False: The import statements are a short cut to avoid typing full class names with package names in code
Bitwise AND if A and B are of type int
This is the meaning of the "&" operator in an expression such as A & B
Because the root field is public, it can be directly accessed similar to any field in Iceberg
The class Salad has a public field root. We implement a subclass of Salad named Iceberg that must access the root field. How can we do this?
YOU MIGHT ALSO LIKE...
.NET Terms
48 terms
CSC 230 Midterm Chapt 9, CSC 230 Midterm Chpt 10,…
70 terms
Starting out with Java Ch. 5, 6, 12
52 terms
OOP
71 terms
OTHER SETS BY THIS CREATOR
CS301 Final Exam - Module 4
19 terms
CS 301 Final Exam - Module 3
32 terms
CS 301 Final Exam - Module 2
38 terms
Abnormal Psych Final Exam
7 terms
OTHER QUIZLET SETS
Adv Civics Unit 1 Exam Review
49 terms
2020 Prarambh Exam Test Review
75 terms
Animal Behavior Quiz 1 Reading 1.4
11 terms
Ch.3B Study Guide
18 terms