Processing Data Flashcards

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

simple codes used in conjunction with a backslash to format program output

A

escape sequence

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

symbols used for comparing data values in order to create information out of raw data: >, <, >=, <=, ==, and !=

A

comparison operators

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

ternary operator; efficient tool used to perform if-then-else logical decisions

A

conditional operator

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

You are creating a conditional statement in a Java program. Which symbol would you use to construct the evaluation part of the statement?

A

colon (:)

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

You are creating a program to print the text “Hello World!” on paper. Why do you need to include an escape sequence?

A

Double quotes are used to assign string values.

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

What enables programmers to create a complex if-then-else decision statement using one concise line of code.

A

Java’s conditional

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

It is important to remember that the result of any calculation performed is useless to a program unless the results of your conditional operator are assigned to a

A

variable

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

How is using \” and using \b similar in a Java program?

A

Both are escape sequences.

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

Which of the following is not a valid escape sequence?

A

==

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

Which escape sequence produces a bell that make a noise if sent to an output device such as speakers?

A

\u0007

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

the prescribed order, included in the instruction set, in which the ALU processes mathematical operations

A

Order of Operations

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

the equal sign; used to place data values into variables

A

assignment operator

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

acronym depicting the mathematical Order of Operations in Java programming: parentheses, exponentiation, multiplication, division, modulus, addition, and subtraction

A

PEMDMAS

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

a group of operators that perform a calculation and an assignment at the same time

A

compound assignment operators

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

Which primitive data type is described by the range -32,768 to 32,767?

A

short

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

Which of the following operators is classified as a comparison operator?

A

<=

17
Q

What statement denotes the difference in bytes occupied by an int and a float value in Java?

A

Int takes 4 bytes; float takes 4 bytes.

18
Q

data type holds one letter, one number, or one symbol and occupies 1 byte

A

char

19
Q

the equal sign (=); used in Java code to place data values into variables

A

assignment operator

20
Q

approach to naming program elements in which words are strung together, and each new word starts with capital letter: a CamelCaseName

A

camel casing

21
Q

the kind of data that a variable can hold; data types are primitive or reference

A

data type

22
Q

to write code that introduces a variable into the program

A

declare

23
Q

simple, uncomplicated data types: boolean, byte, char, double, float, int, long, and short

A

primitive data type

24
Q

a programmer-assigned, descriptive term used to identify a Java programming variable

A

variable name

25
Q

memory space reserved at a specific address that programmers use to store data; Java variables have descriptive names

A

variable

26
Q

assigning a data value to a variable in Java

A

initializing

27
Q

complex data types created from primitive data types

A

reference data type

28
Q

What is the standard camel casing practice in naming variables in Java programming?

A

Start with a lowercase letter, and use uppercase letters for the first letter in a new word.

29
Q

When you write code that introduces a variable into the program, you

A

declare

30
Q

You are writing a program using the Java language. Which of the following is a requirement of Java syntax?

A

Each statement needs to end in a semicolon.

31
Q

Which of the following is not a simple data type in the Java language?

A

plus

32
Q

A library book sits on the shelf in the non-reserved section for everyone to check out and use. Which Java term best describes this?

A

global variable

33
Q

Assigning a data value to a variable in a program is referred to

A

initializing

34
Q

What is the relationship between a data type and a variable?

A

A variable is a placeholder, and a data type is the kind of data for a particular variable.

35
Q
A