Data Types
Operators
Built in Functions
Output Statements
User-Defined Functions
100

Which data type is useful for storing a single letter?

Character

100

Which operator is used for variable assignment?

=

100

Which function is used for displaying output?

printf

100

What's the output?

float x = 2;

printf("%.2f", x);

2.00

100

Which UDF do we utilize in every assignment? It's used to start your program and call other functions.

Main

200

Which data type is useful for storing numbers with decimal values?

Float

200

List four mathematical operators that can be used in C.

+, -, /, *, etc.

200

Which function is used for taking in user input?

scanf

200

What's the output?

float y = 4.53;

printf("%d", y);

Unknown

200

What are variables passed into functions called?

Parameters

300

From the integer family, which data type offers the most memory?

Long Long Int

300

What is a compound operator?

x += 2  -->  x = x + 2

300

What is the return type for <math.h> functions?

double

300

What's the output?

float z = 4/3;

printf("%.2f", z);

1.00

300

How many values can be returned by a single function?

One

400

Name the three members of the float family.

Float, Double, Long Double

400

What does the modulus operator do?

Remainder

400

Which function returns the nearest, rounded down integer value

floor

400

What's the output?

float z = 1.33;

printf("%f", z);

1.330000

400

Along with variables, what do functions always return?

Control

500
This data type is used to store True/False data, and isn't allowed in CS 159 course standards.

Boolean

500

Of these three operators, which has the highest precedence?

Prefix, Postfix, Assignment

Postfix

500

Which function libraries have we used in our previous assignments?

<math.h> , <stdio.h>

500

What's the output?

float x = 10.5;

printf("%-6.2f", x);

Left Aligned, Six Reserved Spaces, 10.50

500

In the function definition:

void displayOutput (int)

Identify each component.

Void: Data/Return Type

Greeting: Function Name

Int: Parameter

M
e
n
u