Flashcards
Chapter 2
Flashcards do conjunto (23)
- 1int float double char const void ReturnReserved words, keywords, or symbols
- 2+ - * / . ; ? , <= != == >=Special Symbols
- 3Multiple line comments/* words */
- 4Identifiers (4)basically variable names
must begin with letter or underscore
case sensitive
not a good idea to redefine pre defined ones - 5Data TypesSimple, Structured, Pointers
- 6Simple Data TypesIntegral (integer), Floating point (decimals), enumeration type (user defined)
- 7Integral datatypes are further divided into how many categories?9
- 8What is the difference between a float and a doubleboth represent any real number but a float is 4 bytes whereas a double is 8 bytes; 6/7 vs 15 significant digits
- 9If an expression has both types of operands then...integers are changed to floating point and the output is a floating point
- 10int 15/ int 2 =int 7
- 11what is the difference between a named constant and a variablea variables value can change during execution but a named constant cannot
- 12What is variable initializationwhen you assign it a value
- 13pre vs post incrementthe value of the variable is altered before using it in any expression vs. the value is altered after already using it
- 14to use cin and cout you must include which two statement#include
using namespace std; - 15+=, -=, *=, /=, and %=Compound assignments, plus is, minus is, etc.
- 16What is 7.5*10^87.5E8
- 17Source code is comprised of ...preprocessor directives and program statements
- 18The compiler generates the...Object code (.obj)
- 19Executable code (.exe) results when...object code is linked with the system resources
- 20The first line of the function "main" is called the ...heading of the function (i.e. "int main ()")
- 21statements that declare things are known asdeclaration statements
- 22statements that perform calculations, manipulate data etc. areexecutable statements
- 23The body contains what two types of statementsdeclaration and executable
Informações
- Descrição
- GRE CSC EGR FlashCards sobre Chapter 2, criado por Brooks Johnson em 16-02-2023.
- Criado por
- Brooks Johnson
- Visualizações
- 0
- Avaliação
Mais sobre Data Types, Variables and Operators