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 thi...
c developers earn more 110k per montharound r800000
staple for windows os development
the first modern programming language
special price now buy for r 77 and save
Written for
University of South Africa (Unisa)
COS1511 - Introduction To Programming 1
All documents for this subject (83)
1
review
By: antonma • 2 months ago
Seller
Follow
shivamnaik
Reviews received
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
{
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 shivamnaik. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $4.12. You're not tied to anything after your purchase.