Semester
Subject
Year
Tribhuwan University
2080
Bachelor Level / First Year / First Semester / Science
(Introduction to Information Technology)
Full Marks: 60
Pass Marks: 24
Time: 3 Hours
Candidates are required to give their answers in their own words as for as practicable.
The figures in the margin indicate full marks.
Long Answers Questions
Hexadecimal (base-16) and Octal (base-8) number systems are used in computers as shorthand representations of binary numbers, making them easier for humans to read, write, and remember.
Why Binary Alone is Not Enough for Humans:
1010111011110001 is hard to read and prone to errors.Reasons for Using Hexadecimal:
AEF1).Reasons for Using Octal:
chmod 755).Key Advantages (Common to Both):
Step i: Convert 23 to Binary
| Division | Quotient | Remainder |
|---|---|---|
| 23 ÷ 2 | 11 | 1 |
| 11 ÷ 2 | 5 | 1 |
| 5 ÷ 2 | 2 | 1 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Step ii: Convert 12 to Binary
| Division | Quotient | Remainder |
|---|---|---|
| 12 ÷ 2 | 6 | 0 |
| 6 ÷ 2 | 3 | 0 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Step iii: Perform Binary Addition
Carry: 1 1 1
1 0 1 1 1 (23)
+ 0 1 1 0 0 (12)
───────────────
1 0 0 0 1 1 (Result)
Step iv: Verification using Decimal System
Convert the result back to decimal:
Decimal verification:
Conclusion: Hexadecimal and octal systems serve as human-friendly representations of binary data, and binary addition follows simple rules (0+0=0, 0+1=1, 1+1=10) that can always be verified by converting back to decimal.
Short Answers Questions