Beruflich Dokumente
Kultur Dokumente
University of Kashmir
Examination: B. Tech. Semester: 1st OLD COURSE
Subject: Electronics and Communication Engineering, Session: 2014-2015
Course No: ECE 104
Maximum Marks: 100
Note: Attempt any five questions, selecting one question from each unit.
Unit 1
Q. No.1 (a) What is a Digital Electronic Computer? Discuss various general applications of
computers. What is the need of memory in DEC? Differentiate between RAM and ROM
and explain why they are known as primary memory?
(20)
Q. No.2 (a) What are input/output devices? Give examples of commonly used
input/output devices.
(b) Perform the following conversions:
1). (FEED) 16 to () 2
2). (17114)8 to () 16
3). (11000110101)2 to () 10
4). (786)10 to () 16
(12,8)
Unit 2
Q. No.3
(10)
(10)
Q. No.4
(5*4)
Unit 3
Q. No.5
(a) What are the various properties of C as a language? What are its advantages over other
high level languages. Briefly discuss various data types used in C.
(20)
Q. No.6
(a) write the syntax for if(), do while(), goto() and switch case() control statements.(10)
(b) Write a C program to find Nth Fibonacci number. N should be read at run time. (10)
Unit 4
Q. No.7
Q. No.8
(a)State the syntax and use of strcmp , strlen , gets , and strset functions. (10)
(b) Write a C program that can read lines of text from console and store them in a text
file named sample.txt . The program should end when END is typed
(10)
Unit 5
Q. No.9 (a) What is a structure? What are nested structures? Define a structure that can store date
of birth. Use this structure within another structure definition capable to store student
information including date of birth, student name, roll number, address and course
name.
(20)
Q. No.10 (a) Give example deceleration statements of a pointer variable, an array of pointers, and
a pointer to pointer. State uses of each.
(10)
(b) Write a C program to read the contents of a text file named sample.txt , display it
On screen and print it on printer.
(10)
---000---