CS101 - Assignment 01

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

GHULAM ISHAQ KHAN INSTITUTE OF ENGINEERING SCIENCES AND TECHNOLOGY

MTM
F Introduction to Computing (CS 101-E) (Fall 2021)

Marks (15)
st
Assignment # 1 Semester (1 ) Submission Date: 14-Oct-2021

Q1. Convert the following Binary Numbers to Decimal, Hexadecimal and Octal number equivalent
respectively: [5]

a) 10100111
b) 10101.0001

Q3: Convert the following decimal numbers to octal. [2]

a) 901
b) 321

Q4: Perform the following set of conversions: [1]

a) (98)10 to binary

Q5: What is the difference between Compiler and Interpreter? Which one is better? Discuss. [2]

Q6: Write an algorithm to compute the following task: [5]

Compute and display the total cost of apples given the number of apples purchased is 10
and cost per apple is 5Rs.

Instructor Ms. Abinta Mehmood

You might also like