Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4,6 TrustPilot
logo-home
Examen

Computer Science II Final Exam Graded A+

Note
-
Vendu
-
Pages
26
Grade
A+
Publié le
09-01-2026
Écrit en
2025/2026

Computer Science II Final Exam Graded A+

Établissement
Computer Science
Cours
Computer Science










Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

École, étude et sujet

Établissement
Computer Science
Cours
Computer Science

Infos sur le Document

Publié le
9 janvier 2026
Nombre de pages
26
Écrit en
2025/2026
Type
Examen
Contient
Questions et réponses

Sujets

Aperçu du contenu

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
€11,97
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
CLOUND Exam
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
605
Membre depuis
2 année
Nombre de followers
389
Documents
11040
Dernière vente
1 jours de cela
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 revues

5
58
4
16
3
29
2
3
1
10

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions