subject

Question 1 What attributes do all real world objects have?

a. Identity, State, and Behavior

b. State and Behavior

c. Size and Weight

d. Objects have existance

Question 2
What attributes do all Software objects have?

a. Software objects have RAM, ROM, and processors.

b. Software objects have identity, state, and behavior.

c. Software objects have variables and storage.

d. Software objects are made of computer components.

Question 3
What is the defining characteristic of a von Neumann computer?

a. RAM is used for data and ROM is used for programs.

b. It has both a processor chip and memory

c. General purpose memory is used to store both programs and data.

d. It uses general purpose registers for arithmetic.

Question 4
When you run a Java program that has a class name someClass , what is the first method that starts?

a. The main() method of someClass.

b. The run() method of someClass.

c. The someClass method.

d. The applet method.

Question 5
What is a class?

a. A class is a section of computer memory containing objects.

b. A class is a section of the hard disk reserved for object oriented programs.

c. A class is the part of an object that contains the variables.

d. A class is a description of a kind of object.

Question 6
What is another name for creating an object?

a. instantiation

b. insubordination

c. initialization

d. inheritance

Question 7
What are the static variables and methods of a class?

a. Variables and methods that form the foundation of each object of that class.

b. Variables and methods that belong to all objects in the computer system.

c. Variables and methods that belong only to the object of that class.

d. Variables and methods that are part of the class definition, but not of its objects.

Question 8
Which of the following invokes the method length() of the object str and stores the result in val?

a. val = str. length();

b. val = length. str();

c. val = length().str;

d. val = length(str);

Question 9
How many objects of a given class may be constructed in an application?

a. Only one per constructor.

b. As many as the application asks for.

c. Only one per class.

d. One object per variable

Question 10
In this section you learned that their are two ways to create String objects:

using the new constructor during object declaration.
using a String literal during object declation.
Which is the correct way to declare a String object using a String literal?

a. String alpha("Hello Quiz!");

b. String = "Hello Quiz!";

c. String alpha = new "Hello Quiz!";

d. String alpha = "Hello Quiz!";

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:00
Fast sportcars the top speeds of sportscars, given in miles per hour, are: 155 mph bmw m5 217 mph lamborghini aventador spyder 205 mph ferrari 488 205 mph nissan gtr 197 mph chevrolet corvette stingray zr1 258 mph bugatti veyron supersport 195 mph dodge viper 270 mph hennessey venom 155 mph bmw m3 195 mph mercedes sl given: topspeeds=[155; 217; 205; 205; 197; 258; 195; 270; 155; 195]; carnames=string(["bmw m5" "lamborghini aventador spyder" "ferrari 488" "nissan gtr" "chevrolet corvette stingray zr1" "bugatti veyron supersport" "dodge viper" "hennessey venom" "bmw m3" "mercedes sl"]); the variable is a rectangular array. write a function called selectcars to identify cars with the top speed within a given range, and display the identified names. the selected cars speed will be in a range given by lowerbound < speed < upperbound. inputs to the function selectcars are: a column array os all car top speeds named topspeeds, the corresponding chara
Answers: 2
question
Computers and Technology, 22.06.2019 23:00
Suppose s, t, and w are strings that have already been created inside main. write a statement or statements, to be added to main, that will determine if the lengths of the three strings are in order by length, smallest to largest. that is, your code should determine if s is strictly shorter than t, and if t is strictly shorter than w. if these conditions hold your code should print (the boolean value) true. if not, your code should print false. (strictly means: no ties) example: if s, t, and w are "cat", "hats", and "skies" your code should print true - their lengths are 3-4-5; but if s, t, and w are "cats" "shirt", and "trust", then print false - their lengths are 4-5-5 enter your code in the box below
Answers: 2
question
Computers and Technology, 25.06.2019 11:30
Janet has created an original musical composition, recorded it on a cd and registered her work online. which law will protect her work from any kind of infringement? a. copyright b. trademark c. patent d. trade secret
Answers: 2
question
Computers and Technology, 25.06.2019 12:00
The print command in the powerpoint is found in the? file tab home tab design tab review tab
Answers: 1
You know the right answer?
Question 1 What attributes do all real world objects have?

a. Identity, State, and Beh...
Questions
question
Mathematics, 27.01.2020 23:31
question
Mathematics, 27.01.2020 23:31
question
Chemistry, 27.01.2020 23:31
Questions on the website: 13722361