Exam 1: Getting Started

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The escape sequence the represents the new-line character is:

(Multiple Choice)
4.8/5
(39)

What is byte-code? What is its importance?

(Essay)
4.7/5
(33)

Java uses the ASCII character set.

(True/False)
4.8/5
(37)

What is the Java expression for 27xy?

(Multiple Choice)
4.9/5
(43)

Explain the difference between an implicit type cast and an explicit type cast.

(Essay)
5.0/5
(36)

What steps must the programmer take to create an executable Java program?

(Essay)
4.8/5
(34)

The Java programming language allows you to concatenate two strings using the plus sign.

(True/False)
4.8/5
(37)

Which operator returns the remainder of integer division?

(Multiple Choice)
4.8/5
(42)

Write a Java statement to determine the length of a string variable called input.Store the result in an integer variable called strLength.

(Essay)
4.8/5
(31)

Java began as a language for home appliances.

(True/False)
4.8/5
(29)

Which operator is used to concatenate two strings?

(Multiple Choice)
4.8/5
(41)

What are the values of the variables a,b,c,and d after the execution of the following expressions? int a = 3; int b = 12; int c = 6; int d = 1; d = d * a; c = c + 2 * a; d = d - b / c; c = c * b % c; b = b / 2;

(Essay)
4.9/5
(39)

Two kinds of Java programs are applications and applets.Define and discuss each.

(Essay)
4.7/5
(50)

Define the terms class,object,method and method call.

(Essay)
4.8/5
(40)

The modulus operator,%,returns the remainder of integer division.

(True/False)
4.9/5
(36)

A variable of type boolean can be explicitly converted to that of type int.

(True/False)
4.9/5
(40)

The hardest kind of error to detect in a computer program is a:

(Multiple Choice)
4.7/5
(38)

In Java,a block comment is delimited by:

(Multiple Choice)
4.8/5
(38)

In Java,Strings are immutable objects.Immutable objects can be changed.

(True/False)
4.8/5
(39)

What does the String method trim)do? Give an example of its use.

(Essay)
4.9/5
(41)
Showing 21 - 40 of 45
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)