0% found this document useful (0 votes)
2 views3 pages

Module 1 Important Questions

The document contains important questions for Module 1 of CSE1001, focusing on programming for problem solving. It includes topics such as compilation steps, number system conversions, flowchart designs for algorithms, and IEEE-754 floating point representation. Each question is aimed at enhancing understanding of fundamental programming concepts and techniques.

Uploaded by

maitynairit
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Module 1 Important Questions

The document contains important questions for Module 1 of CSE1001, focusing on programming for problem solving. It includes topics such as compilation steps, number system conversions, flowchart designs for algorithms, and IEEE-754 floating point representation. Each question is aimed at enhancing understanding of fundamental programming concepts and techniques.

Uploaded by

maitynairit
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Module 1 Important Questions

CSE1001 | Programming for Problem Solving

Prof. Jhalak Dutta Department of CSE [Link]@[Link]


Module 1 Important Questions

1. Describe all the steps of compilation of a C program. Mention the intermediate files generated at each
step.
2. Find the value of 𝑟such that (355)7 = (160)𝑟 where 7 and 𝑟represent bases of number systems.
3. Draw a flowchart to find the greatest common divisor (GCD) of two given integers.
4. Convert the following:
(i) (87.625)10 = (? )2
(ii) (42𝐴. 12)16 = (? )10
(iii) (1472.65)8 = (? )2
5. Convert the decimal number 2.6 to its equivalent IEEE-754 32-bit floating point representation.
6. State the difference between a compiler and an interpreter.
7. Draw a flowchart for finding out the number of 1s and 0s in an integer number.
8. Compute (22–12)in the following two ways:
(i) Using the standard rule of binary subtraction
(ii) Using 2's complement method
9. Find the octal representation of (𝐴𝐵34. 𝐹9)16.
10. Find the sum of the following binary numbers represented in a 5-bit sign magnitude register and that
uses 1’s complement to represent negative numbers:
(i) −0110 and −0111
(ii) +0011 and −1101
11. Draw a flowchart to print the sum of the digits of a number given by the user.
12. Convert (1234.75)10into its equivalent octal number.
13. Draw a flowchart to determine whether a given number is a perfect number.
14.
(i) Convert (1423.75)10into its equivalent octal number.
(ii) Convert (𝐴8𝐹6.13𝐵)16 into its equivalent decimal number.
Show all intermediate steps.
15. Convert the decimal number 0.125 into IEEE-754 single precision floating point representation.
16. Explain the role of the following stages in C compilation:
• Preprocessor
• Compiler
• Assembler
• Linker
17. Convert the decimal number 45.375 into:
• (i) Binary
• (ii) Octal
• (iii) Hexadecimal
18. Convert the binary number (1101101.101)2 into its decimal equivalent.
19. Draw a flowchart to reverse the digits of a number entered by the user.

Prof. Jhalak Dutta | Assistant Professor | Department of CSE |[Link]@[Link] 1


Module 1 Important Questions

20. Convert (48𝐴6. 𝐵2)16into decimal. Show complete steps.


21. Compute (−234.25)10 + (75.125)10 using 1’s complement method.
22. (56.125)10 = (? )8 = (? )2 . Show the conversion steps.
23. Draw a flowchart of an optimal algorithm to check whether a positive integer is prime or not.
24. Convert (145.625)10into IEEE-754 32-bit single precision format.
25. Perform the following base conversions:
(i) (6𝐴7𝐶. 5𝐷)16 = (? )10
(ii) (1472.65)8 = (? )2
26. Compute 5–18using 2's complement method. Assume each number is stored using 1 byte.
27. Draw a flowchart to determine whether a given number is a palindrome number.
28. Explain the difference between:
• 1’s complement
• 2’s complement
• Sign magnitude representation
29. Convert the decimal number –13.75 into:
(i) Binary (using 2’s complement for integer part)
(ii) IEEE-754 single precision floating point format

Prof. Jhalak Dutta | Assistant Professor | Department of CSE |[Link]@[Link] 2

You might also like