Computers and Technology

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!";

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:20, babyrocks7300
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
image
Computers and Technology, 24.06.2019 17:40, orlandokojoasem1234
Write an assembly language program to input a string from the user. your program should do these two things: 1. count and display the number of words in the user input string. 2. flip the case of each character from upper to lower or lower to upper. for example if the user types in: "hello there. how are you? " your output should be: the number of words in the input string is: 5 the output string is : hello there. how are you?
Answers: 2
image
Computers and Technology, 25.06.2019 06:00, carolinagarciap8kgmi
In 2 to 3 sentences, describe how you would change the background of a group of cells
Answers: 1
image
Computers and Technology, 25.06.2019 08:00, shadowangel84
Is skill in using productivity software, such as word processors, spreadsheets, database management systems, and presentation software. computer literacyinformation literacybusiness literacynetwork literacy
Answers: 1
Do you know the correct answer?
Question 1 What attributes do all real world objects have?

a. Identity, State, and Beh...

Questions in other subjects:

Konu
Mathematics, 21.01.2020 06:31