stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Review: Computer Programming 1A, 04-01-16 Flashcards | StudBud
Explore
/
Review: Computer Programming 1A, 04-01-16
Review: Computer Programming 1A, 04-01-16
35 terms
·
StudBud Administration
·
45 plays
This is a review of basic Java concepts in the Computer Programming 1A class as of 4-1-2016.
Flashcards
35 cards
F
Practice quiz
P
Host live
L
Questions
35
Answers
1
What will the output be from the code in the image below.
10
true
20
loop
2
The methods in the image are examples of:
setters
pacifiers
goobers
constructors
3
What is the value of the integer in the image?
88
false
42
goober
4
The last line that would be outputted by running the code from the image would be:
Goober 10
Hello 0
Hello 10
Hello 9
5
Using the code from the image, what is the value of numbers[2] is:
7
6
5
0
6
In the code in the image, what is the value of '
grid[2][1]
'?
2
4
3
7
7
True or False: Booleans CANNOT contain mathematical expressions.
False
True
8
What does 'i++' mean?
The value of i equals 2.
Double the value of i.
Add i to the variable twice.
Add 1 to the variable i.
9
In simplistic terms, two-dimensional array can be described as:
an array full of goobers.
an array full of variables.
an variable full of arrays.
an array full of arrays.
10
The code in the image is using Scanner to get what kind of information?
integer
decimal
text
float
11
How many dimensions does the following array have?
5
7
15
10
12
What does the 'speak' method inside of the 'Pickers' class do, in the code in the image?
outputs the number 42
outputs the text, "Hello!"
outputs the text, "Joe Schmoe"
outputs the number 24
13
What is the name of the string in the 'Pickers' class, in the code in the image?
picker1
age
name
speak
14
How dimensions would the following array have: '
fob[][][][][]
'?
42
4
72
5
15
Using the code from the image, which item contains the value "kiwi"?
fruits[3]
fruits[1]
fruits[2]
fruits[4]
16
What type of loop does the code in the image contain?
while loop
array loop
goober loop
for loop
17
In the code in the image, what is the value of '
fruits[3]
'?
pear
kiwi
grapefruit
banana
18
What is the name of the method inside of the 'Pickers' class in the code in the image?
name
main
speak
picker1
19
What will the output be from the code in the image below.
42
text
Hello
7
20
The built-in class in Java used to get user input is called:
Inputter
Scanner
String
Tardis
21
What of the following
IS
a primitive variable?
String
int
goober
array
22
The methods in the image are called:
goobers
getters
pickers
setters
23
What type of variable can contain the following value:
3.1416
?
int
short
boolean
double
24
The item in the image called "values" is:
a class
an array
a goober
a method
25
"toString()" is a type of:
class
method
goober
variable
26
What does the code in the image do?
It scans an image and displays the text 5 times.
It outputs the text, 'Scooby Doobie Doo.'
It keeps asking for a number until a 5 is entered.
It asks the user to enter a number other than 5.
27
What is the value of
values[1]
in the image?
20
30
42
10
28
In order to have the output be "Yay!!!", what does the end user have to enter?
10
5
15
2
29
How many classes are in the code in the image?
2
20
3
30
30
Which of the following
IS NOT
a primitive variable in Java?
float
String
boolean
short
31
What is the name of the method inside of the 'Apples' class in the code in the image?
main
speak
name
age
32
In the code from the image below, what is the value of '
companions[0]
'?
Martha
Jack
Donna
Rose
33
What does the code in the image do?
Outputs the six numbers from an array called 'goobers'.
Outputs the five strings from an array called 'text'.
Outputs the three numbers from an array called 'integers'.
Outputs the three numbers from an array called 'numbers'.
34
What is the value of the float in the image?
324.3f
42
127
7.3243
35
In simplistic terms, an array can be thought of as:
a variable full of frogs
Java code that looks like a batoid fish.
a variable full of variables
an application with many different types of variables.