Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which one is not correct about the class? A. Class is a programmer-defined type B. Class consists of data definitions and methods that operate on

  1. Which one is not correct about the class?

    A.

    Class is a programmer-defined type

    B.

    Class consists of data definitions and methods that operate on the data

    C.

    public class allows a method in any application to declare a reference variable of this class type

    D.

    Class is one of primitive data type that Java defines in Java library

0.5 points

Question 2

  1. There are 2 nodes are stored in a linear list. What node comes just before and just after the first node?

    A.

    None and last node

    B.

    Node 0 and node 2

    C.

    None and node 2

    D.

    a and c

0.5 points

Question 3

  1. The factors determine the cost of software are: (page 10)

    A.

    Lines of code that the software contains

    B.

    Design, implement, testing, documentation, burdened labor rate

    C.

    a and b

    D.

    None of above

0.5 points

Question 4

  1. Class abstraction is:

    A.

    We do not need to know anything about the data structure to use it

    B.

    We do not need to know what data structure about to use it

    C.

    We do not need to know the implementation details of a data structure in order to use it

    D.

    We do not need to know what the data structure about to use it

0.5 points

Question 5

  1. The Binary Search algorithm speed at the worst case is:

    A.

    O(log2n)

    B.

    O(n log2n)

    C.

    O(n)

    D.

    O(n2)

0.5 points

Question 6

  1. Built-in data structures are ____?

    A.

    Schemes for storing data that are conceived and implemented by the programmer of a particular program

    B.

    schemes for storing data that are part of a programming language

    C.

    constructed from structures, such as, parallel arrays, class definitions, hashing schemes, link lists, trees, stacks and queues.

    D.

    None of above

0.5 points

Question 7

  1. Data Structure is ____

    An organization of information usually in the memory

    For better algorithm efficiency and improves the programs performance

    a and b

    none of above

0.5 points

Question 8

  1. A = 23n + 36n2 B = 6 + nlog2(n) + n C = log2n + 36n2

    Which one of the following is correct?

    A.

    TA = O(n2) TB = O(n) TC = O(log2n)

    B.

    TA = O(n2) TB = O(nlog2(n)) TC = O(n2)

    C.

    TA = O(n2) TB = O(+ nlog2(n)) TC = O(log2n)

    D.

    TA = O(n2) TB = O(n) TC = O(n2)

0.5 points

Question 9

  1. Three criteria are used to determine whether a data structure is acceptable for a particular application are:

    A.

    Cost, Speed and memory overhead

    B.

    Cost, type of storage, type of memory

    C.

    a and b

    D.

    None of above

0.5 points

Question 10

  1. Assume 16 lines of code per person per day. Estimate a program will consist of 300,000 lines of code. If the burdened cost of a programmers efforts is $150 per hour, determine the code of the program (page 10)

    A.

    45 million dollars

    B.

    10 million dollars

    C.

    90 million dollars

    D.

    22.5 million dollars

0.5 points

Question 11

  1. Procedural abstraction is:

    A.

    We do not need to know what the method is to use it

    B.

    We do not need to know the implementation details of the method in order to use it

    C.

    We do not need to know what methods the class has to use it

    D.

    We do not to know anything about the method to use it

0.5 points

Question 12

  1. The following is not true about Binary Search :

    A.

    Binary Search algorithm is a technique for rapidly finding a data item stored in an array

    B.

    Binary Search algorithm will return the index of the array elements where the search value is stored

    C.

    Binary Search algorithm can be applied on the unsorted arrays

    D.

    Binary Search algorithm assumes that the data in array are already sorted. in ascending order

0.5 points

Question 13

  1. Algorithm speed will consider the following factors:

    A.

    relative speed of the algorithm

    B.

    absolute speed of the algorithm

    C.

    do not need to consider anything

    D.

    a and b

0.5 points

Question 14

  1. Which one is not correct about the object (page 40)?

    A.

    Object is an instance of a class

    B.

    After an object is declared, the client code can invoke any public accessible methods declared in the class by using objectName.methodName()

    C.

    In Java, accessing information in objects requires only one memory access as primitive variable (page 40)

    D.

    In Java, accessing information in objects requires two memory

0.5 points

Question 15

  1. Which statement is not correct about data?

    A.

    Data is information

    B.

    Data can be input data or output data

    C.

    Studies show that programs spend only 10% of their execution time for searching through memory to locate the data they process

    D.

    The source of data can be any device attached to a computer system

0.5 points

Question 16

  1. Two objects, objectA and object, are objects of one class. The objectA is copied to objectB. How many objects exist after the copy if the copy is performed as a shallow copy?

    A.

    1

    B.

    2

    C.

    cannot know

    D.

    1 or 2 depending on real cases

0.5 points

Question 17

  1. Which one is true for Linear List?

    A.

    It is a collection of n nodes if there is a unique first node N1, unique last node Nn and only one node in the list

    B.

    It is a collection of n nodes if there is a unique first node N1, unique last node Nn and for any other node, only one node comes before it and only one node comes after it

    C.

    It is a collection of n nodes if there is a unique first node N1, unique last node Nn and for any other node, it can have one or more nodes come before or after it

    D.

    None of above

0.5 points

Question 18

  1. Which one is not correct about encapsulation?

    A.

    Encapsulation helps to reduce the cost of the software development. and maintenance

    B.

    Encapsulation produce the code is more easily reused

    C.

    Encapsulation is the idea that we write the code in a way that establishes compiler enforced protocols for accessing the data that the program process

    D.

    Encapsulation provides the code such that all the fields can be access from everywhere outside the class

0.5 points

Question 19

  1. Big-O analysis is __________

    A.

    An analysis technique that is used to set a bound of the upper limit of a mathematical function.

    B.

    An analysis technique that is based on the assumption that one of the term of the function will dominate all but negligible portion of the value of the function as the independent variable gets large.

    C.

    An analysis that is used to evaluate functional relationships

    D.

    All of above

0.5 points

Question 20

  1. Which one is correct about array?

    A.

    int [ ] myInt = new int;

    B.

    int [3] myInt = new int;

    C.

    int [ ] myInt = new int[3];

    D.

    int [ ] myInt = new int(3);

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

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions