Computer Programming & Utilization - Dec 2013
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.
1 (a) (i) Which of the following will you find on an inkjet printer?
(A) It has an ink ribbon.
(B) It has an ink cartridge.
(C) It has high voltage power supply.
(D)It uses toner powder(1 marks) 1 (a) (ii) Why is it important to keep Windows updated using the Windows update website or automatic updates?
(A)To keep your system secure and to install critical updates.
(B)To keep your system fast.
(C)To keep your system optimized for the new game.
(D)To keep your system from overheating.(1 marks) 1 (a) (iii) Which protocol used to display web pages?
(A) SNMP (B) SMPT (C) Telnet (D) HTTP(1 marks) 1 (a) (iv) In Microsoft Excel you can use the horizontal and vertical scroll bar to
(A) Split a worksheet to two panes
(B) Edit the contents of a cell
(C)View different rows and columns
(D) View different worksheet(1 marks) 1 (a) (v) The system unit of a personal Computers typically contains all of the following except:
(A) Microprocessors (B)Disk controller (C) Serial interface (D) Modem(1 marks) 1 (a) (vi) Which of the following is a read only memory storage device?
(A) Floppy Disc (B) CD-ROM (C) Hard Disk (D)None of these(1 marks) 1 (a) (vii) BIOS is an abbreviation of
(A) Basic Input Output System
(B) Best Input Output System
(C) Basic Input Output Symbol
(D) Base Input Output System (1 marks) 1 (b) (i) A Pointer is?
(A) A keyword used to create variables.
(B) A variable that stores address of an instruction.
(C) A variable that stores address of other variable.
(D) All of above.(1 marks) 1 (b) (ii) Which of the following function is more appropriate for reading in a multiword string?
(A) printf(); (B) scanf(); (C) gets(); (D) puts();(1 marks) 1 (b) (iii) What are the different types of real data types in C?
(A) float, double.
(B)short int, double, long int.
(C) double, long int, float
(D)float, double, long double(1 marks) 1 (b) (iv) What do you call the translator which takes assembly language program as input and produce machine language code as output?
(A) Compiler (B) Interpreter (C) Debugger (D) Assembler(1 marks) 1 (b) (v) Which of the following is a symbol for AND operator?
(A) II (B) & (C) && (D) $$(1 marks) 1 (b) (vi) Which of the following is a correct statement?
(A) Variable name must start with underscore
(B) Variable name must have digit
(C) Variable name must have white space character
(D) Keyword cannot be a variable name(1 marks) 1 (b) (vii) What will be the output of following code.
int x = 10, y=15;
x = x++;
y = ++y;
printf(?%d, %d ? , x, y);
(A) 10, 15 (B) 10, 16 (C) 11, 16 (D) 11, 15 (1 marks) 2 (a) Explain various Operators used in C language.(7 marks) 2 (b) Write an algorithm and draw the flow chart to find the largest of the given three numbers ? A ,B and C. (7 marks) 3 (a) Draw and explain the block diagram of Computer System(7 marks) 3 (b) Write a program to find the sum of first N odd numbers.(7 marks) 4 (a) What is function? Explain the function definition, function prototype and function call with example. (7 marks) 4 (b) What is structure? How does a structure differ froman array? How is an array of structure initialized?(7 marks) 5 (a) What is Pointer? How is Pointer initialized? How isit different from Array?(7 marks) 5 (b) Write a program to print the following pattern
1 0 1
0 1 0 1
(7 marks) 6 (a) What is string? Write a program to reverse the input string.(7 marks) 6 (b) Write a function program to find whether the stringis palindrome or not. (7 marks) 7 (a) What is file management? List the different file management functions and explain the various file modes. (7 marks) 7 (b) List the various types of loop available in C and explain their syntax. (7 marks)