1. What is the correct value to return to the operating system upon the successful completion of a program? A. -1 B. 1 C. 0 D. Programs do not return a value. 2. What is the only function all C programs must contain? A. start() B. system() C. main() D. program() 3. What punctuation is used to signal the beginning and end of code blocks? A. { } B. -> and <- C. BEGIN and END D. ( and ) 4. What punctuation ends most lines of C code? A. . B. ; C. : D. ' 5. Which of the following is a correct comment? A. */ Comments */ B. ** Comment ** C. /* Comment */ D. { Comment } 6. Which of the following is not a correct variable type? A. float B. real C. int D. double 7. Which of the following is the correct operator to compare two variables? A. := B. = C. equal D. == Quiz Answers |
Thursday, August 4, 2011
Quiz: The basics of C
Subscribe to:
Post Comments (Atom)
RELATED KEYWORDS:
- Intro to C The basics of C
- If statements If statements, and how to use boolean operators
- Loops in C All you want to know about loops
- Functions Make your programs more modular and easier to understand with functions
- Switch case About the switch case structure
- Pointers Using pointers to access memory locations
- Structures Learn about grouping multiple variables together under a single name
- Arrays Learn about arrays--one variable with many values
- C-style Strings About character arrays (strings)
- C File I/O About file I/O in C
- Typecasting Typecasting: making variables look like another data-type
- Command line arguments How to accept command line arguments
- Linked Lists The basics of singly linked lists
- Recursion Recursion--a function calling itself
- Variable argument lists Learn to write flexible functions accepting a variable number of arguments
- Binary Trees Learn about binary trees, a fundamentally important data structure!
No comments:
Post a Comment