Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just answers , no need to explain Which of the following statements is FALSE?: * A) Classes are reusable software components B) A class defines

Just answers , no need to explain

Which of the following statements is FALSE?: *
A) Classes are reusable software components
B) A class defines the data and operations that will make up an object
C) A method is code used to perform an operation
D) A class is a fundamental construct of object-oriented programming

E) Highly complex objects are the easiest to design, debug, and maintain

-----------------------------

Imagine that you have a Car class. You are asked to capture the behavior of a particular subset of cars, the flying-cars. These ones are exactly like cars but, as the name indicates, they can also fly. Which of the following would be the best approach? Note: You can still drive cars on roads.: *
A) Modify existing Car class, adding a new flying method
B) Extend Car class to Flying-car, provide a flying method and overwrite all the inherited methods
C) Extend Car class to Flying-car and provide a flying method
D) Build the Flying-car class from the scratch
E) Create an instance of the Car class and provide a flying method

---------------

Which of the following programming techniques is used in the binary search algorithm?: *
A) Backtracking
B) Divide and Conquer
C) Modular Programming
D) Greedy
E) Imperative Programming

-----------------

Consider a Dictionary implemented with an AVL tree. What is the worst-case time complexity of the following algorithm written in pseudo-code? Note: You can assume that dict is a previously created instance of a Dictionary and that key and value were also declared before.: * image text in transcribed
A) O(log n)
B) O(n)
C) O(5)
D) O(nlog n)
E) None of the above

-------------------

Take a look at the following pseudo-code. Assuming a later implementation, which of the following situations will occur?: * image text in transcribed
A) A compile-time error will occur.
B) If the input value is even, the program will read an undesired memory value OR an exception will be thrown at run-time.
C) The program will never terminate.
D) The program will ALWAYS: read an undesired memory value OR an exception will be thrown at run-time.
E) None of the above

------------------

) Which of the following initializations or declarations are correct?: * image text in transcribed
A) I, II, III
B) II, III, IV
C) II, IV
D) I, II, III, IV
E) I, II, IV

---------------

Consider the List Abstract Data Type. Which of the following statements is NOT TRUE?: *
A) The size of an array is fixed when it is created while the size of a List can change.
B) A linked list is a data structure that can be used to implement a List.
C) If a List is implemented using arrays, methods that expand the underlying array should be public.
D) A method should be provided to add an item to the end of a List.
E) If the List abstract data type is defined as an interface, every method in the interface needs to be implemented.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

ISBN: 0805302441, 978-0805302448

More Books

Students also viewed these Databases questions