Computer Science Exam 2

Card Set Information

Author:
Anonymous
ID:
269555
Filename:
Computer Science Exam 2
Updated:
2014-04-07 01:40:33
Tags:
CSCE 1020 Exam Binary Functions Erwin
Folders:

Description:
Erwin F. 2nd Exam
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user Anonymous on FreezingBlue Flashcards. What would you like to do?


  1. ANSI “C” Standardized
    1980
  2. C First Implemented
    1972
  3. Binary- Digits are called:
    Bits
  4. Bits can be either:
    0 or 1
  5. Binary is powers of:
    • 2
    • 1, 2, 4, 8, 16, 32, 64, 128
  6. C is a Structured Language that supports the three basic programming constructs:
    -simple sequence

    -if-then-else (conditional test)

    -loop (repeating instructions)
  7. Algorithm
    logical steps to solve the problem.
  8. First Step:
    clearly, unambiguously define the problem.
  9. Syntax
    Structure and rules of the program.
  10. Symantics
    What the meaning of the program is. The purpose.
  11. Key/ Reserved Words:
    • Their meaning never changes and they have a specific purpose:
    • (int, double, while, cout, if, cin)
  12. Two forms of Comments:
    /* */

    //
  13. Upper and lower letter difference:
    32
  14. void functions:
    do not return anything
  15. parameters:
    variable declared for a function
  16. Subroutines are also known as
    • functions
    • named set of instructions
  17. ANSI stands for:
    American National Standards Institute
  18. C was designed by
    Dennis Ritchie
  19. Identifiers:
    • Letters
    • Numbers
    • Underscores
    • Cannot begin with numbers
  20. n
    new lines
  21. Header Files
    #include <iostream>
  22. Print Text
    cout <<
  23. Receive Input
    cin >>
  24. !
    Not
  25. x++
    post-increment
  26. ++x
    pre-increment
  27. isalpha()
    • test if a character is a letter:
    • exampe: if (isalpha(letter)){
  28. toupper()
    converts any lowercase character to its uppercase
  29. Loops can also be called:
    repetition, repeat, iterate, iteration
  30. flag variables
    separate variable set to 1 or 0  to specify if the loop is true or false. helps terminate loops.
  31. 4 major components of a loop:
    • Initialization
    • condition
    • incremental counter
    • content of loop
  32. String Definition:
    Series of characters that are combined to represent a name or any other value that requires more than one character to define it.
  33. String Terminology
    • Character 'a'
    • String "C Programming"
    • Concatenation (two or more streams to form a new string consisting of the contents of both)
    • Contiguous (common boundary or edge; touching; adjacent)
    • Lexical Order (order in which strings are normally stored)
  34. Strings Chart:

What would you like to do?

Home > Flashcards > Print Preview