CPG

Ace your homework & exams now with Quizwiz!

double

A Data type that stores fractional numbers and sufficient for storing 15 decimal digits. int long double float

+=

Add AND assignment operator. It adds right operand to theleft operand and assign the result to left operand.

+ (Addition)

Adds values on either side of theoperator.

people ware, procedures,software, hardware, data, and the Internet.

An information has several parts

&& (logicaland)

Called Logical AND operator. If both theoperands are non-zero, then the conditionbecomes TRUE.

! (logical not)

Called Logical NOT Operator. Use to reverses thelogical state of its operand. If a condition isTRUE then Logical NOT operator will makeFALSE.

|| (logical or)

Called Logical OR Operator. If any of the twooperands are non-zero, then the conditionbecomes TRUE.

INFORMATION

Data that has been processedby a computer system.

-- (Decrement)

Decreases the value of operand by 1.

JAVA

Developed by James Arthur Goslingand the "Green Team" under SunMicrosystems in 1991

/=

Divide AND assignment operator. It divides left operandwith the right operand and assign the result to left operand.

1995

First version of Java was released in

%=

Modulus AND assignment operator. It takes modulus usingtwo operands and assign the result to left operand.

* (Multiplication)

Multiplies values on either side of theoperator.

All of the above

Uses of java programming, choose that applies: Mobile applications(specially Android apps) Desktop applications Web applications All of the above

System.out.println("Welcome to MCL ");

What is a correct syntax to output "Welcome to MCL" in Java? print ("Welcome to MCL "); Console.WriteLine("Welcome to MCL "); System.out.println("Welcome to MCL "); echo("Welcome to MCL ");

String

Which data type is used to create a variable that should store text? myString string Txt String

==

Which operator can be used to compare two values? <> >< = ==

num1 * num2

Which operator is used to multiply together two values? num1 * num2 num1 && num2 num1 + num2 None of the above

INTERNET

is a worldwide collection of computer networks that connects millionsof businesses, governmentagencies, educationalinstitutions, and individuals.

Java Scanner class

is used to get user input, and it is found inthe java.util package.

Java Scanner class

is widely used to parse text for string and primitivetypes using regular expression.

- (Subtraction)

Subtracts right-hand operand from left-hand operand.

non-primitive data

include Classes, Interfaces, and Arrays.

Primitive data types

include boolean, char, byte, short, int, long, floatand double.

Information system

is a collection of hardware, software, people,data, and procedures that work together to provide informationessential to running an organization.

variable

is a containerwhich holds the valuewhile the Java programis executed. is assignedwith a data type. is a name ofmemory location.

Data types

specify the different sizes and values thatcan be stored in the variable

float

stores floating point numbers, withdecimals, such as 19.99 or -19.99

int

stores integers (whole numbers),without decimals, such as 123 or -123

char

stores single characters, such as 'a' or'B'. ______values are surrounded by singlequotes

String

stores text, such as "Hello". _______ values are surrounded by double quotes

boolean

stores values with two states:true or false

PROCEDURES

Rules or guidelines to follow when using hardware, software data.

>= (greater than orequal to)

Checks if the value of left operand is greater than or equalto the value of right operand, if yes then conditionbecomes true.

> (greater than)

Checks if the value of left operand is greater than the valueof right operand, if yes then condition becomes true.

<= (less than orequal to)

Checks if the value of left operand is less than or equal tothe value of right operand, if yes then condition becomestrue.

< (less than)

Checks if the value of left operand is less than the value ofright operand, if yes then condition becomes true.

!= (not equal to)

Checks if the values of two operands are equal or not, ifvalues are not equal then condition becomes true.

== (equal to)

Checks if the values of two operands are equal or not, ifyes then condition becomes true.

char myLetter = 'D';

Choose how to declare and initialize char data type in Java. char myLetter = "D"; char myLetter = 'D'; char myLetter = D; None of the above

SOFTWARE

Computer program consistingof step-by-step instructions,directing the computer on eachtask it will perform. Also called aprogram that tells the computerwhat tasks to perform and howto perform them

PROGRAMMING SOFTWARE

Computer programmers use _______________________ to write code. Programmingsoftware and programmingtools enable developers todevelop, write, test anddebug other softwareprograms.

Flowchart

Consists of eight standardsymbols namely; Terminator,Preparation, Process,Decision, Input/Output,Arrow or Direction Flow, On-page Connector and off-pageConnector.

Syntax

Create an object of the class and use any of theavailable methods found in the Scanner classdocumentation.

FALSE

Curly braces { } are used to declare variables in Java. True False

/ (Division)

Divides left-hand operand by right-hand operand & returns quotient.

% (Modulus)

Divides left-hand operand by right-hand operand and returns remainder.

PEOPLE WARE

End users who use computers to make themselves productive.

HARDWARE

Equipment or mechanicalcomponents that includes akeyboard, monitor, printer, thecomputer itself, and otherdevices that are controlled bysoftware programming

number

Examples of Java reserved words, except one: goto float number this

Arrays

Examples of Primitive data types, except one: float int Arrays String

int x = 7;

How do you create a variable with the numeric value 7? float x = 7 int x = 7; x = 7; num x = 7

// This is a comment

How do you insert COMMENTS in line of Java code? /* This is a comment <This is a comment > // This is a comment # This is a comment

TRUE

Import keyword is used to include a package from the Java API library. True False

++ (Increment)

Increases the value of operand by 1.

Variable

Is a container which holds the value while the Java program is executed.

Flowchart

Is a diagram thatillustrates the steps,sequences, anddecisions of aprogram process.

PROCESSING

Is the stage where the inputdata is manipulated in order toproduce meaningful information

Pseudocode

It is a shorter description of an algorithm. It is a combination of English and code method to illustrate the algorithm.

*=

Multiply AND assignment operator. It multiplies rightoperand with the left operand and assign the result to leftoperand.

-=

Subtract AND assignment operator. It subtracts rightoperand from the left operand and assign the result to leftoperand.

DATA

Raw, unprocessed facts thatare input to a computer systemthat will give compiledinformation when the computerprocesses those facts. isalso defined as facts orobservations about peopleplaces, things, and events

=

Simple assignment operator. Assigns values from right sideoperands to left side operand.

Data types

Specify the different sizes and values that can be stored in the variable.


Related study sets

CMS 2 Assignment 7: Designing Pay Levels, Mix, and Pay Structures

View Set

Fyzika MO - mechanika, kmitání, akustika

View Set

Audit Chapter 7 concepts (material)

View Set

Ricci Ch 47 - Nursing Care of the Child With an Alteration in Immunity or Immunologic Disorder

View Set

Chapter 4 Health of the Individual, Family, and Community

View Set