stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Fontys Venlo - Programming Concepts - week 3 Flashcards | StudBud
Explore
/
Fontys Venlo - Programming Concepts - week 3
Fontys Venlo - Programming Concepts - week 3
10 terms
·
StudBud Administration
·
83 plays
#fontys #fhtenl #prc1 #java #week3
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
What does the following operator mean? Operator:
||
EQUAL TO
MAYBE
OR
AND
2
How to correctly define a constant named
PI
?
final double PI = 3.14159;
double PI = 3.14159;
const final double PI = 3.14159;
const double PI = 3.14159;
3
What will be printed out on the Console if you run the following code (
see picture
) ?
true true false false
false true false true
false false true true
true false true false
4
What will be printed out on the Console if you run the following code (
see picture
) ?
OLD and YOUNG Person
YOUNG Person
OLD Person
YOUNG and OLD Person
5
What is the output of the following code
(see image)
5.5
1
10
2
6
How can you correctly set up a Scanner for reading input from the console?
Scanner input = new Scanner(scan);
Scanner input = new Scanner(System);
Scanner input = new Scanner(System.in);
Scanner input = new Scanner(readConsole);
7
What will be printed out on the Console if you run the following code (
see picture
) ?
Jabba
Jedi
Padawan
Han solo
8
What does the following operator mean? Operator:
&&
IF
THEN
AND
OR
9
Which would be the BEST data type choice for the following value:
9.732
double
String
int
Integer
10
Which data type is
NOT
a primitive integer type?
byte
float
short
long