Professional Documents
Culture Documents
Quiz 3 - 2
Quiz 3 - 2
Tokens
True
The Scanner class considers space as the default delimiter while reading the input.
Klasa Scanner razmatra prostor kao zadani graničnik dok čita unos.
True
double
int
long
What is parsing?
Što je raščlanjivanje?
The Java compiler automatically promotes byte, short, and chars data type values to int data type.
Java prevodilac automatski promiče vrijednosti tipa podataka bajtova, kratkih i znakovnih u int tip podataka.
True
False
Given the expression:
Hello World
True
In Java, char is a primitive data type, while String is an object data type.
U Javi, char je primitivni tip podataka, dok je String objektni tip podataka.
True
True
False
// Fragment 2
int input = Integer.parseInt(JOptionPane.showInputDialog("??")) + 1;
True
The print() method prints to the console and automatically creates a line.
False
String concatenation can be done with String variables and String Literals
A character preceded by backslash is called an escape sequence
True
NumberFormatException
When the result of an expression is assigned to a temporary memory location, what is the size of
memory allocated?
Kada je rezultat izraza dodijeljen privremenoj memorijskoj lokaciji, koja je veličina dodijeljene memorije?
Automatic promotion from smaller data type to a larger data type is not allowed in Java.
Automatsko promicanje s manje vrste podataka na veću vrstu podataka nije dopušteno u Javi.
False
True
True
A double with the value of 20.5 is cast to an int. What is the value of the int?
20
You write a statement that assigns a value to a String variable as shown below.
True