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

Cos1511 Exam Answers january february 2023

Rating
5.0
(1)
Sold
3
Pages
9
Grade
A+
Uploaded on
26-01-2023
Written in
2022/2023

The Cos1511 module is based on C++ A Staple in the development of cool games including the one you are playing right now The most versatile programming language for building IoT devices your smartwatch, your smartphone was all coded in C++ C++ will earn you $ or R 1 931 200 Buying this material will increase your chance of succeeding by 90% Buy now and see yourself earning R 1 931 200

Show more Read less
Institution
Course









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

Written for

Institution
Course

Document information

Uploaded on
January 26, 2023
Number of pages
9
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Cos 1511 Examinations January/February 2023


Question 1


1) Since x is initialised, and x is less than 8 , the value of x will start from 0
and end at 8 according to the condition set in the while loop.

Option 4: 0 1 2 3 4 5 6 7 8


2) Since integer x is unknown, int y=10,int z=3
implies that x=y*z-3=10*3-3=30-3=27
the correct option is 4
x=27


3) option 3: 15


4) option 2: Where is the

5) option 4: 8

6) //calculations


input=5


x>=5 meaning the value of x is greater or = to 5

5 *14/100
70/100=0.7
5+0.7=5.7=option 2

, option 2: 2.7




7) // calculations

3*10/100=3/100=0.3+3=option 3


option 3: 3.3


8) option 1: true&&true&&true since all conditions=1



9) option 3: x has a value


10) option 2: enum //there is no such data type


Question 2

2a)

a) *
b) 1 2 3 4 5 6 7 8 9 10
c) **
d) 12 11 10 9
e) *****
f) 12345


2b)

while (age <30 && finalMark>=65) //the while loop


{
$4.87
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
shivamnaik
5.0
(1)

Reviews from verified buyers

Showing all reviews
1 year ago

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
shivamnaik University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
6
Member since
3 year
Number of followers
2
Documents
15
Last sold
5 months ago
The Innovaters Academy, Where winning never ends

We cater for all your academic needs from study guides to exam past papers pertaining to the school of computing at the University of South Africa Moreover we also provide the best advice to all future Bill Gates , Elon Musks and Jeff Bezos`es out there For more information on all your academic needs ,please contact the following number; 071 116 2030 Mr SS Naik

5.0

1 reviews

5
1
4
0
3
0
2
0
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 exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT 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