click below
click below
Normal Size Small Size show me how
[F1-FORMATIVE] CS15
[F1-FORMATIVE] Introduction to Data Structures / Review of Pointers
| Question | Answer |
|---|---|
| It is is representation of the logical relationship existing between individual elements of data. Group of answer choices Data Structure Program Data Algorithm | Data Structure |
| A Tree is unordered lists which use a ‘hash function’ to insert and search. Group of answer choices True False | True |
| Dynamic Array Is an array whose size is not specified when you write the program, but is determined while the program is running. Group of answer choices True False | True |
| True/False: Abstract Data Type (ADT) stores data and allow various operations on the data to access and change it. Group of answer choices True False | True |
| char &ch is valid pointer declaration Group of answer choices True False | False |
| The address of operator is a unary operator that returns the address of its operand. Group of answer choices -> & @ ~ | & |
| It is a memory address of a variable. Group of answer choices Variable Pointer Pointer Variable Address of a Variable | Pointer |
| Consider Program A: Blank #[3]: Supply the code that is appropriate in the blank. [MSQ-2B] Pointers as Dynamic Variables.JPG Group of answer choices new New new() New() | new |
| Stack is a special area of memory that is reserved for dynamically allocated variables. Group of answer choices True False | False |
| If there is insufficient available memory to create the new variable, then new returned a special value named NIL. Group of answer choices True False | False |
| -- (T/F) The program makes use of typedef. | T |
| -- (T/F) The data type of the pointer variable is double. | F |
| -- (T/F) Variable a is an ordinary array. | F |
| -- (T/F) p = a is a valid statement. | T |
| -- (T/F) p = &a is a valid statement. | T |
| -- What is the value of a[3]? | 3 |
| -- After performing the loop that increments the value of each element by 1, what is the value of p[7]? | 8 |
| -- (T/F) In the program, changes in p will affect a. | T |
| -- What is the size of the array? | 10 |
| -- (T/F) p is an example implementation of dynamic array. | T |
| new attempt || TRUE/FALSE: Program = Algorithms + Data Structures Group of answer choices True False | True |
| Primitive data structures are derived from non-primitive data structures. Group of answer choices True False | False |
| Abstraction means separating the logical properties from the implementation details. Group of answer choices True False | True |
| True/False: ADTs support abstraction, encapsulation, and information binding. Group of answer choices True False | True |
| TRUE/FALSE: The * operator in front of a pointer variable produces the variable to which it points. When used this way, the * operator is called the dereferencing operator. Group of answer choices True False | True |
| TRUE/FALSE: There is a name associated with a pointer data type in C++. Group of answer choices True False | False |
| Pointer Variable is the content that is stored in the memory address. | True |
| Consider Program A: Blank #[8]: Supply the code that is appropriate in the blank. [MSQ-2B] Pointers as Dynamic Variables.JPG Group of answer choices *p1 p1 *p2 p2 | *p2 |
| Consider Program A: Blank #[6]: Supply the code that is appropriate in the blank. [MSQ-2B] Pointers as Dynamic Variables.JPG Group of answer choices int INT my type mytype | int |
| You can assign a name definition and then use the type name to declare variables using typedef keyword. Group of answer choices True False | True |
| Given the program below, answer the succeeding questions: MS-2C-POINTER5.jpg -- What is the name of the struc? | emp |
| Given the program below, answer the succeeding questions: MS-2C-POINTER5.jpg -- What is the name of the pointer variable? | employee |
| Given the program below, answer the succeeding questions: MS-2C-POINTER5.jpg -- What data type can the pointer variable points to? | char |
| Given the program below, answer the succeeding questions: MS-2C-POINTER5.jpg -- (T/F) The variable employee in the main program and in the function Output are the same. | F |
| Given the program below, answer the succeeding questions: MS-2C-POINTER5.jpg -- (T/F) The type of parameter passing used from main program to function Output is by reference. | F |
| Given the program below, answer the succeeding questions: MS-2C-POINTER5.jpg -- (T/F) It is also possible to pass a struct into a function by value. | T |
| Given the program below, answer the succeeding questions: MS-2C-POINTER5.jpg -- How fields are there in emp? | 4 |
| Given the program below, answer the succeeding questions: MS-2C-POINTER5.jpg -- (T/F) The new operator is necessary to provide memory allocations for employee. | T |
| Given the program below, answer the succeeding questions: MS-2C-POINTER5.jpg -- (T/F) The only function called in the main program is Accept(). | T |
| Given the program below, answer the succeeding questions: MS-2C-POINTER5.jpg -- (T/F) The program is capable of accepting information of multiple employees. | F |