Computer Programming & Utilization - Jun 2015
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.
Objective Question (MCQ)
1 (a) 1 Which of the following is a part of primary memory of computer
(c) Pen-drive d) Floppy Disk(1 marks) 1 (a) 2 Which protocol is used to transfer files on internet
(d)Telnet.(1 marks) 1 (a) 3 Microprocessor of computer system is a part of
(b) Input Device
(d) Processing Unit(1 marks) 1 (a) 4 Which is not a font style in MS-Word
(d) Regular(1 marks) 1 (a) 5 With which of the following all formulas in excel starts?
(d) =(1 marks) 1 (a) 6 Which of the following is not one of PowerPoint view?
a) Slide show view
(b) Slide view
(c) Presentation view
(d) Outline view(1 marks) 1 (a) 7 In the evaluation of a computer language, all of the following characteristics should be considered except?
a) application oriented features
(d) hardware maintenance costs(1 marks)
Objective Question (MCQ)
1 (b) 1 Keyboard is the type of device
A. Input B. Pointing C. Output D. Sound(1 marks) 1 (b) 2 A document or image can be scanned in to digital form by using
A. Marker B. Printer C. Light pen D. Scanner(1 marks) 1 (b) 3 ALU is
A. Array Logic Unit B. Application Logic Unit C. Arithmetic Logic Unit D. None of these(1 marks) 1 (b) 4 HTML stands for
A. Hyper Text Makeup Language B. Hyper Text Markup Language C. Hyper Tech Markup Language D. None of these(1 marks) 1 (b) 5 Operating system is installed on
A. Hard Disk B. Cache memory C. Mother Board D. None of these(1 marks) 1 (b) 6 Recycle bin is used for
A. To store backup file B. To restore deleted file / folder C. To store most frequently D. All the above(1 marks) 1 (b) 7 The process a user goes through to begin a computer system.
A. Log out B. Log in C. Log off D. None of these(1 marks) 1 (c) 1 he first expression in a for... loop is
a) Step value of loop b) Value of the counter variable
(c) Condition statement
(d) None of the above(1 marks) 1 (c) 2 Continue statement used for
a) To continue to the next line of code b) To stop the current iteration and begin the next iteration from the beginning c) To handle run time error d) None of above.(1 marks) 1 (c) 3 What will be the output of following program
int x,y = 10;
x = y * NULL;
a) error b) 0 c) 10 d) garbage value(1 marks) 1 (c) 4 Difference between calloc() and malloc()
a) calloc() takes a single argument while malloc() needs two arguments b) malloc() takes a single argument while calloc() needs two arguments c) malloc() initializes the allocated memory to ZERO d) calloc() initializes the allocated memory to NULL(1 marks) 1 (c) 5 Which among following is not necessary for working of a standalone computer? a) RAM b) Hard Drive
(c) Operating System d) LAN card(1 marks) 1 (c) 6 What is algorithm?
a)Application code b)Type of programming language
(c) None of above
(d) Step by step procedure for Calculations.(1 marks) 1 (c) 7 printf() belongs to which library of c
a) stdlib.h b) stdio.h
(c) stdout.h d) stdoutput.h(1 marks) 2 (a) Define algorithm and explain different symbols used in flowchart.(3 marks) 2 (b) Write the difference between structure and union.(4 marks) 2 (c) Explain different type of operators used in c language with their precedence and associativity.(7 marks) 3 (a) What do you mean by type conversion? Why is it necessary?(3 marks) 3 (b) What is difference between keywords and identifiers? Explain rules for naming an identifier.(4 marks) 3 (c) Explain different loops used in c language .Write the difference between while loop and do...while loop.(7 marks) 4 (a) What is a file? List the various file handling operations in c.(3 marks) 4 (b) What is user-defined function? Explain actual argument and formal arguments(4 marks) 4 (c) Write a program in c for multiplication of two matrix.(7 marks) 5 (a) Explain the use if malloac and calloc function with their syntax.(3 marks) 5 (b) What is String? How are they declared and also define the null character(4 marks) 5 (c) What do you mean by recursive function? Write a program in c to find factorial of a number using recursive function.(7 marks) 6 (a) Explain the difference between call by reference and call by value with proper example(3 marks) 6 (b) How to initialize Pointer? Explain arrays of pointer using suitable sample program.(4 marks) 6 (c) Write a program in c using structure to enter rollno, marks of the three subject for 3 student and find total obtained by each student(7 marks) 7 (a) What is Software and Hardware? Explain different types of Software.(3 marks) 7 (b) Write a program using pointer and function to determine the length of string(4 marks) 7 (c) Explain different type of functions used in c language. Write a program using function to find maximum if two numbers.(7 marks)