• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/60

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

60 Cards in this Set

  • Front
  • Back
(20) T/F? C Language is a sequential programming language.
TRUE
(20) What are the two basic types of flow control statements in C Programming?
1. Decisions 2. Loops
(20) How are decisions made by a computer?
Boolean logic (True or False)
(20) What are the two values associated with Boolean logic?
True or False
(20) How is a false condition represented in C Programming?
0 (zero)
(20) How is a true condition represented in C Programming?
Anything other than 0
(20) Which Boolean operator is represented by: == ?
Equality
(20) Which Boolean operator represents equality?
==
(20) Which Boolean operator is represented by: > ?
Greater Than
(20) Which Boolean operator represents greater than?
>
(20) Which Boolean operator is represented by: < ?
Less Than
(20) Which Boolean operator represents less than?
<
(20) Which Boolean operator is represented by: >= ?
Greater Than or Equal To
(20) Which Boolean operator represents greater than or equal to?
>=
(20) Which Boolean operator is represented by: <= ?
Less Than or Equal To
(20) Which Boolean operator represents less than or equal to?
<=
(20) Which Boolean operator is represented by: ! ?
Logical NOT
(20) Which Boolean operator represents a logical not?
!
(20) Which Boolean operator is represented by: && ?
Logical AND
(20) Which Boolean operator represents a logical and?
&&
(20) Which Boolean operator is represented by: || ?
Logical OR
(20) Which Boolean operator represents a logical or?
||
(20) What type of statement divides the flow of a program into two or more possible paths?
A Decision Statement
(20) What occurs when a statement divides the flow of a program into two or more possible paths?
Branching
(20) What allows the program to react to events and user input that cause the program to flow in one of many possible directions?
Branching
(20) What are the two types of decision statements in C Programming?
1. If Statements 2. Switch Statements
(20) Which decision statement allows for conditional execution based on the evaluation of a Boolean expression?
If Statement
(20) The code inside the if block is only executed if the expression is __________.
TRUE
(20) Can an if statement be nested with other if statements?
Yes
(20) What are the three forms that if statements can have?
1. If 2. If-else 3. If-else-if
(21) How are if statements presented in a program?
As a block of code, enclosed by curly braces { }
(24) What is the difference between an if statement and an if-else statement?
There will always code that is executed whether the Boolean expression evaluates to True or False
(27) What type of if statement allows the user to select from multiple possibilities very efficiently?
If-else if-else
(30) What type of decision statement is very similar to an if-else if-else statement that allows for multiple branches of a program?
A Switch Statement
(30) What is the major difference between switch statements and if-else if-else statements?
A switch statement can only check for equality
(30) What is used in a switch statement to return the user to the previous block of program code when the condition of the switch statement is met?
A break
(30) How are choices displayed, within the code of a switch option?
Case
(38) How is repetition in a program accomplished?
Using Loop Statements
(38) What are the three types of loops used in C Programming?
1. While 2. Do-while 3. For
(38) Loop statements are controlled by __________.
Boolean expressions
(38) What loop condition will end a loop statement?
A FALSE return
(38) What are the three essential parts to a loop statement in C Programming?
1. Initialization 2. Condition 3. Change
(38) In which loop condition is the variable assigned its initial value?
Initialization
(38) Which loop condition is defined by the evaluation of a variable to determine whether the loop should execute?
Condition
(38) Which loop condition is where the value of the variable is changed to ensure that the loop has a means of exiting?
Change
(38) What term refers to the change of the value of a variable when a loop executes?
Stepping
(38) Which action occurs when the following stepping assignment operator is used: += ?
Increments by a given number (defaulted to 1)
(38) Which action occurs when the following stepping assignment operator is used: -= ?
Decrements by a given number (defaulted to 1)
(38) Which action occurs when the following stepping assignment operator is used: *= ?
Multiplies by a given number (defaulted to 1)
(38) Which action occurs when the following stepping assignment operator is used: /= ?
Divides by a given number (defaulted to 1)
(38) Which action occurs when the following stepping assignment operator is used: ++ ?
Increments by 1
(38) Which action occurs when the following stepping assignment operator is used: -- ?
Decrements by 1
(40) Which loop statement is the most straightforward of the loops that evaluates the condition at the beginning of the loop?
While Loop
(40) What occurs in a while loop when the first condition fails to be evaluated (a false condition)?
The loop is never executed
(43) What loop statement occurs when the looping condition is not checked until the end of the loop?
Do-While Loop
(47) Which loop statement is often called a counting loop?
For Loop
(47) Which loop statement is a well-defined loop that contains all three of the essential looping elements in one statement?
For Loop
(47) What is the output for the following: for(count = 0; count < 10; ++count){printf(“Count is %d\n”, bount);}
1. Count is 0 2. Count is 1 3. Count is 2 4. Count is 3 5. Count is 4 6. Count is 5 7. Count is 6 8. Count is 7 9. Count is 8 10. Count is 9
(47) What is the output for the following: for(count = 0; count <=10; count++){printf(“Count is %d\n”, count);}
1. Count is 0 2. Count is 1 3. Count is 2 4. Count is 3 5. Count is 4 6. Count is 5 7. Count is 6 8. Count is 7 9. Count is 8 10. Count is 9 11. Count is 10
(47) What is the value of count when the following loop is completed: for(count = 0; count <= 10; count++){printf(“Count is %d\n”, count);}
11