QUIZ 4: Derived Data Types (Functions, Arrays, Pointers, References)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:36 PM on 6/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

26 Terms

1
New cards

Data types that are derived from primitive data types are called:

Derived Data Types (from primitives)

2
New cards

A block of code or program-segment defined to perform a specific well-defined task is called a:

Function (block of code)

3
New cards

The syntax for a function is:

FunctionType FunctionName(parameters) (function syntax)

4
New cards

A collection of items stored at continuous memory locations is called an:

Array

5
New cards

The syntax for declaring an array is:

DataType ArrayName[size_of_array] (array syntax)

6
New cards

A pointer is a symbolic representation of addresses that enables programs to:

Simulate call-by-reference and create/manipulate dynamic data structures

7
New cards

The syntax for declaring a pointer is:

dataType *var_name; (pointer with asterisk)

8
New cards

A reference is an:

Alternative name for an existing variable

9
New cards

The syntax for declaring a reference is:

dataType& ref = <variable>

10
New cards

Symbols that denote calculation, relationship, comparison, and operations on operands are called:

Operators

11
New cards

The increment operator ++ increases the value of a variable by:

1

12
New cards

The decrement operator -- decreases the value of a variable by:

1

13
New cards

In y = ++x;, what happens to the value of x?

x is incremented before the assignment to y

14
New cards

In y = x++;, what happens to the value of x?

x is incremented before the assignment to y

15
New cards

In y = x++;, what happens to the value of x?

x is incremented after the assignment to y

16
New cards

With x = 5; y = ++x;, what are the values of x and y?

x = 6, y = 6

17
New cards

With x = 5; y = x++;, what are the values of x and y?

x = 6, y = 5

18
New cards

Which operator is used to check if two operands are equal?

==

19
New cards

Which operator checks if two operands are NOT equal?

!=

20
New cards

Which logical operator returns True only if both operands are true?

&&

21
New cards

Which logical operator returns True if either of the operands is true?

||

22
New cards

Which logical operator returns True if the operand is false?

!

23
New cards

What is the assignment operator in C++?

=

24
New cards

What does x += y do?

x = x + y

25
New cards

Which bitwise operator performs Bitwise AND on operands?

&

26
New cards

Which bitwise operator performs Bitwise OR on operands?

|