Aptitude Test FlashCards

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/22

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

23 Terms

1
New cards

int main()

Marks the beginning of a function

2
New cards

Function

A group of more programming statements that collectively have a name

3
New cards

{

Left brace or opening brace

Beginning of a function

4
New cards

String Literal

Group of characters inside the quotation marks

5
New cards

;

Marks the end of a complete statement

6
New cards

}

Marks the end of a function

7
New cards

Newline Escape Sequence (\n)

Special command to advance the output cursor to the following line

8
New cards

Variable Definition

Tells the computer the variable’s name and the type of data that it will hold

9
New cards

Assignment

EX: number=5

Equal sign is an operator that copies the value on its right into the variable named on its left

10
New cards

Literals

piece of data written directly into a programs code

11
New cards

Identifier

Programmer-defined name that represents some element of a program

12
New cards

Integer Data Types

Can only hold whole number

13
New cards

char Data Type

Used to store individual character

Can only hold one character at a time

14
New cards

Character Literals

Are enclosed in single quotation marks

15
New cards

The string Class

Allows the programmer to create a string variable type

16
New cards

Using the string Class

  1. Define a string type variable

  2. Assign a string literal

  3. Use out to display the value

17
New cards

Floating-Point Numbers

Data type that allows fractional values

18
New cards

float Data Type

Considered single precision

19
New cards

double Data Type

Twice as big as float

Considered double precision

20
New cards

bool Data Type

Expressions that have true or false values

21
New cards

Single-Line Comments

Use // on each line

22
New cards

Multi-Line Comments

Use /* to begin and */ to end

23
New cards

Named Constant

Like a variable but its content is read-only and cannot be changed while the program is running