• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/20

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

20 Cards in this Set

  • Front
  • Back
Which of the following is true in object oriented programming?

a. All classes are applications
b. All applications are system applications
c. All applications are programs
d. All classes contain multiple methods.
C
In object oriented programming, a main method:

a. Is automatically created by the compiler
b. Is the name of the method that executes first in an application
c. Is the method that does most of the work or contains the most instructions
d. Exists in every class
B
In object oriented programming, the identifier for a class, method or variable:

a. Always uses all lowercase letter
b. Always begins with a lowercase letter
c. Can contain white space
d. None of the above
C
A set of parentheses always follows a _____.

a. Method name
b. Class name
c. Variable Name
d. All of the above
A
Which of the following is a literal numeric constant?

a. 12
b. myNumber
c. "Fourteen"
d. All of the above
A
What does a declaration provide for a variable?

a. A name
b. A data type
c. Both of the above
d. None of the above
C
A variable's data type describes all of the following except _____.

a. What values the variable can hold
b. How the variable is stored in memory
c. What operations can be performed with the variable
d. The parts of the program in which the variable can be used.
D
In many languages, the value stored in an uninitialized variable is:

a. Garbage
b. Null
c. Compost
d. Its identifier
B
The value "house" is a _____.

a. Numeric variable
b. Numeric constant
c. String variable
d. String constant
D
If size has been declared to be a string variable, which of the following is legal?

a. Size = 6
b. Size = "six"
c. Size = "6"
d. Two of the above
D
Which of the following statements is true if a declaration has been made as follows: num count

a. count is an initialized variable
b. count is a numeric variable
c. count is a literal
d. all of the above
B
Which of the following statements is true if a declaration has been made as follows: num count = 9

a. count is an uninitialized variable
b. count is a numeric variable
c. count is a literal
d. all of the above
B
The assignment operator _____.

a. is a binary operator
b. has left-to-right associativity
c. is most often represented by a colon
d. two of the above
A
Which of the following is true about arithmetic precedence?

a. Multiplication has higher precedence than division.
b. Operators with the lowest precedence always have left-to-right associativity.
c. Division has higher precedence than subtraction.
d. all of the above
C
Which of the following evaluates to 10?

a. 3 + 5 * 2
b. 5 + 20 / 4
c. 25 / 2 + 3
d. all of the above
B
What is the value of the expression
8 - 4 * 6 / 4?

a. 2
b. 4
c. 6
d. 8
A
Program comments are _____.

a. required to create a runnable program
b. a form of external documentation
c. both of the above
d. none of the above
D
Which of the following is valid advice for naming variables?

a. To save typing, make most variable names one or two letters.

b. To avoid conflict with names that others are using, use unusual or unpronounceable names.

c. To make names easier to read, separate long phrases by using underscores or capitalization for each new word.

d. To maintain your independence, shun the conventions of your organization.
C
A message that asks a user for input is a _____.

a. comment
b. prompt
c. echo
d. declaration
B
Which of the following is the list of the three structures used in structured programming?

a. sequence, skip, and go
b. selection, choice, and if-then
c. sequence, selection, and loop
d. selection, loop, and method
C