Which data type is useful for storing a single letter?
Character
Which operator is used for variable assignment?
=
Which function is used for displaying output?
printf
What's the output?
float x = 2;
printf("%.2f", x);
2.00
Which UDF do we utilize in every assignment? It's used to start your program and call other functions.
Main
Which data type is useful for storing numbers with decimal values?
Float
List four mathematical operators that can be used in C.
+, -, /, *, etc.
Which function is used for taking in user input?
scanf
What's the output?
float y = 4.53;
printf("%d", y);
Unknown
What are variables passed into functions called?
Parameters
From the integer family, which data type offers the most memory?
Long Long Int
What is a compound operator?
x += 2 --> x = x + 2
What is the return type for <math.h> functions?
double
What's the output?
float z = 4/3;
printf("%.2f", z);
1.00
How many values can be returned by a single function?
One
Name the three members of the float family.
Float, Double, Long Double
What does the modulus operator do?
Remainder
Which function returns the nearest, rounded down integer value
floor
What's the output?
float z = 1.33;
printf("%f", z);
1.330000
Along with variables, what do functions always return?
Control
Boolean
Of these three operators, which has the highest precedence?
Prefix, Postfix, Assignment
Postfix
Which function libraries have we used in our previous assignments?
<math.h> , <stdio.h>
What's the output?
float x = 10.5;
printf("%-6.2f", x);
Left Aligned, Six Reserved Spaces, 10.50
In the function definition:
void displayOutput (int)
Identify each component.
Void: Data/Return Type
Greeting: Function Name
Int: Parameter