Java

¡Supera tus tareas y exámenes ahora con Quizwiz!

a. programmer b. decipherer C. COMPILER d. syntax detector

A ____ translates high-level language statements into machine code.

a. any decimal numberd. b. any character C. THE VALUE TRUE OR FALSE d. any whole number

A boolean variable can hold

a. addition within parentheses b. multiplication c. remainder D. SUBTRACTION

According to the rules of operator precedence, when division occurs in the same arithmetic statement as ____, the division operation always takes place first.

a. interpret, compile b. interpret, execute c. compile, execute D. COMPILE, INTERPET

After you write and save a Java application file, you ____ and then ____ it.

a. period b. comma C. SEMICOLON d. closing parenthesis

All Java programming statements must end with a ____.

a. colon B. BACKSLASH c. equal sign d. forward slash

An escape sequence always begins with a(n)

A. OBJECT b. method c. class d. procedure

An instance of a class is a(n) ____.

a. curly braces B.PARENTHESE c. double quotation marks d. single quotation marks

Arguments to methods always appear within ____.

A. BALANCE = 9000; b. balance = 9000.5; c. balance = 9,000; d. balance = '9000';

Assuming you have declared balance to be a variable of type int, which of the following is a valid assignment statement in Java?

a. procedural programming b. command-line operating systems c. machine languages D. OBJECT-ORIENTED PROGRAMMING

Envisioning program components as objects that are similar to concrete objects in the real world is the hallmark of ____.

A. FLOAT b. error message c. byte d. int

If you attempt to add a float, an int, and a byte, the result will be a(n)

a. Java Virtual Reality b. company's mainframe c. Machine of Java D. JAVA VIRTUAL MACHINE

Java does not execute instructions on a computer directly, but rather on the ____.

a. oriented B. NEUTRAL c. specific d. abstract

Java is architecturally ____.

a. string, literal b. constant, variable C. LINE, BLOCK d. single, multiple

Java supports three types of comments: ____, ____, and javadoc.

a. appellations B. VARIABLES c. compilers d. addresses

Named computer memory locations are called ____.

a. notes B. COMMENTS c. commands d. classes

Non-executing program statements that provide documentation are called program ____.

A. == b. != c. !! d. =

The "equal to" relational operator is

a. JDK b. index.html file C. API d. SDK

The Java ____ contains information about how to use every prewritten Java class, including lists of all the methods you can use with the classes.

A. TOKENS b. characters c. arguments d. parameters

The Scanner class contains methods that retrieve values, referred to as ____, from an input device.

a. execute b. run c. javac D. JAVA

The command to execute a compiled Java application is ____.

A. PROCEDURES b. constants c. logistics d. variables

The individual operations used in a computer program are often grouped into logical units called ____.

a. Java b. a high-level language c. C++ D. MACHINE LANGUAGE

The most basic circuitry-level computer language, which consists of on and off switches, is ____.

A. MODULUS OPERATOR b. is represented by a forward slash c. provides the quotient of integer division d. must follow a division operation

The remainder operator

a. format b. logic c. objects D. SYNTAX

The rules of a programming language constitute its ____.

a. scientific notation b. scientific digits c. double precision D. SIGNIFICANT DIGITS

The term ____ refers to the mathematical accuracy of a value.

a. methods b. orientation c. conditions D. STATE

The values of an object's attributes also are known as its ____.

a. Java.in b. input c. System.input D. SYSTEM.IN

To create interactive programs that accept input from a user, you can use

a. export B. IMPORT c. access d. bridge

Using a(n) ____ statement, Java allows you to access built-in classes that are contained in a group of classes called a package.

a. variable B. CONSTANT c. volatile d. mutable

When data cannot be changed while a program is running, the data is

a. issues an error message b. requires you to explicitly convert the values to a unifying type c. implicitly converts the values to the type of the first operand D. IMPLICYTY CONVERTS THE VALUES TO A UNIFYING TYPE

When you perform arithmetic with values of diverse types, Java

a. resave b. reinterpret C. RECOMPILE d. rename

When you run your program you don't see evidence of the changes you just made to it. You realize that you forgot to ____ the program.

a. char aChar == 'W'; B. char aChar = "W"; c. char aChar = 5.5; d. char aChar = '*';

Which assignment is correct in Java?

a. int B. BYTE c. long d. float

Which of the following data types can store a value in the least amount of memory?

A. DOUBLE b. single c. scientific d. bit

Which of the following is a floating-point data type that Java supports?

A. SECTOR b. int c. boolean d. byte

Which of the following is not a primitive data type in Java?

a. := B. = c. == d. ::

Which of the following is not a primitive data type in Java?

a. a semicolon B. AN ASSIGNED VALUE c. a type d. an identifier

Which of the following is not a primitive data type in Java?

a. Yes b. No c. Cancel D. TRY AGAIN

Which of the following is not an option that can be displayed with a confirm dialog box?

A. .JAVA b. .src c. .class d. .txt

You save text files containing Java source code using the file extension ____.

A. TYPE CAST b. format c. type set d. mistake

You use a ____ to explicitly override an implicit type.


Conjuntos de estudio relacionados

Anatomy Chapter 10. Endocrine system

View Set

Chapter 16: Integrating Wireless Technology in Business

View Set