Final Exam 2011 January
You may get structure paper with 20 pages printed on both sides, which consists of 3 questions, carries 35, 35 and 30 marks respectively.
Refer our lecture slides, and past papers. No need of model paper, main different is you have to answer in the same paper.
Aims and Objectives:
§ To provide a classroom and laboratory environment that enables the students who do not follow Computer Science as a subject to be proficient in programming in C++.
§ To train the student to design, develop and run the C++ program.
- Past Papers:
Topic 1Introduction to Visual C++
- Introduction to Computer programming.
Compiler, Interpreter and assembler.
Evolution of C/C++.
Skeleton of a C++ program.
Output with "cout" object.
Topic 2Input/ Output
- Input with "cin" object.
Declaring, Defining and Initializing.
Local and Global variables.
Simple mathematical expressions.
Integer division vs Floating point division.
C++ data types
Topic 3Data Types and Expressions
- Integer data types.
Floating point data types.
Conversion & Casting.
- Relational operators.
Increment & decrement operators.
- Prefix, Infix and Postfix
Mathematical expression evaluation with Postfix stack.
Increment & decrement operators (more..).
Working with Bitwise operators.
Scope resolution operator.
Output formatting with cout & iomanip.h.
Built in functions.- Math.h
Topic 4Loop Constructs and Conditional Constructs
- If statement
- For loop
Do while Loop
Clear Screen and Pause
- User define functions
Function Signature and prototype
Formal and Actual parameters
Calling a function
Use of "const" with reference variables
- Declaring and defining Arrays
Accessing Array elements
Arrays with loops
Sorting methods (Bubble, Selection and Insertion) and String Matching
Passing Array to a functions
Dynamic Variables and Dynamic Arrays
New and Delete operators
Implementing Queues and Stacks using arrays
Strings with arrays
Working with String.h (strlen, strcmp, strcpy, strcat)
Software Development Life Cycle
Iterative waterfall Model
Syntax, Logical and Run time Errors
Phases of C++ Program
Storage Classes (auto, extern, register, static )
- Declaring and defining structures
Initializing a structure
Pointer to a structure
Array of structures
- This is just to demonstrate what I expect from you.
Try to follow the standards as much as you can.
You should be able to do any calculation such as (find min,max,mean,standard deviation etc) on a two dimensional array
enums are series of constants which holds integer values.
Since they are constants, you can't create variables from enum, hence you can't use them as parameters of a function. instead use integer variable there(for parameters).
We use enums to improve the readability of a program.
You are allow to take notes for the Mid.(Open book)
To input strings, use cin instead of gets (Assume there is only one word)
Topic 8Introduction to Object Oriented Programming
- Object oriented programming vs Structure programming
Private, Protected and public visibilities
Use of scope resolution ( :: ) operator
Encapsulation and information hiding
Default, Parametrized and Copy constructors
Explicit, implicit and dynamic callings
Generalization and Specialization
Sub classes and Super classes
Abstract data types