Upload
er-rouf-ulalam-bhat
View
215
Download
0
Embed Size (px)
DESCRIPTION
question paper for computer fundamentals in engineering
Citation preview
PG Department of Electronics & Instrumentation Technology
University of Kashmir Examination: B. Tech. Semester: 1
st OLD COURSE Subject: Electronics and Communication Engineering, Session: 2014-2015
Course No: ECE 104 Paper: COMPUTER FUNDAMANTALS
Maximum Marks: 100 Minimum Pass Marks: 45 Time: 3 hours
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 (a) What is an algorithm? Write an algorithm to reverse digits of a number. (10)
(b) Draw a flowchart to find whether the given number is prime or not. (10)
Q. No.4 Write short notes on any four of the following.
a) assembler b) loader c) linker d) compiler e) editor f) interpreter (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 Write a C program to find a string in a group of 10 strings stored in two dimensional
Character array. (20)
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---