• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 18 pages
Exam (elaborations)

Cps 188 Exam Study Set With Complete Solutions!!

Document preview thumbnail
Preview 3 out of 18 pages

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

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

Document information

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

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

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
3.6
(16)
Sold
76
Followers
45
Items
2101
Last sold
1 week ago




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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions