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

COS1511 LATEST EXAM PACK 2025 {DETAILED QUESTIONS AND ANSWERS}

Rating
-
Sold
-
Pages
127
Grade
A+
Uploaded on
29-05-2025
Written in
2024/2025

COS1511 LATEST EXAM PACK 2025 {DETAILED QUESTIONS AND ANSWERS}

Institution
Course











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

Written for

Institution
Course

Document information

Uploaded on
May 29, 2025
Number of pages
127
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

lOMoAR cPSD| 52021443




Downloaded by Master Vincent ()

, lOMoAR cPSD| 52021443




Started on Sunday, 28 April 2024, 8:36 PM
State Finished
Completed on Monday, 29 April 2024, 2:50 PM
Time taken 18 hours 13 mins
Marks 46.00/56.00
Grade 82.14 out of 100.00
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is a valid variable name?
a.
3 com
b.
three_com
c.
3 _com Question text
Which of the following statements is NOT legal?
d.
a.
ampersand&
char ch = 'b';
Feedback
b.
Your answer is correct.
char ch = '0';
The correct answer is:
c.
three_com
char ch = 65;
d.
char ch = "cc";
Feedback
Your answer is correct.
The correct answer is:
char ch = "cc";
Question 2
Correct
Mark 1.00 out of 1.00
Flag question
Question 3
Correct
Mark 1.00 out of 1.00




Downloaded by Master Vincent

()

, lOMoAR cPSD| 52021443




Flag question

Question text
What is the value of x after the following statements?
float x;
x = 15/4;
a.
3.75
b.
4.0
c.
3.0
d.
60
Feedback
Your answer is correct.
The correct answer is:
3.0




Question text
What is the value of x after the following statements?
int x;
x = 15/4;
a.
15
b.
3
c.
4
d.
3.75
Feedback
Your answer is correct.
The correct answer is:
3
Question 4
Correct
Question text
What is the value of x after the following statements?
int x;
x = 15 % 4;

Downloaded by Master Vincent

()

, lOMoAR cPSD| 52021443




Mark 1.00 out of 1.00
Flag question
Question 5
Correct
Mark 1.00 out of 1.00
Flag question
a.




Feedback
Your answer is correct.
The correct answer is:
3
15
b.
4
Question text
What is the value of x after the following statement?
float x;
x = 3..0 + 3 + ;
a.
5.75
b.
5 ,75
c.
1.75
d.
3.75 Question text
Which C++ statements correctly declare a variable called age, and prompt a user for his/her age.
Feedback
a.
Your answer is correct.
int age = 0;
The
coutcorrect answer
>> "Please is:your age: ;
enter
3.75
cin << age;
b.
int age = 0;
cout << "Please enter your age: ";
cin >> ages;


Downloaded by Master Vincent ()

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.
LearnedWriter University of south africa
Follow You need to be logged in order to follow users or courses
Sold
905
Member since
2 year
Number of followers
95
Documents
1174
Last sold
2 days ago
LearnedWriter

On this page you will find all documents offered by seller LearnedWriter.

4.1

108 reviews

5
57
4
21
3
20
2
5
1
5

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