Midterm 2 Review Questions

Midterm 2 Review Quiz
Test your understanding of key programming concepts with this comprehensive midterm review quiz. Whether you're preparing for your exams or simply looking to reinforce your knowledge, this quiz will challenge you on a variety of topics related to programming and software development.
Key Features:
- Multiple choice and checkbox questions
- Focus on parameter modes, polymorphism, testing, and more
- Immediate feedback on your answers
Clear is a Parameter Mode that resets the parameter to an initial value
True
False
If C Extends B, and B Implements A, You can say that:
C Extends A
C Implements A
A is a derived Interface of C
C is a base class of A
The italic underlined piece of the following code:
NaturalNumber n = new NaturalNumber2();
Is the declared type of n
Is the static type of n
Is the object type of n
Is the interface type of n
In polymorphism the method that gets called depends on...
Which class calls it
The dynamic type of the reciever
Which method was made last
The static type of the recieiver
All methods that use polymorphism are instance methods
True
False
Interfaces can contain constructors
True
False
Which command calls the method body in the class above the current one?
Super()
Top()
GetPrevious()
UseExtended()
Aliasing is always bad
True, by using aliasing on mutable types it can cause unintended consequences outside the method call
False, aliasing can be good when used on mutable reference types to be able to change the object value on method call
Which parameter mode(s) implementation does NOT depend on the previous value
Clear
Clears
Updates
Replaces
The goal of unit testing is to prove that a method is implemented correctly
True, testing is meant to show that the method body is correct
False, testing is to try to refute the claim that a method body is correct
Testing what happens when multiple components are put together into a larger system is known as
Unit testing
Integration testing
System testing
Derivative testing
Testing a whole end user stystem is known as
Unit testing
Integration testing
System testing
Derivative testing
Testing individual components of software is known as
Unit testing
Integration testing
System testing
Derivative testing
Who is responsible for making sure the precondition of a method is correct?
The client
The implementor
In reality its always you
Rob
{"name":"Midterm 2 Review Questions", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your understanding of key programming concepts with this comprehensive midterm review quiz. Whether you're preparing for your exams or simply looking to reinforce your knowledge, this quiz will challenge you on a variety of topics related to programming and software development.Key Features:Multiple choice and checkbox questionsFocus on parameter modes, polymorphism, testing, and moreImmediate feedback on your answers","img":"https:/images/course2.png"}
More Surveys
9-Basic Programming
331623
Quiz Poll, Lecture 1
8467
Programming Background Knowledge
6317
Entity Relationship Lecture
10536
Is extra python training needed/wanted?
6318
Mivane
8417
Computer Science
6347
HTML Readiness Quiz
3260
MBChB 2023 GALA AWARDS
147233
Sustainability Plan Feedback
320
Rate the performance of the Duterte Administration in the following areas (1 = lowest; 10 = highest)
147573
Tell us what you think
100
Make your own Survey
- it's free to start.
- it's free to start.