Lecture 1 Flashcards

1
Q

Include<iostream></iostream>

A

First part of the program that allows the program to use the input/output stream. (not letting me write it correctly)

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

Using namespace std;

A

Second part of a program. Goes at the beginning. Tells the program you can use the standard name space.

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

int main() {}

A

First part of the main part of a program. Tells the computer this is where the main program begins.

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

Cout

A

Console output. Streams text and other things to the console.

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

Cout &laquo_space;“Hello World!” &laquo_space;end;

A

Prints Hello World to the console. Proper way to use the cout command.

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

// and /* */

A

Comments–lines of code that provide the notes on how the program works, etc. and are skipped by the computer. //comments out a line of code, /* */ comments out enclosed text. Can also be used as title of program.

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

Code

A

Commands/lines that do something specific.

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

&laquo_space;and&raquo_space;

A

Stream operators. Denotes which direction information is being streamed.

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

Endl;

A

Insicates the end of a line of code in output.

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

; (semicolon)

A

Ends a line of code. Each individual line of code needs it at the end. #Include<iostream> does not need a semicolon since it is not a command to perform.</iostream>

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

Object oriented programing

A

Programming that lets you group objects together. Can help simplify code and works well for powerful programs.

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

IDE

A

Integrated Development Environment. Allows you to edit, compile, run, and debug in one place.

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

{ }

A

Groups a set or block of commands together. Used in int main(){}

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

“ “

A

Indicates text in code so it won’t get mixed up with other code

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

Console

A

Default output area

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