What is a product sunset, and what is involved?
Answer: Product sunset is the process of withdrawing the software from the market.
However, existing...
What is a pre-requisite/co-requisite relationship of product maintenance and fix releases?
What is a pre-requisite/co-requisite relationship of product maintenance and fix releases?
Answer: There are times, a software S1 fix release also...
What is a problem priority level and what is it used for?
What is a problem priority level and what is it used for?
Answer: A problem priority level is a metric that gauges and categorizes the severity level...
Explain the customer problem arrival curve in terms of customer usage of the product and fixes.
Explain the customer problem arrival curve in terms of customer usage of the product and fixes.
Answer: Customer problem arrival rate is directly...
What is the estimated effort field on the change request form used for?
What is the estimated effort field on the change request form used for?
Answer: The estimated effort is used mostly for estimating the resource needed...
Who is responsible for the Support FAQ database?
Who is responsible for the Support FAQ database?
Answer: The Support FAQ database is updated with problem descriptions by the customer support representatives...
List three customer support functions that a customer support/service organization performs.
List three customer support functions that a customer support/service organization performs.
Answer: There are many customer support functions performed...
Why do we need to have change control?
Why do we need to have change control?
Answer: If we do not have change control, problems dealing with scope creep such as schedule and resource expansion...
Describe the steps involved when a customer problem is passed from the customer service/support representative to the technical problem/fix analyst until the problem is resolved.
Describe the steps involved when a customer problem is passed from the customer service/support representative to the technical problem/fix analyst...
What are the check-in and check-out activities in configuration management?
What are the check-in and check-out activities in configuration management?
Answer: Check-in refers to storing or returning an artifact to a configuration...
What is the storage and access model component of configuration management?
What is the storage and access model component of configuration management?
Answer: To help configuration management carry out its policies, the pieces...
If the release number is part of the naming model and the software product planned life cycle is no more than 100 releases, then how many numerical position need to be reserved in the naming model for identifying the release number?
If the release number is part of the naming model and the software product planned life cycle is no more than 100 releases, then how many numerical...
What is configuration management and why is a naming model needed?
What is configuration management and why is a naming model needed?
Answer: Configuration management is a process or a framework of activities, with...
What are the four major activities that make up configuration management?
What are the four major activities that make up configuration management?
Answer: These are:
a) understand and agree on organization’s policies, process...
If the configuration management includes the tracing and relating of different types of artifacts such as requirements to test cases, give an example of what we would need in our naming model.
If the configuration management includes the tracing and relating of different types of artifacts such as requirements to test cases, give an example...
Describe the major difference between the “view” and the “modify” functions in the storage and access model.
Describe the major difference between the “view” and the “modify” functions in the storage and access model.
Answer: The “view” function is the retrieval...
List three concerns you may need to look into prior to deciding on a configuration management tool.
List three concerns you may need to look into prior to deciding on a configuration management tool.
Answer: There are many concerns and they should...
What is a software system build process?
What is a software system build process?
Answer: Software system build is a set of activities where all the software source code and data artifacts...
Describe the notion of “promotion” of artifacts used in configuration management.
Describe the notion of “promotion” of artifacts used in configuration management.
Answer: In managing the development and testing of artifacts, it...
Consider the diagram shown in figure 10.8 of the textbook. How many paths are required to cover all the branches?
Consider the diagram shown in figure 10.8 of the textbook.How many paths are required to cover all the branches?
Answer: In this case 2 paths:...
Explain the difference between Black-box testing and White-box testing.
Explain the difference between Black-box testing and White-box testing.
Answer: Black-box testing only considers the output compared to the expected...
What is the difference between performance testing and stress testing?
What is the difference between performance testing and stress testing?
Answer: In performance testing, the software is tested against the performance...
Briefly explain two different ways to decide when to stop testing.
Briefly explain two different ways to decide when to stop testing.
Answer: One way is to use the ratio of seeded errors and real errors to discovered...
List the four techniques discussed to perform verification and validation.
List the four techniques discussed to perform verification and validation.
Answer:
The four fundamental ones are:
- inspection/review
-...
Describe the steps involved in a formal inspection process and the role of a moderator in the inspection.
Describe the steps involved in a formal inspection process and the role of a moderator in the inspection.
Answer: Inspection process goes through...
Describe the steps involved in a formal inspection process and the role of a moderator in the inspection.
Describe the steps involved in a formal inspection process and the role of a moderator in the inspection.
Answer: Inspection process goes through...
Briefly explain the concept of static analysis and to which software artifacts it can be applied.
Briefly explain the concept of static analysis and to which software artifacts it can be applied.
Answer: Static analysis, as reviews and inspections,...
Explain how to start Black-box testing and discuss with regards to Unit testing and Functional testing.
Explain how to start Black-box testing and discuss with regards to Unit testing and Functional testing.
Answer: Black-box testing starts in the Unit...
Discuss the difference in test cases using Equivalence Class Partitioning.
Discuss the difference in test cases using Equivalence Class Partitioning.
Answer: The software engineer studies the proposed system for differences....
In code inspection, what would you set as the condition for re-inspection?
In code inspection, what would you set as the condition for re-inspection?
Answer: Both the number of problems found and the severity of the problems...
Consider the simple case of testing 2 variables, X and Y, where X must be a non-negative number and Y must be a number between -5 and +15. Utilizing boundary analysis, list the test cases.
Consider the simple case of testing 2 variables, X and Y, where X must be a non-negative number and Y must be a number between -5 and +15. Utilizing...
List two techniques you can use to perform validation.
List two techniques you can use to perform validation.
Answer: Inspections and testing are used for validation of requirements...
Consider the diagram shown in figure 10.8 of the textbook. How many paths are required to cover all the statements?
Consider the diagram shown in figure 10.8 of the textbook.
How many paths are required to cover all the statements?
Answer: In this case 1 path:...
Consider the diagram shown in figure 10.8 of the textbook. How many logical paths are there? List them all.
Consider the diagram shown in figure 10.8 of the textbook.
How many logical paths are there? List them all.
Answer: There are 4 logical paths.
Path1:...
You should choose longer names for local variables or entities, but can use shorter ones for global variables or entities.
You should choose longer names for local variables or entities, but can use shorter ones for global variables or entities.
Answer: Fals...
You should choose longer names for local variables or entities, but can use shorter ones for global variables or entities.
You should choose longer names for local variables or entities, but can use shorter ones for global variables or entities.
Answer: Fals...
List the four phases of the debugging process, as described in the book.
List the four phases of the debugging process, as described in the book.
Answer:
1. Stabilization (or reproduction),
2. Localization,
3. Correction,
4....
___ is the act of transforming the detailed design into a valid program in some programming language.
___ is the act of transforming the detailed design into a valid program in some programming language.
Answer: Implementation
...
A __ is a condition that your module requires in order to produce correct results.
A _______ is a condition that your module requires in order to produce correct results.
Answer: preconditio...
Name some of the refactorings that Fowler discuses.
Name some of the refactorings that Fowler discuses.
Answer: Extract method; substitute algorithm; move method; extract class...
__ is a change made to the internal structure of software to make it easier to understand and cheaper to modify, without changing its observable behavior.
__ is a change made to the internal structure of software to make it easier to understand and cheaper to modify, without changing its observable behavior.
Answer:...
List at a few desirable characteristics of a good implementation.
List at a few desirable characteristics of a good implementation.
Answer: Readability; maintainability; performance; traceability; correctness; c...
List a few of the “code smells” Fowler provides as indicators you should refactor your code.
List a few of the “code smells” Fowler provides as indicators you should refactor your code.
Answer:
1. duplicated code;
2. long method;
3. large...
List a few of the types of code comments described in the book.
List a few of the types of code comments described in the book.
Answer:
1. Repeat of the code;
2. explanation of the code;
3. marker in the code;
4....
The most important issues for maintaining a good coding style are: to be consistent and to try to highlight the meaning of your code.
The most important issues for maintaining a good coding style are: to be consistent and to try to highlight the meaning of your code.
Answer: Tru...
What are glue tokens and super glue tokens, and which type contributes more to cohesion?
What are glue tokens and super glue tokens, and which type contributes more to cohesion?
Answer: Glue tokens are data tokens that lie in more than...
What is software cohesion?
What is software cohesion?
Answer: Cohesion is a characteristic that describes the degree of relatedness within the software.
...
What is fan-in and fan-out, and what attribute do they measure?
What is fan-in and fan-out, and what attribute do they measure?
Answer: Fan-in is a measure of number of information flow into a module or component....
What is software coupling?
What is software coupling?
Answer: Coupling is a characteristic that describes the degree of interdependence or interaction among the parts within...
What is the Law of Demeter attempting to achieve?
What is the Law of Demeter attempting to achieve?
Answer: Law of Demeter is a set of guiding rules that limits the span of control of an object by...
What is McCabe’s cyclomatic complexity number a) attempting to measure, and b) what is the cyclomatic complexity number of a program A that contains 3 binary predicates (or branches)?
What is McCabe’s cyclomatic complexity number a) attempting to measure, and b) what is the cyclomatic complexity number of a program A that contains...
What are the two general characteristics of a design that naturally carry over from requirements?
What are the two general characteristics of a design that naturally carry over from requirements?
Answer: The design is an evolution from requirements.
So...
List four out of the eight rules of user interface design identified by Shneiderman and Plaisant.
List four out of the eight rules of user interface design identified by Shneiderman and Plaisant.
Answer: There are actually 8: a) consistency, b)...
What are the levels of coupling?
What are the levels of coupling?
Answer: There are 5 levels of coupling listed in the order of worst to best: content, common, control, stamp, and...
What are the six design measurements of C-K metrics in OO?
What are the six design measurements of C-K metrics in OO?
Answer: They are a) weighted number of methods per class, b) depth of inheritance tree...
What is a program slice?
What is a program slice?
Answer: A program slice is the set of statements that can affect the value of some specified variable of interest in the...
What are the general cohesion and coupling goals when designing software?
What are the general cohesion and coupling goals when designing software?
Answer: We strive for lesser or looser coupling of software, and we design...
In contrast to general design, what is user interface design interested in?
In contrast to general design, what is user interface design interested in?
Answer: The general software design is concerned about the software components,...
What are the levels of cohesion?
What are the levels of cohesion?
Answer: There are 7 levels of cohesion listed in the order of worst to best: coincidental, logical, temporal, procedural,...
Explain how the Model-View-Controller architectural style is done using HTML-Script-SQL.
Explain how the Model-View-Controller architectural style is done using HTML-Script-SQL.
Answer: The Model-View-Controller (MVC) architectural style...
What is the difference between low fidelity prototypes and high fidelity prototypes?
What is the difference between low fidelity prototypes and high fidelity prototypes?
Answer: Low fidelity prototypes are quick hand drawn screens...
Mention and describe three different views used in architectural design.
Mention and describe three different views used in architectural design.
Answer:
Architectural design is a high level view of the system. It can be...
When we employ the technique of generalization in design, what are we doing, and which part of OO design is closely related to this concept?
When we employ the technique of generalization in design, what are we doing, and which part of OO design is closely related to this concept?
Answer:...
What does aggregation mean in OO? Give an example.
What does aggregation mean in OO? Give an example.
Answer: Aggregation is a “part-of” association. For example, student is a part of a class.
...
Explain “Adding a course” from section 7.3.4 using Norman’s 7 Stage Model.
Explain “Adding a course” from section 7.3.4 using Norman’s 7 Stage Model.
Answer:
Form a goal – add Engl 2011 - The user (aStudent) forms the goal...
What is the difference between data modeling and logical data base design?
What is the difference between data modeling and logical data base design?
Answer: In data modeling we are constructing and showing the Entity-Relationship...
Discuss Figure 7.26 with regard to the user’s interaction; the screen’s interaction; and the system’s interaction (process).
Discuss Figure 7.26 with regard to the user’s interaction; the screen’s interaction; and the system’s interaction (process).
Answer: The user sees...
List the four components of the GOMS model for user interfaces.
List the four components of the GOMS model for user interfaces.
Answer: The 4 factors of GOMS model are : Goals, Operators, Methods, and Selection...
List two differences between the state transition diagram and the sequence diagram.
List two differences between the state transition diagram and the sequence diagram.
Answer: State diagram shows the states of the objects and how...
List at least four items that are included in the description of high level business profile.
List at least four items that are included in the description of high level business profile.
Answer:
- opportunity and needs
- ...
What additional skills and knowledge help a requirement engineer?
What additional skills and knowledge help a requirement engineer?
Answer:
-Communication skills: good listener and interpreter
-Industry domain knowledge:...
What are the six main dimensions of requirements that one needs to address when collecting requirements?
What are the six main dimensions of requirements that one needs to address when collecting requirements?
Answer:
- business flow
- ...
What is the Viewpoint-Oriented Requirements Definition method used for?
What is the Viewpoint-Oriented Requirements Definition method used for?
Answer: This method is based on the understanding that requirements are not...
List and describe at a high level the steps involved in software requirements engineering process.
List and describe at a high level the steps involved in software requirements engineering process.
Answer:
- elicitation
- analysis
-...
List and describe three items that will need to be considered in prioritizing requirements.
List and describe three items that will need to be considered in prioritizing requirements.
Answer:
- current customer demands
- ...
What are the three main items that must be planned prior to conducting requirements engineering?
What are the three main items that must be planned prior to conducting requirements engineering?
Answer:
- Requirements...
List at least 3 of the fundamental principles of eXtreme Programming.
List at least 3 of the fundamental principles of eXtreme Programming.
Answer: Rapid feedback; simplicity; incremental change; embracing change; quality...
According to the Crystal family of methodologies, more critical projects and larger teams should use heavier methodologies.
According to the Crystal family of methodologies, more critical projects and larger teams should use heavier methodologies.
Answer: Tru...
List the 4 values listed in the agile software manifesto.
List the 4 values listed in the agile software manifesto.
Answer:
1. Individuals and interactions over processes and tools;
2. Working software...
List characteristics of agile methods.
List characteristics of agile methods.
Answer: short releases and iterations; incremental design; user involvement; minimal documentation; informal...
During eXtreme Programming planning, technical staff decide on estimates, consequences, processes.
During eXtreme Programming planning, technical staff decide on estimates, consequences, processes.
Answer: True
...
During eXtreme Programming planning, customers decide on scope, priorities, release scope and release dates.
During eXtreme Programming planning, customers decide on scope, priorities, release scope and release dates.
Answer: Tru...
List a at least 3 of the problems that may arise with traditional software processes.
List a at least 3 of the problems that may arise with traditional software processes.
Answer: Lengthy development times; inability to cope with changing...
List 3 of the core values of eXtreme Programming
List 3 of the core values of eXtreme Programming
Answer:
1. Frequent communication;
2. Simplicity in design and code;
3. Feedback; courage.
...
List disadvantages of agile processes.
List disadvantages of agile processes.
Answer: Possibly not scalable; heavy reliance on teamwork; reliance on frequent access to customer; cultural...
In open source software, access to the source code is provided, and permission to modify and redistribute the source is granted.
In open source software, access to the source code is provided, and permission to modify and redistribute the source is granted.
Answer: Tru...
List at least 3 of the advantages of agile processes.
List at least 3 of the advantages of agile processes.
Answer:
1. Low process complexity;
2. low cost on overhead;
3. efficient handling of changes;...
What are the 4 phases of Rational Unified Process?
What are the 4 phases of Rational Unified Process?
Answer: inception; elaboration; construction; transitio...
How many process areas, in total, are included in SEI’s Software CMMI?
How many process areas, in total, are included in SEI’s Software CMMI?
List those that fall into the engineering category and the support category.
Answer:...
Discuss one advantage and one disadvantage of the waterfall process.
Discuss one advantage and one disadvantage of the waterfall process.
Answer: An advantage is that it provided a clear way to track the stages of development...
What are the major concepts that drove the Rational Unified Process framework?
What are the major concepts that drove the Rational Unified Process framework?
Answer: It is a process framework that promotes iterative and incremental...
Give an example of your morning routine as a waterfall process.
Give an example of your morning routine as a waterfall process.
Answer: Waking up; Cleaning up; Dressing; Breakfast; Leavin...
In a Spiral model, what are the four quadrants?
In a Spiral model, what are the four quadrants?
Answer: The four quadrants are
i) plan next phase, ii) determine objectives, alternatives, and...
What is the goal of a software process model?
What is the goal of a software process model?
Answer: To provide guidance for a systematic way to coordinate and control the tasks that must be performed...
What is an entry and exit criteria to a process?
What is an entry and exit criteria to a process?
Answer: Entry criteria describes and lists all the conditions and materials that must be met prior...
List all of the key processes addressed by SEI’s CMM model. Which ones are required for maturity level 2?
List all of the key processes addressed by SEI’s CMM model. Which ones are required for maturity level 2?
Answer: Requirements Management
Software...
(Advanced analysis) The equation for the demand curve in the below diagram:
(Advanced analysis) The equation for the demand curve in the below diagram:
A. is P = 70 Q.
B. is P = 35 2Q.
C. is P = 35...
When the price of a product falls, the purchasing power of our money income rises and thus permits consumers to purchase more of the product. This statement describes:
When the price of a product falls, the purchasing power of our money income rises and thus permits consumers to purchase more of the product. This...
When the price of a product rises, consumers shift their purchases to other products whose prices are now relatively lower. This statement describes:
When the price of a product rises, consumers shift their purchases to other products whose prices are now relatively lower. This statement describes:
A....
The income and substitution effects account for:
The income and substitution effects account for:
A. the upward sloping supply curve.
B. the downward sloping demand curve.
C. movements along...
An increase in the price of a product will reduce the amount of it purchased because:
An increase in the price of a product will reduce the amount of it purchased because:
A. supply curves are upsloping.
B. the higher price means...
In presenting the idea of a demand curve, economists presume the most important variable in determining the quantity demanded is:
In presenting the idea of a demand curve, economists presume the most important variable in determining the quantity demanded is:
A. the price...
A demand curve:
A demand curve:
A. shows the relationship between price and quantity supplied.
B. indicates the quantity demanded at each price in a series of prices.
C....
When the price of a product increases, a consumer is able to buy less of it with a given money income. This describes the:
When the price of a product increases, a consumer is able to buy less of it with a given money income. This describes the:
A. cost effect.
B....
The relationship between quantity supplied and price is _____ and the relationship between quantity demanded and price is ____.
The relationship between quantity supplied and price is _____ and the relationship between quantity demanded and price is ____.
A. direct, inverse
B....
Economists use the term "demand" to refer to:
Economists use the term "demand" to refer to:
A. a particular price-quantity combination on a stable demand curve.
B. the total amount spent...
The demand curve shows the relationship between:
The demand curve shows the relationship between:
A. money income and quantity demanded.
B. price and production costs.
C. price and quantity...
Graphically, the market demand curve is:
Graphically, the market demand curve is:
A. steeper than any individual demand curve that is part of it.
B. greater than the sum of the individual...
The law of demand states that, other things equal:
The law of demand states that, other things equal:
A. price and quantity demanded are inversely related.
B. the larger the number of buyers in...
Markets, viewed from the perspective of the supply and demand model:
Markets, viewed from the perspective of the supply and demand model:
A. assume many buyers and many sellers of a standardized product.
B. assume...
A market:
A market:
A. reflects upsloping demand and downsloping supply curves.
B. entails the exchange of goods, but not services.
C. is an institution...
A fundamental difference between the command system and the market system is that, in command systems:
A fundamental difference between the command system and the market system is that, in command systems:
A. the division of output is decided...
Command systems are also known as:
Command systems are also known as:
A. market systems.
B. pure capitalism.
C. laissez-faire capitalism.
D. communism...
Economic systems differ according to which two main characteristics?
Economic systems differ according to which two main characteristics?
A. Who owns the factors of production, and the methods used to coordinate...
The term laissez-faire suggests that:
The term laissez-faire suggests that:
A. land and other natural resources should be privately owned, but capital should be publicly owned.
B....
An economic system:
An economic system:
A. requires a grouping of private markets linked to one another.
B. is a particular set of institutional arrangements and...
The French term "laissez-faire" means:
The French term "laissez-faire" means:
A. "there is no free lunch."
B. "let it be."
C. "circular flow."
D. "public ownership....
Of the following countries, which one best exhibits the characteristics of a market economy?
Of the following countries, which one best exhibits the characteristics of a market economy?
A. Canada.
B. Cuba.
C. North Korea.
D. China...
Examples of command economies are:
Examples of command economies are:
A. The United States and Japan.
B. Sweden and Norway.
C. Mexico and Brazil.
D. Cuba and North Korea...
Which of the following is a distinguishing feature of a market system?
Which of the following is a distinguishing feature of a market system?
A. public ownership of all capital.
B. central planning.
C. wide-spread...
Which of the following is a distinguishing feature of a command system?
Which of the following is a distinguishing feature of a command system?
A. private ownership of all capital.
B. central planning.
C. heavy reliance...
The economic perspective entails:
The economic perspective entails:
A. irrational behavior by individuals and institutions.
B. a comparison of marginal benefits and marginal...
The study of economics is primarily concerned with:
The study of economics is primarily concerned with:
A. keeping private businesses from losing money.
B. demonstrating that capitalistic economies...
Economics may best be defined as the:
Economics may best be defined as the:
A. interaction between macro and micro considerations.
B. social science concerned with how individuals, institutions,...
A person should consume more of something when its marginal:
A person should consume more of something when its marginal:
A. benefit exceeds its marginal cost.
B. cost exceeds its marginal benefit.
C....
Joe sold gold coins for $1000 that he bought a year ago for $1000. He says, "At least I didn't lose any money on my financial investment." His economist friend points out that in effect he did lose money, because he could have received a 3 percent return on the $1000 if he had bought a bank certificate of deposit instead of the coins. The economist's analysis in this case incorporates the idea of:
Joe sold gold coins for $1000 that he bought a year ago for $1000. He says, "At least I didn't lose any money on my financial investment." His economist...
According to economists, economic self-interest:
According to economists, economic self-interest:
A. is a reality that underlies economic behavior.
B. has the same meaning as selfishness.
C....
According to Emerson: "Want is a growing giant whom the coat of Have was never large enough to cover." According to economists, "Want" exceeds "Have" because:
According to Emerson: "Want is a growing giant whom the coat of Have was never large enough to cover." According to economists, "Want" exceeds "Have"...
When economists say that people act rationally in their self interest, they mean that individuals:
When economists say that people act rationally in their self interest, they mean that individuals:
A. look for and pursue opportunities to...
In economics, the pleasure, happiness, or satisfaction received from a product is called:
In economics, the pleasure, happiness, or satisfaction received from a product is called:
A. marginal cost.
B. rational outcome.
C. status...
For economists, the word "utility" means:
For economists, the word "utility" means:
A. versatility and flexibility.
B. rationality.
C. pleasure or satisfaction.
D. purposefulness...
Which of the following is used for titles of subdivisions of published works, such as chapters of a book?
Which of the following is used for titles of subdivisions of published works, such as chapters of a book?
A. Quotation marks
B. Underline
C. Italics
D....
To indicate a word is slang or informal usage,:
To indicate a word is slang or informal usage,:
A. enclose it in quotation marks.
B. explain it in parentheses.
C. underline it.
D. None of these;...
Which of the following should NOT be capitalized?
Which of the following should NOT be capitalized?
A. Days of the week
B. Seasons
C. Names of holidays
D. Months of the yea...
Among her last words were, “I am settled in my own faith.”
Among her last words were, “I am settled in my own faith.”
A. Correctly punctuated
B. Change the comma to a semicolon
C. Move the period outside...
Identify the sentence that is punctuated correctly.
Identify the sentence that is punctuated correctly.
A. The operating costs, as he probably told you, are too high.
B. The operating costs, as he...
The main use of brackets in writing is to:
The main use of brackets in writing is to:
A. mark an interruption in a quotation.
B. note an error in a quotation.
C. indicate an omission from...
Which of the following is NOT true?
Which of the following is NOT true?
A. Always capitalize specific brand names.
B. Capitalize names of specific places.
C. Capitalize common nouns.
D....
Identify the correct sentence.
Identify the correct sentence.
A. The River in Hackensack, New Jersey overflowed during Hurricane Sandy.
B. The river in Hackensack, NJ overflowed...
Identify the sentence that is punctuated correctly.
Identify the sentence that is punctuated correctly.
A. These products may not seem as exciting as they did in the past but maybe that’s the time...
Which of the following emphasizes parts of sentences?
Which of the following emphasizes parts of sentences?
A. Parentheses
B. Em-dashes
C. Commas
D. En-dashe...
Identify the correct sentence.
Identify the correct sentence.
A. My American Literature class starts at 12:30 p.m.
B. My Literature class starts at 12:30 p.m.
C. My American literature...
Never divide:
Never divide:
A. the last word on a page.
B. a word less than two syllables.
C. a contraction.
D. All of the above...
Identify the correct sentence.
Identify the correct sentence.
A. I’ve seen the movie Raiders of the Lost Ark 3 times.
B. I’ve seen the movie Raiders Of The Lost Ark 3 times.
C. I’ve...
She has ___ that dress to several weddings.
She has ___ that dress to several weddings.
A. worn
B. wore
C. weared
D. wea...
Which of the following is the correct abbreviation for Doctor of Philosophy?
Which of the following is the correct abbreviation for Doctor of Philosophy?
A. PHD
B. Ph.D.
C. Phd.
D. Ph...
If String x = "Hello" and String y = "Goodbye", then swap(x, y); results in which of the following?
Consider the following swap method. If String x = "Hello" and String y = "Goodbye", then swap(x, y); results in which of the following?
public...
For questions 5-8, consider a class that stores 2 int values. These values can be assigned int values with the messages set1(x) and set2(x) where x is an int, and these values can be accessed through get1( ) and get2( ). Assume that y and z are two objects of this class. The following instructions are executed:
For questions 5-8, consider a class that stores 2 int values. These values can be assigned int values with the messages set1(x) and set2(x) where...
Assume x and y are String variables with x = "Hello" and y = null.
For questions 1-4, assume x and y are String variables with x = "Hello" and y = null.
1) The result of (x = = y) is
a) true
b) false
c) a syntax...
Consider a method defined with the header: public void doublefoo(double x). Which of the following method calls is legal?
Consider a method defined with the header: public void doublefoo(double x). Which of the following method calls is legal?
a) doublefoo(0);
b)...
Consider a method defined with the header: public void foo(int a, int b). Which of the following method calls is legal?
Consider a method defined with the header: public void foo(int a, int b). Which of the following method calls is legal?
a) foo(0, 0.1);
b) foo(0...
For questions 21 - 23, use the following class definition:
For questions 21 - 23, use the following class definition:
public class Swapper
{
private int x;
private String y;
public int z;
public Swapper(int...
Use the following information to answer questions 19 - 20. The Die class from chapter 4 has two constructors defined as follows. Assume MIN_FACES is an int equal to 4. public Die( ) public Die(int faces) { { numFaces = 6; if(faces < MIN_FACES) numFaces = 6; faceValue = 1; else numFaces = faces; } faceValue = 1; }
Use the following information to answer questions 19 - 20. The Die class from chapter 4 has two constructors defined as follows. Assume MIN_FACES...
In the Rational class, defined in chapter 4, the methods reduce and gcd are declared to be private. Why?
In the Rational class, defined in chapter 4, the methods reduce and gcd are declared to be private. Why?
a) Because they will never be used
b) Because...
int num = 0; for(int j = 0; j < 1000; j++) { c.flip( ); if(c.isHeads()) num++; } double value = (double) num / 1000;
What does the following code compute?
int num = 0;
for(int j = 0; j < 1000; j++)
{
c.flip( );
if(c.isHeads()) num++;
}
double value = (double)...
A set of code has already instantiated c to be a Coin and has input a String guess, from the user asking whether the user guesses that a coin flip will result in “Heads” or “Tails”. Which of the following sets of code will perform the coin flip and see if the user’s guess was right or wrong?
A set of code has already instantiated c to be a Coin and has input a String guess, from the user asking whether the user guesses that a coin...
Another method that might be desired is one that updates the Student’s number of credit hours. This method will receive a number of credit hours and add these to the Student’s current hours. Which of the following methods would accomplish this?
Another method that might be desired is one that updates the Student’s number of credit hours. This method will receive a number of credit hours...
For questions 13-15, use the following class definition
For questions 13-15, use the following class definition
import java.text.DecimalFormat;
public class Student
{
private String name;
private String...
An example of passing a message to a String where the message has a String parameter occurs in which of the following messages?
An example of passing a message to a String where the message has a String parameter occurs in which of the following messages?
a) length
b)...
Instance data for a Java class
Instance data for a Java class
a) are limited to primitive types (e.g., int, double, char)
b) are limited to Strings
Lewis/Loftus/Cocking: Chapter...
Having multiple class methods of the same name where each method has a different number of or type of parameters is known as
Having multiple class methods of the same name where each method has a different number of or type of parameters is known as
a) encapsulation
b)...
A class’ constructor usually defines
A class’ constructor usually defines
a) how an object is initialized
b) how an object is interfaced
c) the number of instance data in the class
d)...
A variable whose scope is restricted to the method where it was declared is known as a(n)
A variable whose scope is restricted to the method where it was declared is known as a(n)
a) parameter
b) global variable
c) local variable
d)...
Consider a sequence of method invocations as follows: main calls m1, m1 calls m2, m2 calls m3 and then m2 calls m4, m3 calls m5. If m4 has just terminated, what method will resume execution?
Consider a sequence of method invocations as follows: main calls m1, m1 calls m2, m2 calls m3 and then m2 calls m4, m3 calls m5. If m4 has just...
If a method does not have a return statement, then
If a method does not have a return statement, then
a) it will produce a syntax error when compiled
b) it must be a void method
c) it can not be...
In order to preserve encapsulation of an object, we would do all of the following except for which one?
In order to preserve encapsulation of an object, we would do all of the following except for which one?
a) Make the instance data private
b) Define...
Which of the following reserved words in Java is used to create an instance of a class?
Which of the following reserved words in Java is used to create an instance of a class?
a) class
b) public
c) public or private, either could be...
To define a class that will represent a car, which of the following definitions is most appropriate?
To define a class that will represent a car, which of the following definitions is most appropriate?
a) private class car
b) public class car
c)...
The relationship between a class and an object is best described as
The relationship between a class and an object is best described as
a) classes are instances of objects
b) objects are instances of classes
c) objects...
The behavior of an object is defined by the object’s a) instance data b) constructor c) visibility modifiers d) methods e) all of the above
The behavior of an object is defined by the object’s
a) instance data
b) constructor
c) visibility modifiers
d) methods
e) all of the above
Answer:...
public void paint(Graphics page) { int x, y = 200; page.setColor(Color.blue); for(x = 100; x < 200; x += 20) page.fillRect(x, y, 10, y-x); }
Consider the following paint method and answer questions :
public void paint(Graphics page)
{
int x, y = 200;
page.setColor(Color.blue);
for(x...
Subscribe to:
Posts (Atom)