QUESTIONS AND CORRECT ANSWERS
Arithmetic operator examples - correct answer + , - , * , / , ++ , -- , %
Relational operator examples - correct answer == , != , < , > , <= , >=
Logical operator examples - correct answer && , || , !
Bitwise operators examples - correct answer & , | , ^ , << , >>
Assignment operators examples - correct answer = , += , -= , *= , /= , %=
Conditional operator examples - correct answer sizeof(), & (returns the address of a variable), *
(pointer to a variable)
Integer data types examples - correct answer int, unsigned int, short int, long int, signed short
int, signed long int
Floating data type examples - correct answer float, double, long double
Character data type examples (& void (which is different)) - correct answer char, unsigned char
Block - correct answer a group of code statements that are associated and intended to be
executed as a unit. Stars and ends with {}
4 types of control statements - correct answer decision making statements, selection statements,
iteration statements, and jump statements
Decision making statements - correct answer if-else statements (used to carry out a logical test
of whether the statement is true or false, resulting in an action taking place)