CS 2336 Ch. 1

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

applications

Java __________ can run from a Web browser.

Sun Microsystems

Java was developed by __________.

8

One byte contains how many bits?

.java

The extension name of a Java source code file is

megahertz / gigahertz

The speed of the CPU may be measured in

Test.java

Suppose you define a Java class as follows: public class Test { } In order to compile this program, the source code should be stored in a file named

javac Test.java

The JDK command to compile a class in the file Test.java is

.class

The extension name of a Java bytecode file is

Java bytecode

Which JDK command is correct to run a Java application in ByteCode.class?

Floppy disk, hard disk, flash stick, CD-ROM

Which of the following are storage devices?

public, static, void, class

Which of the following are the reserved words?

B. System.out.println("Welcome to Java"); E. System.out.print("Welcome to Java");

Which of the following statements is correct to display Welcome to Java on the console? A. System.out.println('Welcome to Java'); B. System.out.println("Welcome to Java"); C. System.println('Welcome to Java'); D. System.out.print('Welcome to Java'); E. System.out.print("Welcome to Java");

Every statement in a program must end with a semicolon.

Which of the following statements is correct?

because digital devices have two stable states and it is natural to use one state for 0 and the other for 1.

Why do computers use zeros and ones?

Software, programs

__________ are instructions to the computer.

Java JDK

consists of a set of separate programs for developing and testing Java programs, each of which is invoked from a command line.

Java API

contains predefined classes and interfaces for developing Java programs.

network interface controller (NIC)

is a device to connect a computer to a local area network (LAN)

Operating system

is a program that runs on a computer to manage and control a computer's activities.

JVM (Java Virtual Machine)

is a software that interprets Java bytecode

Java language specification

is a technical definition of the language that includes the syntax and semantics of the Java programming language.

CPU

is the brain of a computer.

Hardware

is the physical aspect of the computer that can be seen.

The main method header is written as:

public static void main(String[] args)

A compiler

translates high-level language program into machine language program.

machine language

Computer can execute the code in this level of programming

logic error

If a program compiles fine, but it produces incorrect result, then the program suffers __________.

compilation error

If you forget to put a closing quotation mark on a string, what kind error will be raised?

Java bytecode

Java compiler translates Java source code into __________.


संबंधित स्टडी सेट्स

Chapter 15- Sexually Transmitted Infections

View Set

Saunders NCLEX RN Pretest review

View Set

Sociology 1301: Quiz 1/2 Questions

View Set

Chapter 12: Psychological Disorders

View Set

Chapter 38: Caring for Clients with Cerebrovascular Disorders -

View Set