Chapter 2 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is source code?

A

a text listing of commands to be compiled or assembled into an executable computer program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two components of Java?

A

Compiler and Interpretor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Java translaslates source code into _____.

A

Byte Code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

English in programming language is _____.

A

Byte Code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Byte code is interpreted by _____.

A

An interpreter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Java prgram in a webpage is ____.

A

An applet that can stand alone

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are three parts of Java?

A

Text editor, compiler, interpreter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is software called that combines text editor, compiler, interpreter?

A

IDE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does IDE stand for?

A

Integrated Development Environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does JDK stand for?

A

Java Development Kit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the extension at the end of source code?

A

.java

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the extension at the end of byte code?

A

.class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the extension at the end of web page?

A

.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Why is there a java subset?

A

So you know what is being tested.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is “/t”?

A

Tab

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is “/b”?

A

Backspace

17
Q

Are Java words case sensitive?

A

Yes

18
Q

Every statement ends with what punctuation?

A

;

19
Q

First statement in every class _______.

A
public class NAME
{
   public static void main (String args[])
    {
20
Q

Program statements need to be between ______.

A

{ } (Braces)

21
Q

What should you be on the lookout for?

A

Viruses, hackers, and damage

HACKING IS WRONG!

22
Q

What is a virus?

A

A program that duplicates itself and can be destructive/annoying

23
Q

What are keywords in a program?

A

Public, class, static

24
Q

What symbol is used to create a single line comment?

A

//

25
Q

What symbol is used to create a multi-lined comment?

A

/* */

26
Q

What is “print”?

A

Displays text

27
Q

What is “println”?

A

Displays text and moves cursor to next line

28
Q

What is the difference between “.java” and “.class”?

A

Before compiled: “.java”

After compiled: “.class”

29
Q

What is the output of “System.out.println”?

A

Displays text and moves cursor to next line

30
Q

What is the output of “System.out.print”?

A

Displays text

31
Q

What is the output of “System.out.println ()”?

A

Blank line

32
Q

Do comments print?

A

No