0% found this document useful (0 votes)
54 views

Jan2010-110003 Computer Programming and Utilization

This document contains instructions and questions for a computer programming exam for Gujarat Technological University. It includes 5 questions testing knowledge of computer architecture, programming concepts in C and C++ like operators, functions, object-oriented programming, data types, strings, memory allocation, polymorphism, and control structures. Students are instructed to attempt all questions which involve explaining concepts, comparing features, and writing programs to demonstrate various programming techniques.

Uploaded by

nileshmistry2010
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

Jan2010-110003 Computer Programming and Utilization

This document contains instructions and questions for a computer programming exam for Gujarat Technological University. It includes 5 questions testing knowledge of computer architecture, programming concepts in C and C++ like operators, functions, object-oriented programming, data types, strings, memory allocation, polymorphism, and control structures. Students are instructed to attempt all questions which involve explaining concepts, comparing features, and writing programs to demonstrate various programming techniques.

Uploaded by

nileshmistry2010
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Seat No.: _____ Enrolment No.

______

GUJARAT TECHNOLOGICAL UNIVERSITY


B.E. SEM-I Examination January 2010
Subject code: 110003 Subject ame: Comp. Prog. & Utilization
Date: 04 / 01 / 2010 Time: 11.00 am – 1.30 pm
Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.

Q.1 (a) Draw the Block Diagram of Computer Architecture and explain each 07
block with its functions.
(b) Give comparison of 07
1. C and C++ Programming language.
2. Flow charts and Algorithms

Q.2 (a) Write a C++ Program to demonstrate the operators’ hierarchy 07


(b) Define Function with different parameters: Write a Program to 07
demonstrate the Recursive Function.
OR
(b) Write a Program to demonstrate the “call by value” and “call by 07
reference” concept in C

Q.3 (a) Define Object and Class and Give comparison of Object Oriented 07
Language and Procedural Language.
(b) What is the use of Constructor and Destructor in C++? Write a C++ 07
program to demonstrate the use of Constructor and Destructor.
OR
Q.3 (a) What is a User Defined Data type? What is the scope and life time of 07
variable? Explain using C++ program
(b) Describe the features of OOP Language 07

Q.4 (a) Write a C program to find out Armstrong Numbers between 0 and 999. 07
Example : 153 is an Armstrong number because 13+53+33=153
(b) Give examples of various string operation functions demonstrate them 07
using an example program.
OR
Q.4 (a) What is Friend function? Write a C++ Program to show usage of 07
Friend Function.
(b) What is Pointer? How to initialize the pointer and how it is different 07
from Array?

Q.5 (a) Give comparison of Static Memory Allocation and Dynamic Memory 07
Allocation with a code snippet.
(b) Write C++ program to explain the concept of 07
1. Polymorphism
2. Inheritance
OR
Q.5 (a) Describe various types of Inheritance 07
(b) Explain branching and looping in with example code 07
***********

You might also like