Shared Flashcard Set

Details

Chapter 2: Overview of C
Ch 2 of Problem Solving and Program Design in C 2013 7th edition
36
Computer Science
Undergraduate 1
03/24/2016

Additional Computer Science Flashcards

 


 

Cards

Term
What is an algorithm?
Definition
Term
We should specify algorithms with _____ before we implement them in C
Definition
Pseudocode
Term
What is pseudocode?
Definition
Term
What is a variable?
Definition
Term
Memory is ___ when a variable is declared
Definition
allocated
Term
what does it mean when something is declared?
Definition
Term
What is a datatype?
Definition
Term
What are three types supported by C?
Definition
-Integer (int)
-Double precision floating-point (double)
-Character (char)
Term
Define the role of preprocessor directives
Definition
Term
Define and apply escape sequences
Definition
ex) newline (\n) , horizontal tab(\t) , backslash(\\) , double quote (\")
Term
Describe the role of main () in every C program
Definition
Term
Explain the purpose of the { and} curly braces used with main or any function
Definition
Term
What does every function body begin and end with?
Definition
{ and } curly brackets
Term
What is a literal string
Definition
Term
give an example of a literal string
Definition
"CptS 121 is amazing!"
Term
Where are Literal strings used?
Definition
in printf()
Term
What is the role of return 0 in main ()?
Definition
Indicates the program terminated successfully
Term
What is a syntax error?
Definition
Term
What software tool reports syntax errors?
Definition
Term
What is a logic error?
Definition
Term
What are the rules for naming an identifier?
Definition
Term
Is C case sensitive?
Definition
Yes
Term
What are Boolean expressions?
Definition
Term
How do you apply Boolean expressions?
Definition
Term
What are apply operators?
Definition
ex) +, -, *, /, and %
Term
Describe how to construct and evaluate valid numerical expressions, including mixed-type expressions
Definition
Term
What is operator precedence?
Definition
Term
What symbols have the same precedence?
Definition
*, /, % have the same precedence
+, - have the same precedence, but lower than *, /, %
Term
What's the difference between = and ==
Definition
Term
What is the difference between implicit type casting and explicit type casting?
Definition
Term
How do you apply prinf()?
Definition
Term
How do you apply scanf()?
Definition
Term
What is a prompt?
Definition
Term
What are elements of "good" C style and "best" programming practices?
Definition
Term
Describe a logical memory diagram that represents variables
Definition
Term
What is the general algorithms applied to problems in this course?
Definition
Get inputs
Perform computations
Output results
Supporting users have an ad free experience!