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)

CPS 188 EXAM STUDY SET WITH COMPLETE SOLUTIONS!!

Rating
-
Sold
-
Pages
18
Grade
A+
Uploaded on
14-04-2025
Written in
2024/2025

CPS 188 EXAM STUDY SET WITH COMPLETE SOLUTIONS!!...

Institution
CPS 188
Module
CPS 188

Content preview

CPS 188 EXAM STUDY SET WITH COMPLETE SOLUTIONS!!


# bits in byte - ANSWER 8



# bytes for character - ANSWER 1



# of bytes for integers - ANSWER 4



# of bytes float (single and double ) - ANSWER



A (Decimal,Binary, & Oct) - ANSWER 10 , 1010, 12



B ((Decimal,Binary, & Oct)) - ANSWER 11, 1011, 13



C (Decimal,Binary, & Oct) - ANSWER 12, 1100, 14



D (Decimal,Binary, & Oct) - ANSWER 13, 1101,15



E(Decimal,Binary, & Oct) - ANSWER 14,1110,16



F(Decimal,Binary, & Oct) - ANSWER 15,1111,17



10(hex) to decimal - ANSWER 16



What do libraries end with - ANSWER .h

,Single line comment - ANSWER Starts with // and includes all the following text on that
line



multiple line comments - ANSWER begin with /* and end with */



List of reserved words(can't be variables) - ANSWER 1.double

2.char

3.int

4.do

5.float

6.if

7.return

8.sizeof

9.void

10.void

11.while

12.typedef

13.struct

14.switch

15.for

16.else



What can be used in a. Variable - ANSWER 1. _

2.charaters

3. Numbers(can't start )



int place holder - ANSWER %d

, Double place holder - ANSWER %lf



Float place holder - ANSWER %f



a=45

What does printf("%-5d",a) output - ANSWER 45###



Double a=45.8

What does printf("%lf",a) output - ANSWER 45.800000 (6decimal places)



What does % do - ANSWER returns the remainder of the division



If a = -32.4578 what does %8.3 output - ANSWER #-32.458



Does formation such as %3.2lf effect the value of the varrible - ANSWER No , only screen
appearance



Format for fprintf - ANSWER (filename,"%placeholder", varrible(if needed))



What type of functions are math.h - ANSWER Double



floor(x) - ANSWER Largest whole number that is smaller

eg floor(37.5) = 37



ceil(x) - ANSWER The smallest whole number that is bigger

eg ceil(37.1)=38

Written for

Institution
CPS 188
Module
CPS 188

Document information

Uploaded on
April 14, 2025
Number of pages
18
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.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


Also available in package deal

Thumbnail
Package deal
CPS 188 PACKAGED EXAMS!!
-
5 2025
$ 68.45 More info

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.
Braxton West Virgina University
View profile
Follow You need to be logged in order to follow users or courses
Sold
67
Member since
2 year
Number of followers
45
Documents
2078
Last sold
2 weeks ago

3.3

12 reviews

5
2
4
5
3
2
2
0
1
3

Trending documents

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 revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions