stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Java Chapter 1&2 Flashcards | StudBud
Explore
/
Java Chapter 1&2
Java Chapter 1&2
32 terms
·
StudBud Administration
·
66 plays
A #programming Quiz to review concepts introduced in #java Chapter 1 & 2.
Flashcards
32 cards
F
Practice quiz
P
Host live
L
Questions
32
Answers
1
All java programming statements must end with a _______?
comma
semicolon
period
parenthesis
2
The command used to execute a java application?
java
javax
execute
run
3
An escape sequence always begins with a?
=
\
e
\\
4
Envisioning program components as object similar to real-world objects is _____?
procedural programming
object-oriented programming
command-line OS
machine language
5
You must compile classes written in Java into _____?
statements
object code
bytecode
source code
6
Java source code is saved using what extension?
.class
.java
.src
.text
7
Named computer memory locations are called?
variables
compilers
addresses
locations
8
Values that are attached end to end?
operand
concatenated
float
double
9
A built-in Java class that lets you store and manipulate character strings?
float
double
string
concatenated
10
Which of the following produces the output "abcdef".
System.out.println(abcdef)
System.out.println(a"\nbc\ndef");
System.out.println("eieio");
System.out.println("abcdef");
11
Which of the following is NOT a primitive data type?
constant
mutable
volatile
variable
12
A value that cannot be changed?
scope
variable
integer
constant
13
A value used in an arithmetic statement?
double
string
operand
float
14
An instance of a class?
method
procedure
object
class
15
The "equal to" relational operator is_____?
=
!!
!=
==
16
Number that contains decimal positions?
variable
float
scope
integer
17
Languages that let you use a variety of descriptive terms (read, write, add)?
machine
procedural
object-oriented
high-level
18
What executes the various statements & procedures in a program to produce a desired result?
logic
syntax
procedure
program
19
A self-contained block of program code?
applets
integer
passing
method
20
All Java applications must have a method named?
Hello()
method()
main()
java()
21
In Java, what is the value of 3+7*4+8-9?
33
39
40
30
22
The area where a data item is visible to a program & can be referred to using an identifier?
constant
scope
integer
variable
23
Which of the following elements is not required in a variable declaration?
a semicolon
an assigned value
a type
an identifier
24
A data type that can hold up to 15 significant digits of accuracy?
operand
double
string
float
25
Number that is whole?
scope
float
variable
integer
26
The most basic circuit-level language that is mostly on-off switches?
java
high-level language
machine language
c++
27
When you perform arithmetic with values of diverse types, Java_____?
implicitly converts the values to a unifying type
issues an error message
requires you to declare the values as a unifying type
implicitly converts the values to the first type
28
Java supports three types of comments: javadoc, ________ & _________?
line, block
string, literal
constant, variable
single, double
29
Which of the following data types can store a value in the least amount of memory?
int
short
byte
long
30
If you attempt to add a float, an integer, and a byte, the result will be an _______?
byte
float
integer
error
31
The rules of a programming language?
logic
objects
syntax
format
32
After you write the source code and save it, what do you do to the file next?
Interpret then Compile
Compile then Resave
Compile then Save
Compile then Interpret