• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/25

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

25 Cards in this Set

  • Front
  • Back

mv

Used to change the name of a file.



mv oldfile newfile

rm

Used to permanently delete a file

mkdir

Used to create a directory

cd

Used to move from one directory to another.



Using just cd will return to home directory

pwd

Displays absolute path to current directory

rmdir

Used to delete a directory but the directory has to be empty

What is batch processing?

All input gathered in a file that a program reads directly from.

What is get function?

A function that can be used to read character data including whitespace.



cin.get(data)

What is Linux redirection for batch processing?

< is used for the input source.


File < inputfile



> is used to output to a file.


File > outputfile

What is a count controlled loop?

Loop designed to run a specific number of times

What is a EOF controlled loop

Designed to read and process data until end of file is encountered. Using a while statement.

What is a sentinel controlled loop?

Can be used when the last entry in a data set is a special value

How to start a for controlled loop?

For(int i; i<5; i++)

What does a while statement look like?

While(logical expression)


Statement;

What does a EOF controlled loop look like?

cin ≥> data;


While(cin)


{


Statement


Cin >> data;


}

What is a value returning function?

Designed to compute and return exactly one value using a return statement.

What is a void function?

Series of statements designed to perform a task.

What 3 things are needed to add a function?

Function definition


Function prototype


Function call

What is a function definition?

Consists of heading and body placed after the main function?

What is a function prototype?

Placed after using statements and CONST declaration but before the main function.

What is a function call?

Placed inside any function, used when you want the statements in the function to be executed.

What is a parameter?

It is a value that is passed to a function.

What are the two methods of parameter passage?

Pass by value


Pass by reference

What is pass by value?

A copy of the value of the actual parameter is transmitted. Copy is used. The actual parameter does not change.

What is pass my reference?

The memory location of the actual parameter is sent to the function. Any changes made by the function will change the actual parameter. It is indicated by an & after the data type in the formal parameter list. Actual parameters must be variables.