Professional Documents
Culture Documents
Assignment
Solo Group Quizbased
Type
Submission
Online Inclass Either
Type
Submission 1. Attach this cover
Guidelines page.
1. Submit .cpp, .jpeg in Follow guidelines
2. Only use A4size
(Read under the designated for the submission
blank white paper
Submission SLATE folder in type checked.
(70g).
Type Assignments tab.
3. Staple all pages.
Column)
4. Due at class start.
Q1.Completethecomputerandprogrammersmodelsgivenbelow.Togetmaxcreditshowall
yourworking(directanswerswillnotbeconsidered).
ComputerView ProgrammerView
Address(DEC) Value(HEX) Type Value(DEC)
.
.
.
182424 00
182425 00
Integer
182426 06
182427 06
182428 42 Character
182429
182430
182431
182432
Double 8421.1248
182433
182434
182435
182436
182437 01
182438 93
Float
182439 E8
182440 6B
182441 01
182442 93
Integer
182443 E8
182444 6B
182445 CD
Short
182446 AB
182447
182448
Integer 101325
182449
182450
.
.
.
Q3.Whatistherangeofsignedvaluesthatcanberepresentedina32bitdatabus?Express
youranswerindecimal.
Q4.HowmanyKbarethereinamemoryof4MBsize?
Q5.Outofthefollowingdecimalvaluesdetermineiftheycanbefitinmemoryornot?
Ifnotthenspecifythereasonwhy.
IfyesthenwritetheHEXvalue.
Q6.Highlightdifferencesbetweencharacterarrays,CstringsandC++Strings.
Q7.Researchontheinternetto:
a) Brieflyexplaininaparagraphofabout100wordswhatobjectorientedprogrammingis.
b) MentiononefeatureofCthatisnotpartofC++andviceversa.
Q8.Whenusingfileinput,whyareEOFcontrolledloopsusedinsteadofsentinelcontrolled
loops?
:-