You are on page 1of 21

Nitte Meenakshi Institute of Technology

(A Unit of Nitte Education Trust(R), Mangalore)


(AN AUTONOMOUS INSTITUTION AFFILIATED TO VISVESVARAYA TECHNOLOGICAL UNIVERSITY, BELGAUM)
APPROVED BY UGC, ACCREDITED BY NATIONAL BOARD OF ACCREDITATION (AICTE), NEW DELHI & NAAC ‘A’ Grade
P.B. No. 6429, Yelahanka, Bangalore 560-064,

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


1
Topics Here
•Introduction to computers
•What is a computer?
•Block diagram of computer
• hardware vs software
•How to develop a program?
•Software development lifecycle
•Structured programming
•Sample C program - C main and library function

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


2
Topics Here

Exercise 1
Convert 11000 to decimal number

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


3
Topics Here

Exercise 2
Convert decimal 12 into binary number

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


4
Topics Here

Exercise 3
Convert E4 into decimal number

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


5
Topics Here

Exercise 4
Convert decimal 200 into hexadecimal number

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


6
Topics Here

Exercise 5
Convert 11001001 into decimal number

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


7
Topics Here

Exercise 6
Convert octal number 37 into decimal number

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


8
Topics Here

Exercise 7
For 8-bit unsigned number find the range of values

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


9
Topics Here

Exercise 8
For 5-bit signed number find the range of values

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


1
Topics Here

Exercise 9
Using ASCII table find ASCII code for - 2, f

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


1
Topics Here

Exercise 10
If address bus has 10 signal lines, how many memory locations are
there?

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


1
Topics Here

Exercise 11
Write a C program to print any one number in range
(decimal number 0 to 99)

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


1
Topics Here

Exercise 12
Write a C program to print any negative number in range
(decimal number -10 to 10)

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


1
Topics Here

Exercise 13
Write a C program to print any positive number in range
(decimal number -10 to 10)

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


1
Topics Here

Exercise 14
Write a C program to print decimal number 10 in hexadecimal (lower
case)

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


1
Topics Here

Exercise 16
Write a C program to print decimal number 10 in hexadecimal (upper
case)

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


1
Topics Here

Exercise 17
Write a C program to print decimal number 10 in octal

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


1
Topics Here

Exercise 18
Write a C program to print character N

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


1
Topics Here

Exercise 19
Write a C program to print NMIT

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


2
Topics Here

Exercise 20
What is the output?
printf(“%%”);

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY


2

You might also like