Computer Programming & Utilization - Dec 2014
First Year Engineering (Semester 2)
TOTAL MARKS: 100
TOTAL TIME: 3 HOURS (1) Question 1 is compulsory.
(2) Attempt any four from the remaining questions.
(3) Assume data wherever required.
(4) Figures to the right indicate full marks.
Solve any one question from Q1 (a) & Q1 (b)
1 (a) (i) Software required to run the hardware is known as
(a) Task Manager
(b) Task Bar
(c) Program Manager
(d) Device Driver(1 marks) 1 (a) (ii) Which the following is application software?
(b) Power Point
(d) None of the abov(1 marks) 1 (a) (iii) Which of the programming language is said to be machine
(a) High Level Language
(b) Machine Language
(c) Assembly Language
(d) All the Above(1 marks) 1 (a) (iv) What will be a meaning of 1KB of memory
(a) 1 Kit Bit
(b) 1 Kilo Byte
(c)1 Kernel Boot
(d) 1 Key Block(1 marks) 1 (a) (v) Which of the following is smallest Network?
(c) WAN(1 marks) 1 (a) (vi) FTP stands for
(a) File Transport Protocol
(b) File Transfer Protocol
(c) Folder Transfer Protocol(1 marks) 1 (a) (vii) When a key is pressed on keyboard, which standard is used for converting the keystroke into the corresponding bits
(d) ISO(1 marks) 1 (b) (i) Which one is input device?
D) Printer(1 marks) 1 (b) (ii) Which part of CPU perform calculations and make decision
A) Alternate Logic Unit
B) Arithmetic Logic Unit
C) Arithmetic Local Unit
D) Alternate Local Unit(1 marks) 1 (b) (iii) RAM stands for
A) Random Access Memory
B) Random Automatic Memory
C) Read Access Memory
D) Read Automatic Memory(1 marks) 1 (b) (iv) The memory capacity of a computer is represented in
A ) Kilobits
B) Memory chips
D) None of the above(1 marks) 1 (b) (v) HTML is used to design
B) Multimedia Objects
D) Tables and frames.(1 marks) 1 (b) (vi) What type of memory is volatile?
D) Hard Drive(1 marks) 1 (b) (vii) With regards to Email Addresses:
A) They must always contain an @ symbol
B) They are case sensitive
C) They can never contain space
D) All of above(1 marks) 1 (c) (i) Structure can contain elements of the same data type
(b) false(1 marks) 1 (c) (ii) Which of the following operator is used to select a member of a structure variable
(c) : (colon)
(d) ;(semicolon)(1 marks) 1 (c) (iii) C is a ___ language
(a) High Level
(b) Low Level
(c) Middle Level
(d) Machine Level(1 marks) 1 (c) (iv) A declaration float a,b; occupies ______of memory?
(a) 1 bytes
(d) 16 bytes(1 marks) 1 (c) (v) Which function reallocates memory?
(d) None of these(1 marks) 1 (c) (vi) Which of the following is used as a string termination character?
(d) None of these(1 marks) 1 (c) (vii) File manipulation functions in C are available in which header file?
(d) files.h(1 marks) 2 (a) Explain the different data types of C language.(3 marks) 2 (b) Recall the definition of dynamic memory allocation? Differentiate between malloc and calloc?(4 marks) 2 (c) What is string? Write a program to concatenate two strings without using built in function.(7 marks) 3 (a) Compare "call by value" & "call by reference" with suitable example.(3 marks) 3 (b) Explain inline function with example.(4 marks) 3 (c) Write a program to print the following pattern
4 (a) What is Pointer in C? Explain its advantages.(3 marks)
4 (b) Write a C Program to check whether the given number is prime or not.(4 marks)
4 (c) Explain various categories of functions with suitable example.(7 marks)
5 (a) What do you understand by recursive function? Explain with small example.(3 marks)
5 (b) Illustrate the concept of "structure"? Explain how can we access structure members?(4 marks)
5 (c) Write an algorithm and draw a flowchart to print first N Fibonacci numbers.(7 marks)
6 (a) Distinguish between Structure and Union.(3 marks)
6 (b) Write a program to do swapping of two elements using function with two pointers as arguments.(4 marks)
6 (c) Discuss about various operators used in C language.(7 marks)
7 (a) Describe file management? Recall various file modes.(3 marks)
7 (b) Explain following string manipulation function.
strcat( ), strcpy( ) ,strcmp( ) and strlen( )(4 marks) 7 (c) What do you understand by looping? Explain different types of loops in C with example and compare them.(7 marks)