100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Computer Science II Final Exam Graded A+

Rating
-
Sold
-
Pages
26
Grade
A+
Uploaded on
09-01-2026
Written in
2025/2026

Computer Science II Final Exam Graded A+

Institution
Computer Science
Course
Computer Science










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Computer Science
Course
Computer Science

Document information

Uploaded on
January 9, 2026
Number of pages
26
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Computer Science II Final Exam
Graded A+
1) ADT stands for:
A) Algorithm Dependent Template
B) Algorithm Driven Template
C) Abstract Data Type
D) Automatic Data Type
E) None of these - ANSWER-C) Abstract Data Type

1) Data stored here disappears once the program stops running or the computer is
powered down.
A) on a CD
B) in RAM
C) on a backup tape
D) on the disk drive
E) None of these - ANSWER-B) in RAM

1) The ________, also known as the address operator, returns the memory address of
a variable.
A) asterisk ( * )
B) ampersand ( & )
C) percent sign (%)
D) exclamation point ( ! )
E) None of these - ANSWER-B) ampersand ( & )

10) Look at the following statement:

sum += *array++;

This statement ________.
A) is illegal in C++
B) will always result in a compiler error
C) assigns the dereferenced pointer's value, then increments the pointer's address
D) increments the dereferenced pointer's value by one, then assigns that value
E) None of these - ANSWER-C) assigns the dereferenced pointer's value, then
increments the pointer's address

10) The list container provided by the Standard Template Library is a template version
of a ________.
A) singly-linked list
B) doubly-linked list
C) circular-linked list

,D) backward-linked list
E) None of these - ANSWER-B) doubly-linked list

10) This member function reads a single character from a file.
A) read
B) get
C) put
D) input
E) None of these - ANSWER-B) get

11) Appending a node means adding it to the end of a list, and ________ a node means
putting a new node in the list, but not necessarily at the end.
A) concatenating
B) popping
C) clamping
D) inserting
E) None of these - ANSWER-D) inserting

11) This member function can be used to store binary data to a file.
A) binary.out
B) write
C) put <<
D) dataout(binary)
E) None of these - ANSWER-B) write

11) Use the delete operator only on pointers that were ________.
A) never used
B) not correctly initialized
C) created with the new operator
D) dereferenced inappropriately
E) None of these - ANSWER-C) created with the new operator

12) A function may return a pointer, but the programmer must ensure that the pointer
________.
A) still points to a valid object after the function ends
B) has not been assigned an address
C) was received as a parameter by the function
D) has not previously been returned by another function
E) None of these - ANSWER-A) still points to a valid object after the function ends

12) In a circular-linked list, the last node points to the ________.
A) head pointer
B) tail pointer
C) first node
D) closing curly brace of the original structure declaration
E) None of these - ANSWER-C) first node

, 12) To access files from a C++ program, you must use this directive:
A) #include<fileaccess>
B) #include <filestream>
C) #include <fstream>
D) #include <iostream>
E) None of these - ANSWER-C) #include <fstream>

13) If new data needs to be added to a linked list, the program simply ________ and
inserts it into the series.
A) allocates another node
B) removes a node
C) borrows a node from the compiler
D) Either B or C
E) None of these - ANSWER-A) allocates another node

13) To set up a file to perform file I/O, you must declare:
A) at least one variable, the contents of which will be written to the file
B) one or more file stream objects
C) a string object to store the file contents
D) All of these
E) None of these - ANSWER-B) one or more file stream objects

13) Which of the following statements is not valid C++ code?
A) int ptr = &num1;
B) int ptr = int *num1;
C) float num1 = &ptr2;
D) All of these are valid.
E) All of these are invalid. - ANSWER-E) All of these are invalid.

14) ofstream, ifstream, and fstream are:
A) header files
B) libraries
C) data types
D) string arrays
E) None of these - ANSWER-C) data types

14) The advantage a linked list has over a vector is:
A) A linked list can dynamically shrink or grow, and a vector cannot
B) A linked list is smaller than a vector
C) A node can be inserted into or removed from a linked list faster than from a vector
D) Data removal and insertion are more accurate with a linked list than with a vector
E) None of these - ANSWER-C) A node can be inserted into or removed from a linked
list faster than from a vector

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
CLOUND Exam
View profile
Follow You need to be logged in order to follow users or courses
Sold
603
Member since
2 year
Number of followers
389
Documents
10987
Last sold
3 weeks ago
PROF MM

HELLO WELCOME TO THIS PAGE WHERE YOU WILL FIND ALL EXAMS ,STUDY GUIDE ,CASE, TESTBANKS AND ANY OTHER STUDY MATERIALS,

3.9

116 reviews

5
58
4
16
3
29
2
3
1
10

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions