APCompSci #1

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

What statement best describes the portability characteristic of Java?

"The same Java class files will run on different operating systems without change."

What does CPU stand for?

Central Processing Unit

Which one of the following memory types provides storage that persists without electricity?

Secondary storage

What is a compiler and what does it do?

translates the high-level instructions into the machine code (0s and 1s) that is required by the CPU

Parameters to methods are enclosed by these symbols...

( )

The Java compiler ignores any text between....

/* and */

Text enclosed between this and the end of a line is ignored by the compiler.

//

In Java, every statement must end with this symbol.

;

Why is it called JAVA?

Brainstorming for a new "fun" at a coffee shop and were inspired by Java coffee

What is the term used to describe an error detected by the computer that is a violation of the programming language rules?

Compile-time error

Which statement is true about the following Java statement: System.out.println("Hello!);

Compile-time error

What is the transistor and how does it work in relation to a CPU?

It works as switches in a CPU to define an instructor set

Who were the lead designers of the JAVA language? When was it first developed? What was it first called?

James Sterling and Patrick Naughton; 1991; "Green"

What is Primary storage?

Made up of electronic circuits that store data witht he use of electric power

When a Java application starts, what is the name of the method that is executed?

Main

A ____ contains sequences of instructions to perform a particular task?

Method

What is the JAVA Virtual Machine? Why is it important?

Program that simulates a real CPU; takes JAVA programs distributed as instructions for a virtual machine and makes them platform independent

The programmer wants to display, "Hello!" Which statement is true about the following Java statement: System.out.println("Helo!");

Run-time error

What term is used to describe an error causing a program to take an action that the programmer did not intend?

Run-time error

What is the syntax for calling the println method on the object system.out?

System.out.println("any message")

What was JAVA first developed for?

Use in consumer devices

What term is used to refer to text in a program that helps human readers understand the program?

comments

What is the difference between a compile-time error and a run-time error?

compile-time: when something is wrong according to the rules of the language run-time: a program takes action the programmer did not intend

What is the purpose of the following algorithim? somenum = 0 repeat the following steps for 15 times input variable1 if variable1 < somenum then somenum = variable1 end of if end of repeat print somenum

find the smallest number

A method is called on what entity in the program?

object

What entity belongs to a class and is manipulated in a program?

object

A method may be called by specifying which 3 items in specific order?

object.method.parameters

Secondary storage?

persists without electric power; hard disk (rotating platters)(, solid-state (electronic components, runs without power)

What are the two most important benefits of the JAVA language?

provides safety and portability

Where is a program stored when it is not currently running?

secondary storage

What term is used to refer to a sequence of character enclosed in quotation marks?

string


Set pelajaran terkait

Microeconomics Chapter 5 Study Guide

View Set

Pathophysiology of the stomach- exam 3

View Set

Management Science 291 SimNet #3

View Set

Chapter 4: Socialization and the Life Course

View Set