Quiz
AP CSA Midterm
Dieses Quiz enthält Fragetypen, die sich im gewohnten Player öffnen.
Fragen in diesem Quiz (89)
1Bit is another term for binary digit
- ARichtig
- BFalsch
2Source code is the bulk of the instructions of a program.
- ARichtig
- BFalsch
3The main factor affecting a program's readability is misspelled words.
- ARichtig
- BFalsch
4Java programs accomplish many tasks by sending messages to objects
- ARichtig
- BFalsch
5Arithmetic operators are examples of Java syntax.
- ARichtig
- BFalsch
6Strings can be combined in expressions with other strings or numbers using the concatenation operator.
- ARichtig
- BFalsch
7Use an "if" statement to instruct a program to execute one statement if the condition is true, and another if the condition is false.
- ARichtig
- BFalsch
8A program can output data to a file
- ARichtig
- BFalsch
9Each pixel is accessible by means of its (x, y) coordinates.
- ARichtig
- BFalsch
10Do not use a variable until you have assigned its initial value.
- ARichtig
- BFalsch
11In the hierarchy of Java classes, if class A is immediately above class B, A is the subclass or child of class B.
- ARichtig
- BFalsch
12Finding run time errors in a program is more difficult when there are several classes instead of just one.
- ARichtig
- BFalsch
13The purpose of a message is to pass information to a method.
- ARichtig
- BFalsch
14When evaluating an "if" statement, if there are two operands, there are four possibilities.
- ARichtig
- BFalsch
15Indentation is a convention that indicates relationship and precedence to the compiler.
- ARichtig
- BFalsch
16The presence of looping statements increases the challenge of designing good test data.
- ARichtig
- BFalsch
17The Thermometer class stores the temperature internally in Fahrenheit.
- ARichtig
- BFalsch
18The print and println methods do not generally display all of the digits in floating-point numbers.
- ARichtig
- BFalsch
19[blank_start]Byte code[blank_end] is the machine language for an imaginary Java computer.
- AByte code
20Syntax errors is another term for compile-time errors
- ARichtig
- BFalsch
21An object must be instantiated before use
- ARichtig
- BFalsch
22Java uses a technique called [blank_start]casting[blank_end] to convert one data type to another in arithmetic expressions
- Acasting
23An object can respond to a message only if its class implements a corresponding method
- ARichtig
- BFalsch
24[blank_start]Comments[blank_end] are sentences inserted into a program in such a manner that the compiler ignores them
- AComments
25When a program responds more slowly than expected, it is reasonable to assume that it is stuck in an [blank_start]infinite[blank_end] loop.
- Ainfinite
26An object must have its own unique identity, which distinguishes it from all other objects in the computer's memory.
- ARichtig
- BFalsch
27A variable of a _____ type is thought of as a box that contains a pointer to an object
- Areference
- Bprimitive
28When a new class is created, it includes the characteristics of its superclass through a process called inheritance.
- ARichtig
- BFalsch
29An argument is a value passed to a method when it is invoked
- ARichtig
- BFalsch
30A boolean variable can be either true or false
- ARichtig
- BFalsch
31In Java, the ________ nested statement provides an alternative to the extended if statement
- Anested
- Bswitch
32A string is an immutable object; once it is created, its length cannot change and its characters cannot be modified.
- ARichtig
- BFalsch
33The key feature of a formatted table is that each column has a designated width, and all the values in a column are justified in the same manner
- ARichtig
- BFalsch
34A data model class is responsible for initializing and managing the data used by the program
- ARichtig
- BFalsch
35Each sort method and its helper methods should be defined as _____ static.
- Aprivate
- Bpublic
36In a linear search, the loop breaks if the target is found
- ARichtig
- BFalsch
37When removing an item from an array, you must decrement the _______ size by one
- Aphysical
- Blogical
38In the _______ scheme, each character is represented as a pattern of 8 bits.
- AFloating point
- Bmantissa
- Cwaveform
- DASCII
39Which of the following is NOT true about Java?
- AJava is an object-based language
- BJava creates programs that are portable
- CThe Java compiler translates into machine language
- DJava supports threads
40Some JVM's translate byte code instructions into machine language when they are first encountered, using the ______ techniques.
- AIDE
- BJIT
- Cvariable
- Dinterpreter
41Which of the following is NOT true about variables?
- ATheir values can change during execution
- BBefore using a variable for the first time, the program must declare its type
- CThe type of data a variable contains can be changed
- DAll of the above
42Ari uses the expression (15 + 9) / (3 + 1) * 2 to yield the value _____.
- A3
- B12
- C20
- DThe expression is not valid
43Caroline uses the ________ character to include quotation marks in the welcome message.
- Aescape
- Boutput
- Cconcatenation
- Dforward slash
44In a(n) ______ controlled loop, the continuation condition is tested at the top of the loop on each pass.
- Atask
- Bentry
- Ccount
- DAll of the above
45An I/O exception is in the category of ______ exceptions.
- Athrown
- Bchecked
- Crun time
- Doverloading
46A typical loop has four component parts, including all of the following EXCEPT _______ statements
- Ainitializing
- Bbody
- Cupdate
- Dverification
47All classes have a similar structure, consisting of all of the below parts EXCEPT _______.
- Athe class' name and some modifying phrases
- Ba description of the instance variables
- Cone or more constructor methods
- Dmethods that specify how an object responds to variables
48The process of short-circuit evaluation _____.
- Aidentifies potential run-time errors
- Bidentifies potential logic errros
- Cstops the evaluation of a Boolean expression once it knows the value
- Dcreates robust programs
49At minimum, test data should try to achieve ______.
- Aboundary conditions
- Bcomplete code coverage
- Cextreme conditions
- Dshort-circuit evaluation
50Use the _____ operator to wrap the direction of a moving object if it is greater than 360 degrees.
- A+
- B>
- C||
- D%
51The _____ method is used to apply formatting.
- Aformatchar
- BprintIn
- Cenhancetext
- Dprintf
52The _____ is a set of classes that are listeners
- Amodel
- Bapplication
- Cview
- Dcontroller
53The _____ is a set of classes that sets up the other elements in a main method, so as to provide an entry point for running a Java program
- Amodel
- Bapplication
- Cview
- Dcontroller
54When inserting an item into an array, assume that ______
- A0<=target index=logical size
- B0<target index <=logical size
- C0<=target index <logical size
- D0<=target index <=logical size
55Before sending the comapreTo message to an arbitrary object, the object must be cast to _____.
- AObject
- BComparable
- CEvaluate
- DSearch
56[blank_start]Java[blank_end] is the common programming language of many of today's devices, including music players and PDAs.
- AJava
57The [blank_start]octal[blank_end] system uses base 8
- Aoctal
58[blank_start]Java[blank_end] is the fastest growing programming language in the world
- AJava
59A [blank_start]hacker[blank_end] is a programmer who breaks into computer systems in an unauthorized way.
- Ahacker
60Items in a program whose values do not change are called [blank_start]literal[blank_end]
- Aliteral
61A [blank_start]arithmetic[blank_end] expression consists of operands and operators.
- Aarithmetic
62The [blank_start]decrement[blank_end] operator decreases a variable's value by one.
- Adecrement
63Each pass through a loop is called an [blank_start]iteration[blank_end].
- Aiteration
64A [blank_start]nested[blank_end] control statement is located inside another control statement.
- Anested
65[blank_start]Body[blank_end] statements execute within each pass and implement the calculation in question.
- ABody
66Image-manipulation packages allow you to transfer images from file to working storage in [blank_start]RAM[blank_end]
- ARAM
67The set of an object's methods available to users is called its [blank_start]interface[blank_end].
- Ainterface
68A [blank_start]class[blank_end] is a software package or template that describes the characteristics of similar objects.
- Aclass
69An object has [blank_start]state[blank_end], which is another way of saying that at any particular moment its instance variables have particular values.
- Astate
70Messages that change an object's state are called [blank_start]mutator[blank_end].
- Amutator
71A [blank_start]local[blank_end] variable is declared in order to have temporary working storage for data in a method.
- Alocal
72A [blank_start]robust[blank_end] program tolerates errors in user inputs and recovers gracefully.
- Arobust
73A [blank_start]query[blank_end]-controlled input technique asks the user if there are more inputs before continuing.
- Aquery
74A [blank_start]menu[blank_end]-driven program begins by displaying a list of options from which the user selects one.
- Amenu
75The [blank_start]comma[blank_end] format flag is used to show decimal separators.
- Acomma
76A [blank_start]field[blank_end] consists of a fixed number of columns within which the characters of a data value can be placed.
- Afield
77The bubble sort algorithm involves a [blank_start]nested[blank_end] loop structure.
- Anested
78When inserting an item into an array, you must shift the items from the target index to the [blank_start]logical[blank_end] end of the array up by one position.
- Alogical
79A [blank_start]binary[blank_end] search works well for elements that are in ascending order.
- Abinary
80An example could be a continuous stream of stock quotes.
- AApplet
- BGUI
- CIDE
- DPane
- EByte code
81Windows are often organized into many of these.
- AApplets
- BGUI
- CIDE
- DPane
- EByte code
82To run this, you must install a JVM on the computer
- AApplet
- BGUI
- CIDE
- DPane
- EByte code
83Eclipse is an example.
- AApplet
- BGUI
- CIDE
- DPane
- EByte code
84Familiar interface for PC users.
- AApplet
- BGUI
- CIDE
- DPane
- EByte code
85The name, type, and number of parameters.
- AVariable declaration statement
- BKeyword
- C5.301E5
- D(0, 0)
- EMethod signature
86What a program must use before using a variable for the first time.
- AVariable declaration statement
- BKeyword
- C5.301E5
- D(0, 0)
- EMethod signature
87A example of scientific notation.
- AVariable declaration statement
- BKeyword
- C5.301E5
- D(0, 0)
- EMethod signature
88A reserved word
- AVariable declaration statement
- BKeyword
- C5.301E5
- D(0, 0)
- EMethod signature
89The origin in a screen coordinate system.
- AVariable declaration statement
- BKeyword
- C5.301E5
- D(0, 0)
- EMethod signature
Informationen
- Beschreibung
- Quiz am AP CSA Midterm, erstellt von Amanuel Teshome am 12/03/2018.
- Autor
- Amanuel Teshome
- Sprache
- English
- Aufrufe
- 6
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz