CC2 1st Quiz

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

Variables

1 / 65

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

66 Terms

1

Variables

Named computer memory locations that hold values

New cards
2

Procedures

Individual operations grouped into logical units, are also called modules, methods, functions, and subroutines

New cards
3

classes

which are blueprints for objects.

New cards
4

objects

which are specific instances of those classes.

New cards
5

applications

that manipulate or use those objects

New cards
6

Object-oriented programs

An extension of procedural programming in which you take a slightly different approach to writing computer programs

New cards
7

Java

Can be run on wide variety of computers ,Does not execute instructions on computer directly , Runs on hypothetical computer known as Java virtual machine (JVM), Developed by Sun Microsystems, Object-oriented language

New cards
8

Java Runtime Environment (JRE)

It is a software package that provides the necessary runtime environment to execute Java applications and applets. The ________ includes the Java Virtual Machine (JVM), along with core classes and libraries required for running Java programs.

New cards
9

Java Virtual Machine (JVM)

Key component of the Java platform that provides an environment for executing Java bytecode. It allows Java applications to be platform independent by providing an abstraction layer between the compiled Java code (bytecode) and the underlying hardware and operating system

New cards
10

Java Development Kit (JDK)

A software package and development environment created by Oracle (previously Sun Microsystems) that provides tools, libraries, and executables necessary for developing, compiling, and running Java applications and applets. It's an essential tool for Java developers as it includes everything they need to create, test, and deploy Java applications

New cards
11

Source code

Programming statements written in high-level programming language

New cards
12

Bytecode

Statements saved in file, Java compiler converts source code into binary program

New cards
13

Java interpreter

Checks bytecode and communicates with operating system, Executes bytecode instructions line by line within Java virtual machine

New cards
14

Applets

are small Java programs that are designed to be embedded within web pages and executed within a web browser, Programs embedded in Web page

New cards
15

Literal string

A series of characters that will appear in output exactly as entered, Written between double quotation marks

New cards
16

Arguments

Pieces of information passed to method

New cards
17

method

The act of sending arguments to a method

New cards
18

public static void main (String[] args)

main methdod

New cards
19

Java identifier

can contain and can only start with only letters, digits, underscores, or dollar sign

New cards
20

Class Declaration/Definition

This is where you define the class name and its visibility (public, private, protected) using access modifiers. The class name should be descriptive and follow naming conventions

New cards
21

Class Identifier

Defines how class can be accessed

New cards
22

Access specifier or Access modifier

Defines the circumstances under which a class can be accessed and the other classes that have the right to use a class

New cards
23

Pascal Casing

Also known as upper camel casing. In java, refers to the convention of capitalizing the first letter of each word in an identifier.

New cards
24

static

Reserved keyword, Means method accessible and usable

New cards
25

void

Use in main() method header, Indicates main()method does not return value when called

New cards
26

Program comments

Nonexecuting statements added to program for documentation, Use to leave notes for yourself or others, Include author, date, class’s name or function

New cards
27

Line comments

Start with two forward slashes (//)

New cards
28

Block comments

Start with forward slash and asterisk (/*), End with asterisk and forward slash (*/)

New cards
29

Javadoc comments

Special case of block comments, Begin with slash and two asterisks (/**), End with asterisk and forward slash (*/)

New cards
30

public class AnyClassName

public static void main(String[] args)

Shell code

New cards
31

Constant

Cannot be changed while a program is running

New cards
32

Literal Constant

Value taken literally at each use

New cards
33

Numeric constant

As opposed to a character or string constant

New cards
34

Unnamed Constant

As opposed to a named one

New cards
35

Variable

Might change while program is running, Named memory location, Can store a value

New cards
36

Data Type

Type of data that can be stored, How much memory item occupies, What types of operations can be performed on data

New cards
37

Primitive Data Type

Simple data type, A fundamental data type that is directly supported by the programming language and represents the simplest and most basic data units

New cards
38

Variable Declaration

Statement that reserves named memory location

New cards
39

Name Variables

Using naming rules for legal class identifiers, Conventionally begin with lowercase letters

New cards
40

Assignment Operator

Equal sign (=), Value to right assigned to variable on left

New cards
41

Initialization

Assignment made when declaring variable

New cards
42

Assignment

__________ made after variable declared

New cards
43

Named Constant

Also known as symbolic constant, Should not change during program execution, Has data type, name, and value, Data type preceded by keyword final

New cards
44

Block of Code

The code contained between a set of curly braces, A data item’s scope is the area in which it is visible to a program and in which you can refer to it using its simple identifier.

New cards
45

Type int

Store integers, or whole numbers

New cards
46

byte • short • long

Variations of the integer type

New cards
47

print() and println()

Can be used alone or in combination with a string

New cards
48

Concatenate

Plus sign (+), Entire expression becomes String when concatenated

New cards
49

Arithmetic Operators

Perform calculations with values in programs • Example of binary operators

New cards
50

Operand

Value used on either side of operator

New cards
51

Integer Division

Integer constants or integer variables, Result is integer, Fractional part of result lost

New cards
52

Associativity of Operators

The associativity of arithmetic operators with the same precedence is left-to-right.

New cards
53

Operator Precedence

Rules for order in which parts of mathematical expression are evaluated, First multiplication, division, and modulus, Then addition or subtraction

New cards
54

Boolean Logic

Based on true-or-false comparisons

New cards
55

Boolean Variable

Can hold only one of two value :true or false

New cards
56

Relational Operator

Also called comparison operator, Compares two items

New cards
57

Floating-Point Number

Contains decimal positions

New cards
58

float

up to six or seven significant digits of accuracy

New cards
59

double

up to 14 or 15 significant digits of accuracy

New cards
60

Significant Digits

Refers to mathematical accuracy of a value

New cards
61

Type Casting

Forces value of one data type to be used as value of another type

New cards
62

char Data Type

Holds any single character, Place character values within single quotation marks

New cards
63

Escape Sequence

Begins with backslash followed by character, Represents single nonprinting character

New cards
64

String

Built-in class, Store and manipulate character strings, _______ written between double quotation marks

New cards
65

Scanner object

Breaks input into units called tokens

New cards
66

System.in Object

Standard input device; normally the keyboard, Access using Scanner class

New cards

Explore top notes

note Note
studied byStudied by 19 people
... ago
5.0(1)
note Note
studied byStudied by 19 people
... ago
5.0(1)
note Note
studied byStudied by 17 people
... ago
5.0(1)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 7 people
... ago
5.0(1)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 27 people
... ago
5.0(1)
note Note
studied byStudied by 95 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (92)
studied byStudied by 59 people
... ago
5.0(1)
flashcards Flashcard (96)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (56)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (86)
studied byStudied by 3 people
... ago
4.0(1)
flashcards Flashcard (85)
studied byStudied by 25 people
... ago
5.0(1)
flashcards Flashcard (109)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (35)
studied byStudied by 14 people
... ago
5.0(1)
flashcards Flashcard (138)
studied byStudied by 15 people
... ago
5.0(1)
robot