IT Quiz Study Guide

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Which assignment is correct in Java?

char aChar = '*';

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

compiler

When data cannot be changed after a class is compiled, the data is ____________.

constant

Which assignment is correct in Java?

double value = 2.12;

A boolean variable can hold any character.

false

All Java programming statements must end with a period.

false

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

false

In a Java program, you must use forward slashes to separate classes, objects, and methods.

false

The assignment operator in Java is ==

false

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

false

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

float

When you perform arithmetic with values of diverse types, Java ____________.

implicitly converts the values to a unifying type

The remainder operator ____________.

is represented by %

The command to execute a compiled Java application is ________________.

java

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

line, block

The most basic circuitry-level computer language is ________________.

machine language

All Java applications must have a method named ________________.

main()

Java is architecturally ________________.

neutral

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

object

Arguments to methods always appear within ________________.

parentheses

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

sector

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

shoeSize = 9;

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

state

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

subtraction

The rules of a programming language constitute its ________________.

syntax

Languages that let you use an easily understood vocabulary of descriptive terms, such as read, write, or add, are known as high-level languages.

true

Nonexecuting program statements that provide documentation are called comments.

true

The value 137.68 can be held by a variable of type float.

true

You must compile classes written in Java into bytecode.

true

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

true

You use a type cast to explicitly override an implicit type.

true

Named computer memory locations are called ________________.

variables

In Java, what is the value of 3 + 7 * 4 + 2?

33

The equal to relational operator is ____________.

==

The style of indenting used in this text is called ________________.

Allman style

Which Java statement produces w on one line and xyz on the next line?

System.out.println("w\nxyz");

Which assignment is correct in Java?

all of the above

Which of the following elements is not required in a variable declaration?

an assigned value

An escape sequence always begins with a(n) ____________.

backslash

Which of the following data types can store the value 0 using the least amount of memory?

byte


Kaugnay na mga set ng pag-aaral

DCF Overview and Key Rules of Thumb

View Set

RNSG 2201 Care of Children and Families Ch 15 Evolve

View Set

General California Insurance Law

View Set

Application of Cryptography (IY3660)

View Set

Gruppsykologi (F: Grupprocesser)

View Set