MidtermExam Intro I
MidtermExam Intro I
Midterm Examination
Date: Dec. 9th; Duration: 90 minutes
Open book; Online, for ODD student ID.
Full name: Nguyen Van Sinh Full name: Vo Thi Luu Phuong
Proctor 1 Proctor 2
Signature Signature
STUDENT INFO
Student name:
Student ID:
Question 2. (5 points) What is the format that describes an image in terms of lines and geometric
shapes?
Question 3. (5 points) Write a program to get 100 integers from standard input and print the
minimum number?
(Correct algorithm: 80% of points; correct syntax, and properly run: 20% of points)
Question 4. (5 points) Evaluate the expression 𝐴 + 𝐵, where A is 11111100 and B is 10000010, using
the two’s complement.
Question 5. (10 points) Explain how base 2, base 8, and base 16 number systems are related?
Express the following bit pattern 11011010011110101 in octal and in hexadecimal notation?
Question 6. (5 points) Compare and contrast between random access memory or read-only
memory?
Question 7. (5 points) Convert the real number 2.35 to binary (maximum 4 binary places).
Question 8. (10 points) Summarize in around one-third of a page the history of hardware computing?
Question 9. (5 points) Write a machine language code printing your first name?
Question 10. (5 points) Given the following state of memory (in hexadecimal)
00A0 A0
00A1 15
00A2 00
00A3 FF
What is the content of the A register after the execution of the following two instructions?
C1 00 A0
60 00 01
Question 11. (10 points) Draw a circuit diagram corresponding to the following Boolean expression:
𝐴′𝐵 + (𝐵 + 𝐶)’ ? Show the true table?
2 /4
HCMC National University Student Name:………...……………………….
International University Student ID:…………………………….
------------
Question 12. (5 points) Find and correct the errors in the following assembly program:
Question 13. (10 marks) Write a (high-level language) program print the integer numbers from 1 to
100?
(Correct algorithm: 80% of points; correct syntax, and properly run: 20% of points)
Question 14. (10 marks) Write an assembly program to print the integer numbers from 1 to 100?
(Correct algorithm: 80% of points; correct syntax, and properly run: 20% of points)
- END –
3 /4
HCMC National University Student Name:………...……………………….
International University Student ID:…………………………….
------------
NOTES
4 /4