Prog Keywords,Literals, Data Types And Variable Statements Flashcards

1
Q

Case Sensitive
Every line of code must be inside a class

A

Java Program

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

Specifies one or more actions to be performed during the execution of program

A

Java Statement

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

A block is formed when?

A

Enclosing statement by curly braces

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

Used to add notes and it is ignored by the compiler

A

Comments

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

Comment //

A

Single line

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

Comment /**/

A

Block

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

Comment /** **/

A

JavaDoc

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

Words that are used to to properly identify name a class, procedure, methods, or variables.

A

Java Identifiers

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

Case sensitive
Cannot start with a number
Can use (Aa-Zz) (0-9) (_,$)
Keywords are not allowed

A

Java Identifiers Rules

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

Items in a program whose value do not change

A

Java Literals

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

Used to represent specific integer values
Can be expressed in
Octal 8
Decimal 10
Hexadecimal 16

A

Integer Literals

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

F is always required

A

Floating Point Literals

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

True or False

A

Boolean Literals

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

Zero or More characters enclosed in double quotation marks

A

String Literals

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

Enclosed in single quotation marks

A

Character Literals

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

Boolean, char, byte, short, int, long, float, double

A

Primitive Data Type

17
Q

Classes, Interfaces, Arrays

A

Non Primitive

18
Q

One bit wide and its initial value is false

A

Boolean Data Type

19
Q

Represents 16bit unicode character
Enclosed in single quotation mark

A

Char Data Type

20
Q

Can store whole numbers from -2147483648 to 2147483648
Preferred data type

A

Integer Data Type

21
Q

Can hold decimals such as 9.99 or 3.14515
Must end with an F

A

Floating Point Data Type

22
Q

Store a sequence of characters must be surrounded by double quotation marks

A

String Data Type

23
Q

Containers for storing data values

A

Java Variables

24
Q

Collection of framework, collection classes, classes related tondate and time, internatiolization, and miscellaneuos utility classes

A

import java.util.*;

25
Q

A scanner used to get user input

A

import java util.Scanner*;

26
Q

Contains nearly everyclass you might ever need to perform input output in Java

A

import java.io.*;