In OOP, each ________ contains both the data and processing operations necessary to perform a task.

A. structured program
B. object
C. unstructured program
D. content component


Answer: B

Computer Science & Information Technology

You might also like to view...

question mark (?) after an element in a DTD means that:

a) there are many occurrences of that item. b) there could be any number of occurrences of that item. c) the item can appear at most once. d) All of the above

Computer Science & Information Technology

In OOP terminology, an object's member variables are often called its ________, and its member functions are sometimes referred to as its ________.

A) values, operators B) data, activities C) attributes, activities D) attributes, methods E) values, activities

Computer Science & Information Technology

o create an app in NetBeans, you must first create a project, i.e., a group of related ________, such as code and images that make up an app.

a. apps b. applications c. controls d. files

Computer Science & Information Technology

Because all possible branch conditions can be synthesized from the existing flags, no new branches are required. However, special?purpose conditions could be used to speed up processing. Branch on odd or even parity could be used in situations involving error?detecting and error?correcting codes (parity is the modulo?two sum of the 1s in a word; parity is even if the number of 1s is zero or even and parity is odd if the number of 1s is odd). A condition code bit could be used in word?processing to indicate whether the current character was alphanumeric or not (i.e., it was a valid letter/number or punctuation/formatting). That would make it easier to determine the end of a word. A branch at random could be a useful mechanism for simulating random events. The probability could

even be scaled; for example, branchRandom r0 could be branch at random with the probability specified by r0 from 0 to 1. External signals could be used for branching; for example, bpin1 could mean branch if the signal at pin 1 is high (this could be used for I/O or system tests). You could have btemp r0 which means branch if the temperature of the CPU core is greater than that specified by r0. This could be used to control processor temperature. What will be an ideal response?

Computer Science & Information Technology