Question

Copyright laws were established A. to allow authors to distribute their work while maintaining certain ownership rights. B. to allow authors to maintain ownership of their ideas, C. to restrict access to publications to certain groups within society. D. to allow ideas to be traced back to their origins. 28) Which of the following describes only the portion of a database available to a particular user? A. Database model B, Schema C. Subschema D. DBMS 29) Which of the following relational operations combine data from more than one relation? A. SELECT B. PROJECT C. JoIN 30) A class that cannot be instantiated is called alan a) Abstract class. b)Anonymous class. c) Concrete class. d) Non-inheritable. 31) Which of the following statements about comparing objects is correct? a) The equal method is used to compare whether two references are to the same object. b) The equal method is used to compare whether two objects have the same contents. c) The operator is used to compare whether two objects have the same contents. d) The equals method and the operator are perform the same actions. 32) In the following, which is the interface? public class Classz extends ClassY implements ClassX a. Classx b. Class Y c, Class d. None of the above 33 To test whether an object belongs to a particular type, use a) the this reserved word. b) the subclassof reserved word. c) the instanceof operator. d the equals method. 34 installed classes so that they can have access to the surrounding Event listeners are often as fields, methods, and final variables. a) Inner b) Interface c) Abstract
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answers:

(27). (B) to allow authors to maintain ownership of their ideas.

The main idea of establishing the copyright law was to maintain the ownership. The author does so much research work and applies his/her creativity to do some writing. He/she may have invest so much time and money also in this task so no one should be able to use it without permission of the person who invented it. So this law protects the work.

(28). (C) Subschema

Subschema means the part of the schema which may or may not display the complete structure, some rules are applied before displaying the data so that only required things are displayed based on user as well.

(29). (C) JOIN

Join is the keyword which is used to merge 2 tables i.e. relations and display it as the single relation.

The join is applied to some common column on two relations and returns the results for which this column has same values in both the tables.

(30). (A) Abstract class

Abstract class can not have any object. This class shows the methods the objects are performed on, but how thie methods are performed, that is not mentioned so it gives abstract information and so it is abstract class.

(31). (B)

You can use both equals() and == for two objects in different way.
Both does not perform the same action.

== checks whether 2 objects points to i.e. references to the same object. If it is so, it returns true.

equals() method is used to compare the content of the object variables.

So, (B) is the correct option.

(32). (A) ClassX

In Java, class is always extended and the interface is always implemented.

So, the word extends specifies that ClassZ is extending ClassY functionality and ClassY is implementing ClassX which means ClassX is the interface whose methods are implemented in the ClassY.

(33). (C) the instanceof operator

instanceof operator is used to check whether the object is of particular class or not.

If you write obj instanceof c1, it returns true if 'obj' is the instance of class c1, otherwise it returns false.

(34). (A) Inner

The inner class can have access to the surrounding fields and methods as mentioned in the question so event listeners are written as inner classes.

Do comment if there is any question. Thank you. :)

Add a comment
Know the answer?
Add Answer to:
Copyright laws were established A. to allow authors to distribute their work while maintaining certain ownership...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Cloekt Cloek ( int, int, int) etTire(int, int, intjt void getHour printTime voia int int teqran...

    Cloekt Cloek ( int, int, int) etTire(int, int, intjt void getHour printTime voia int int teqran le (Clock)boolean 46. According to the UML class diagram above, which of the following is a. ClockO _ data member c. min d. Clock b. According to the UML class diagram above, which method is pablic and doesn't return anything? a getCopyO b. setTime(int, int, int) which ofthe following would be a default constructor ior he ein. Click does is te ips bro a....

  • SaffSpring 2019 Professor Question 1: Answer ALL of the following questions based on this provide...

    I need sub-questions e, f, g, h. SaffSpring 2019 Professor Question 1: Answer ALL of the following questions based on this provided int daya int montha Date int dnt int y day-d year class Event ring locatson eventbat Event (5tring , Dated ocatlon- event Date-d pubiie String toStringt String detalla-Locatlons"LocatlonDatesevent Date.day return detalia eventDate-year publie statie weld mai arg Event 2ew EventCBayan" hew Date1.3,20191 Systen.out peintil The event n (11.201,as scheduled-ee . 내 1 eentDate.yeari ystem.st-printeinte yatem.ost-printcin(e2) a) What is...

  • CSC311: For a while now we have been discussing reference-based data structures and we have seen...

    CSC311: For a while now we have been discussing reference-based data structures and we have seen reference-based implementations of the List, Stack, and Queue ADT. For this program, you will write a reference-based implementation of the Dictionary ADT as follows: a. A Dictionary ADT is an (abstract) data type composed of a collection of (key, value) pairs, such that each possible key appears at most once in the collection, promptly. b. Operations associated with this data type allow: a. the...

  • Must be in Java. Show proper reasoning with step by step process. Comment on the code...

    Must be in Java. Show proper reasoning with step by step process. Comment on the code please and show proper indentation. Use simplicity. Must match the exact Output. CODE GIVEN: LineSegment.java LineSegmentTest.java Point.java public class Point { private double x, y; // x and y coordinates of point /** * Creates an instance of Point with the provided coordinates * @param inX the x coordinate * @param inY the y coordinate */ public Point (double inX, double inY) { this.x...

  • Multiple Choice Multiple Choice Section 2.1 - 2.2 Introduction to Classes Here is the start of...

    Multiple Choice Multiple Choice Section 2.1 - 2.2 Introduction to Classes Here is the start of a class declaration: class foo { public: void x(foo f); void y(const foo f); void z(foo f) const; ... Which of the three member functions can alter the PRIVATE member variables of the foo object that activates the function? A. Only x can alter the private member variables of the object that activates the function. B. Only y can alter the private member variables...

  • Java Object Array With 2 Elements In 1 Object

    1. Create a UML diagram to help design the class described in Q2 below. Do this exercise before you attempt to code the solution. Think about what instance variables will be required to describe a Person class object; should they be private or public? Determine what class methods are required; should they be private or public?2. Write Java code for a Person class. A Person has a name of type String and an age of type integer.Supply two constructors: one will be...

  • Create a UML diagram to help design the class described in exercise 3 below. Do this...

    Create a UML diagram to help design the class described in exercise 3 below. Do this exercise before you attempt to code the solution. Think about what instance variables will be required to describe a Baby class object; should they be private or public? Determine what class methods are required; should they be private or public? 3. Write Java code for a Baby class. A Baby has a name of type String and an age of type integer. Supply two...

  • An array of class objects is similar to an array of some other data type. To...

    An array of class objects is similar to an array of some other data type. To create an array of Points, we write Point parray [4]; To access the object at position i of the array, we write parray [i] and to call a method on that object method, we write parray [i]. methodName (arg1 , arg2 , ...) ; To initialize an array of objects whose values are known at compile time, we can write Point parray [4] =...

  • I need help with the Implementation of an Ordered List (Template Files) public interface Ordered...

    I need help with the Implementation of an Ordered List (Template Files) public interface OrderedStructure { public abstract int size(); public abstract boolean add( Comparable obj ) throws IllegalArgumentException; public abstract Object get( int pos ) throws IndexOutOfBoundsException; public abstract void remove( int pos ) throws IndexOutOfBoundsException; public abstract void merge( OrderedList other ); } import java.util.NoSuchElementException; public class OrderedList implements OrderedStructure { // Implementation of the doubly linked nodes (nested-class) private static class Node { private Comparable value; private...

  • QUIZ 9 QUESTION 1 An enumeration contains enumerators that represent a. the functions for the enumeration...

    QUIZ 9 QUESTION 1 An enumeration contains enumerators that represent a. the functions for the enumeration b. the constants for the enumeration c. the operators for the enumeration d. the variables for the enumeration 1 points    QUESTION 2 Which of the following problems is not a problem with using unscoped enumerations? a. The code for using them is more complex. b. They allow you to accidentally convert an enumerator to an integer type. c. They can lead to name...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT