Uploaded by Karma Dechen Dema

CPL101 assgn 01

advertisement
CPL101-ASSIGNMENT 01
CRITERIA
1.
2.
3.
4.
5.
Novelty – 2
Cleanness/handwriting/creativity – 1
No Errors – 1
On time submission – 1
Total - 5
REDIRECTION
1.
2.
3.
4.
Must attached a mark entry form
Criteria
marks
score
novelty
2
Cleanness/hw/creativity
1
No errors
1
On time submission
1
Total
5
Attach one plagiarism declaration form
Submission date: 20th September i.e., on Next Monday from now, time 9:00 AM to 11:00 AM
If submission is delayed by one day, 0.5 marks will be deducted from the submission marks and if
more than two days, assignment will be rejected.
Questions
1.
2.
3.
4.
Write a story-theory behind Big and little Endian and state some application(hardware) that follows
big/little endian. Which do you think is best and why?
Write four differences between UNICODE and ASCII code and their application. State two pros and cons of
both.
Write differences between IF-ELSE and SWITCH CASE selection statement.
Write FLOWCHART and PSEUDOCODE for the following questions:
a. Relates two input integers from the runtime initialization
i. Checks if two integers are equal, if not
ii. Check which one is greater or lesser
b. Check whether a number is an Armstrong number or not
i. Example 153 is Armstrong number since,
153 = 13 + 53 + 33
c. Print Fibonacci series where the limit is given by the user
i. Eg. User entered N=9
Output should display: 0 1 1 2 3 5 8
5.
Do Single and double IEEE 754 FPR for the following
d. (754.45)8
e. 1134.89
f. (1001000101)2
Download