Home
Flashcards
Preview
C++ Chapter 1 Review
Home
Get App
Take Quiz
Create
What does '\n' do?
generates a new line
What is a syntax error?
an error detected by compiler
What are the 5 structures of C++?
comments
compiler directives
braces
main function
C++ statements
What is the most common compiler directive?
#include
What are commands for the compiler that is not part of the C++ language?
compiler directives
Each statement ends with...?
a semicolon
Where don't you put semicolons?
comments
compiler directives
int main()
after braces
Incorrect capitalization of letters will result with errors because C++ is....
case sensitive.
What are the three advantages of low-level languages?
take up less memory
run faster
easier to interact with other equipment
two examples of low-level language
assembly code
machine language
What does the operating system do?
loads and supervises the execution of programs
manages hardware resources (like clicking on keyboard)
organizes the files
True or False: All C++ programs have a main function.
True
False
True
define: function
a block of code that carries out a specific task
What marks the beginning and end of blocks of code?
braces
What is the purpose of comments?
to explain what a block of code is for
keep track of the programs that worked on the program
show where changes are made
How do you go from source code to executable code?
1. Compiler translatessource code into an object code
2. Linker takes object code and connects it to your library to create the executable code
What is GUI?
Graphical User Interface
Name a high-level language
BASIC
C++
Ada
Pascal
What language does the microprocessor understand?
machine language
What is typically stored on ROM?
Read Only Memory finds the operating system and gets it working
statements ignored by compiler
comments
define: algorithm
a set of sequential instructions that are followed to solve a problem
What makes it easier to read code?
spaces and indentation
Why is important for programmers to work with various programming languages?
different programs are better for different uses
Author
eatenbread
ID
174715
Card Set
C++ Chapter 1 Review
Description
C++ Chapter 1 Review
Updated
2012-10-01T16:24:27Z
Home
Flashcards
Preview