Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CS 1337 Exam 1 Dollinger UPDATED ACTUAL QUESTIONS AND CORRECT ANSWERS

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
02-05-2026
Written in
2025/2026

CS 1337 Exam 1 Dollinger UPDATED ACTUAL QUESTIONS AND CORRECT ANSWERS '/0' is the special sequence character representing the null terminator character in C-String - CORRECT ANSWER True In C++, a C-string is a sequence of characters stored in contiguous memory area that is terminated by a null termination character - CORRECT ANSWER True To manipulate objects of the string class, the str() functions are used - CORRECT ANSWER False - it is used on C-strings The C-string array char companyname[12]; Can hold 12 characters and the null terminator character - CORRECT ANSWER False - it is a char White space encompassess - - CORRECT ANSWER #include "stdafx.h" #includeiostream #includestring Using namespace std; Int main() { Int p = 20; Int *q = &p; Cout &q; Tab, newline, space Return 0; } - CORRECT ANSWER Address of the variable q Array names are constant pointers - CORRECT ANSWER True

Show more Read less
Institution
CS
Course
CS

Content preview

CS 1337 Exam 1 Dollinger UPDATED
ACTUAL QUESTIONS AND CORRECT
ANSWERS
'/0' is the special sequence character representing the null terminator character in C-String -
CORRECT ANSWER True



In C++, a C-string is a sequence of characters stored in contiguous memory area that is terminated by
a null termination character - CORRECT ANSWER True



To manipulate objects of the string class, the str() functions are used - CORRECT
ANSWER False - it is used on C-strings



The C-string array char companyname[12]; Can hold 12 characters and the null terminator character -
CORRECT ANSWER False - it is a char



White space encompassess - - CORRECT ANSWER Tab, newline, space



#include "stdafx.h"

#include<iostream>

#include<string>

Using namespace std;



Int main() {



Int p = 20;

Int *q = &p;



Cout << &q;



Return 0;

, } - CORRECT ANSWER Address of the variable q



Array names are constant pointers - CORRECT ANSWER True



The ampersand operator (&) used in the execution part of a program takes the address of a variable. -
CORRECT ANSWER True



The asterisk (*), also known as the address operator, returns the memory address of a variable when
used in execution source code. - CORRECT ANSWER False - it returns the contents, not the
memory address, also it's not an address operator



The following last 2 code statements produce the same result

Int *p, i;

*(p + i) = 2;

P[i] = 2; - CORRECT ANSWER True



#include "stdafx.h"

#include<iostream>

#include<string>

Using namespace std;



Int main() {



Int aptr[] = {1,2,3,4};

Int numelements = sizeof(aptr)/sizeof(aptr[0]);

Int *endptr = (aptr + numelements);



For (int *p = aptr; p < endptr ; p++)

Cout << *p << " ";

Return 0;

} - CORRECT ANSWER Will display 1 2 3 4

Written for

Institution
CS
Course
CS

Document information

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

Subjects

$11.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
STANFORDTOPGRADES Stanford University
Follow You need to be logged in order to follow users or courses
Sold
56
Member since
1 year
Number of followers
2
Documents
7115
Last sold
3 days ago
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

Read more Read less
3.8

8 reviews

5
3
4
1
3
3
2
1
1
0

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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions