1/25
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Data types that are derived from primitive data types are called:
Derived Data Types (from primitives)
A block of code or program-segment defined to perform a specific well-defined task is called a:
Function (block of code)
The syntax for a function is:
FunctionType FunctionName(parameters) (function syntax)
A collection of items stored at continuous memory locations is called an:
Array
The syntax for declaring an array is:
DataType ArrayName[size_of_array] (array syntax)
A pointer is a symbolic representation of addresses that enables programs to:
Simulate call-by-reference and create/manipulate dynamic data structures
The syntax for declaring a pointer is:
dataType *var_name; (pointer with asterisk)
A reference is an:
Alternative name for an existing variable
The syntax for declaring a reference is:
dataType& ref = <variable>
Symbols that denote calculation, relationship, comparison, and operations on operands are called:
Operators
The increment operator ++ increases the value of a variable by:
1
The decrement operator -- decreases the value of a variable by:
1
In y = ++x;, what happens to the value of x?
x is incremented before the assignment to y
In y = x++;, what happens to the value of x?
x is incremented before the assignment to y
In y = x++;, what happens to the value of x?
x is incremented after the assignment to y
With x = 5; y = ++x;, what are the values of x and y?
x = 6, y = 6
With x = 5; y = x++;, what are the values of x and y?
x = 6, y = 5
Which operator is used to check if two operands are equal?
==
Which operator checks if two operands are NOT equal?
!=
Which logical operator returns True only if both operands are true?
&&
Which logical operator returns True if either of the operands is true?
||
Which logical operator returns True if the operand is false?
!
What is the assignment operator in C++?
=
What does x += y do?
x = x + y
Which bitwise operator performs Bitwise AND on operands?
&
Which bitwise operator performs Bitwise OR on operands?
|