High-Level Programming Test Questions & Answers 2022
1 view 0 purchase
Course
High-Level Programming
Institution
High-Level Programming
High-Level Programming Test
Numeric Grade: 132 / 150 pts
1. Question :
(TCO 2) If firstName and lastName are string object variables,
which statement can be used to combine (append or
concatenate) the two into a single string variable?
Student Answer: fullName = firstName + lastName;
fullNam...
high level programming test numeric grade 132 150 pts 1 question tco 2 if firstname and lastname are string object variables
which statement can be used to combine append or concatenate the
Written for
High-Level Programming
All documents for this subject (2)
Seller
Follow
abram23
Reviews received
Content preview
High-Level Programming Test
Numeric Grade: pts
1. Question :
(TCO 2) If firstName and lastName are string object variables,
which statement can be used to combine (append or
concatenate) the two into a single string variable?
Student Answer: fullName = firstName + lastName;
fullName = firstName, lastName;
fullName = firstName & lastName;
fullName = firstName && lastName;
Comments:
Question 2 Question :
. (TCO 2) What is the value of i after the following code fragment
executes?
int i = 2;
int k = 5 ;
i *= k + 1;
, Question 4 Question :
. (TCO 2) Which of the following is not a C++ logical operator?
Student Answer: #
&&
„„
!
Comments:
Question 5 Question :
. (TCO 2) What is the result of 5 % 7?
Student Answer: 0
2
5
7
Comments:
Question 6 Question :
. (TCO 2) Given the following code to fill an array,
int X;
int data[100];
for(int i = 0; i <= X; i++)
data[i] = i;
What should the value of X be?
Student Answer: 100
101
99
i
Comments:
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller abram23. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $17.49. You're not tied to anything after your purchase.