stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
1A Review Variables - Methods Flashcards | StudBud
Explore
/
1A Review Variables - Methods
1A Review Variables - Methods
25 terms
·
StudBud Administration
·
68 plays
This is a review of basic Java concepts in the Computer Programming 1A class as of 3-7-2016.
Flashcards
25 cards
F
Practice quiz
P
Host live
L
Questions
25
Answers
1
In simplistic terms, two-dimensional array can be described as:
an array full of arrays.
an array full of goobers.
an variable full of arrays.
an array full of variables.
2
Which of the following
IS NOT
a primitive variable in Java?
float
short
String
boolean
3
In simplistic terms, an array can be thought of as:
a variable full of variables
a variable full of frogs
an application with many different types of variables.
Java code that looks like a batoid fish.
4
What is the value of
values[1]
in the image?
30
42
10
20
5
What is the name of the string in the 'Pickers' class, in the code in the image?
name
age
picker1
speak
6
What is the name of the method inside of the 'Pickers' class in the code in the image?
name
main
picker1
speak
7
In the code from the image below, what is the value of '
companions[0]
'?
Jack
Donna
Rose
Martha
8
What type of variable can contain the following value:
3.1416
?
short
double
int
boolean
9
In the code in the image, what is the value of '
fruits[3]
'?
banana
grapefruit
kiwi
pear
10
What of the following
IS
a primitive variable?
int
String
array
goober
11
What does the 'speak' method inside of the 'Pickers' class do, in the code in the image?
outputs the text, "Hello!"
outputs the number 42
outputs the number 24
outputs the text, "Joe Schmoe"
12
What is the value of the integer in the image?
goober
42
88
false
13
How dimensions would the following array have: '
fob[][][][][]
'?
72
4
42
5
14
What type of loop does the code in the image contain?
while loop
for loop
array loop
goober loop
15
How many classes are in the code in the image?
30
2
20
3
16
What is the name of the method inside of the 'Apples' class in the code in the image?
main
age
speak
name
17
What will the output be from the code in the image below.
10
loop
true
20
18
What is the value of the float in the image?
42
324.3f
127
7.3243
19
What will the output be from the code in the image below.
7
Hello
text
42
20
In the code in the image, what is the value of '
grid[2][1]
'?
7
4
3
2
21
What does the code in the image do?
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.
It scans an image and displays the text 5 times.
22
The built-in class in Java used to get user input is called:
Tardis
String
Inputter
Scanner
23
What does 'i++' mean?
The value of i equals 2.
Add 1 to the variable i.
Double the value of i.
Add i to the variable twice.
24
What does the code in the image do?
Outputs the six numbers from an array called 'goobers'.
Outputs the three numbers from an array called 'numbers'.
Outputs the five strings from an array called 'text'.
Outputs the three numbers from an array called 'integers'.
25
The code in the image is using Scanner to get what kind of information?
float
text
decimal
integer