Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

CS 1337 Test 1 UPDATED ACTUAL QUESTIONS AND CORRECT ANSWERS

Beoordeling
-
Verkocht
-
Pagina's
5
Cijfer
A+
Geüpload op
02-05-2026
Geschreven in
2025/2026

CS 1337 Test 1 UPDATED ACTUAL QUESTIONS AND CORRECT ANSWERS Which of the following is a valid C++ array definition? - CORRECT ANSWER int array[10]; A two dimensional array can have elements of ______ data type(s). - CORRECT ANSWER An array of string objects that will hold 5 names would be declared using which statement? - CORRECT ANSWER string names [5]; What will the following code display? Int numbers [] = (99, 87, 66, 55,101] ; For (int I =1 1; i+4; i++) Cout numbers[i] endl; - CORRECT ANSWER 87,66,55 When you work with a dereferenced pointers, you are actually working with: - CORRECT ANSWER the actual value of the variable whose address is stored in the pointer variable. What will the following code do? Const int SIZE =5; Doublex [SIZE]; For (int i=2; I =SIZE; i++) [X[i] = 0.0;] - CORRECT ANSWER An error will occur when the code runs. one Which of the following statements deletes memory that has been dynamically allocated for an array? - CORRECT ANSWER delete [] array; A pointer variable is designed to store: - CORRECT ANSWER What will the following code output? Memory address Int number = 22; Int * var = &number; Cout var endl; - CORRECT ANSWER The address of the number variable

Meer zien Lees minder
Instelling
CS
Vak
CS

Voorbeeld van de inhoud

CS 1337 Test 1 UPDATED ACTUAL
QUESTIONS AND CORRECT ANSWERS
Which of the following is a valid C++ array definition? - CORRECT ANSWER int array[10];



A two dimensional array can have elements of ______ data type(s). - CORRECT ANSWER one



An array of string objects that will hold 5 names would be declared using which statement? -
CORRECT ANSWER string names [5];



What will the following code display?

Int numbers [] = (99, 87, 66, 55,101] ;

For (int I =1 1; i+4; i++)

Cout << numbers[i] << endl; - CORRECT ANSWER 87,66,55



When you work with a dereferenced pointers, you are actually working with: - CORRECT
ANSWER the actual value of the variable whose address is stored in the pointer variable.



What will the following code do?

Const int SIZE =5;

Doublex [SIZE];

For (int i=2; I <=SIZE; i++)

[X[i] = 0.0;] - CORRECT ANSWER An error will occur when the code runs.



Which of the following statements deletes memory that has been dynamically allocated for an array? -
CORRECT ANSWER delete [] array;



A pointer variable is designed to store: - CORRECT ANSWER Memory address



What will the following code output?

Int number = 22;

, Int * var = &number;

Cout << var << endl; - CORRECT ANSWER The address of the number variable



This is the escape sequence representing the null terminator? - CORRECT ANSWER \0



This function converts a c-string to an integer and returns the integer value. - CORRECT
ANSWER atoi



To determine whether a character entered is a letter of the alphabet, use this function. - CORRECT
ANSWER isalpha



To use the strien function in a program, you must also write #include: - CORRECT
ANSWER <string>



Which of the following is an example of a C++ primitive data type? - CORRECT
ANSWER All of these



You may use a pointer to a structure as a: - CORRECT ANSWER All of these



This is like a structure, except all members occupy the same memory area. - CORRECT
ANSWER union



Before a structure can be used, it must be: - CORRECT ANSWER declared



A function ____ return a structure - CORRECT ANSWER may



A structure ___ contain members of the same data type - CORRECT ANSWER can



A good reason to pass a structure as a constant reference is - CORRECT ANSWER To prevent
changes to the structure members



Look at the following declaration:

Geschreven voor

Instelling
CS
Vak
CS

Documentinformatie

Geüpload op
2 mei 2026
Aantal pagina's
5
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$11.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
STANFORDTOPGRADES Stanford University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
56
Lid sinds
1 jaar
Aantal volgers
2
Documenten
7115
Laatst verkocht
3 dagen geleden
TOPSELLER

Hi there! I'm dedicated to sharing my high-quality study guides and helpful EXAM Materials to make your learning easier and more efficient. All my materials are well-organized and tailored to help you ace your courses. I offer genuine and dependable exam papers that are directly obtained from well-known, reputable institutions as a highly regarded professional who specializes in sourcing study materials. Kindly don't hesitate to contact me, my study guides, notes and exams or test banks, are 100% graded and fully guaranteed

Lees meer Lees minder
3.8

8 beoordelingen

5
3
4
1
3
3
2
1
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen