Come and join us at WebLyceum

Similar documents
Come and join us at WebLyceum

Page. No. 1/15 CS201 Introduction to Programmming Solved Subjective Questions From spring 2010 Final Term Papers By vuzs Team

CS201 Latest Solved MCQs

For Teacher's Use Only Q No Total Q No Q No

Collected By Anonymous

Quiz Start Time: 09:34 PM Time Left 82 sec(s)

( Marks: 1 ) - Please choose one. && is operator. An arithmetic. Logical. Relational. Unary

FINALTERM EXAMINATION CS201- Introduction to Programming

CS201 Some Important Definitions

CS201- Introduction to Programming Latest Solved Mcqs from Midterm Papers May 07,2011. MIDTERM EXAMINATION Spring 2010

CS201- Introduction to Programming Current Quizzes

Chapter 15 - C++ As A "Better C"

VuZs Team's Work. CS201 Spring Solved by vuzs Team with Reference Written by Administrator Wednesday, 19 May :52


Short Notes of CS201

Strings and Streams. Professor Hugh C. Lauer CS-2303, System Programming Concepts

CSC1322 Object-Oriented Programming Concepts

CS201 - Introduction to Programming Glossary By

I BSc(IT) [ Batch] Semester II Core: Object Oriented Programming With C plus plus - 212A Multiple Choice Questions.

Dynamic Data Structures

Object-Oriented Design (OOD) and C++

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

C++_ MARKS 40 MIN

COMP322 - Introduction to C++

Syllabus of C++ Software for Hands-on Learning: This course offers the following modules: Module 1: Getting Started with C++ Programming

C++ 8. Constructors and Destructors

Review: C++ Basic Concepts. Dr. Yingwu Zhu

AN OVERVIEW OF C++ 1

Introduction to C++ Introduction to C++ 1


CS 162, Lecture 25: Exam II Review. 30 May 2018

Object Oriented Programming

C:\Temp\Templates. Download This PDF From The Web Site

EINDHOVEN UNIVERSITY OF TECHNOLOGY Department of Mathematics and Computer Science

Object Oriented Programming Using C++ UNIT-3 I/O Streams

Object Oriented Programming. Solved MCQs - Part 2

JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University)

KLiC C++ Programming. (KLiC Certificate in C++ Programming)

CS250 Final Review Questions

I/O Streams and Standard I/O Devices (cont d.)

OBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe

SAURASHTRA UNIVERSITY

Jayaram college of Engineering and Technology, Pagalavadi. CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT

Introduction to C++ Systems Programming

Come and join us at WebLyceum

Pointers, Dynamic Data, and Reference Types

CS3157: Advanced Programming. Outline

CS304- Object Oriented Programming LATEST SOLVED MCQS FROM FINALTERM PAPERS. MC

Final exam. Final exam will be 12 problems, drop any 2. Cumulative up to and including week 14 (emphasis on weeks 9-14: classes & pointers)

Object Oriented Programming. Assistant Lecture Omar Al Khayat 2 nd Year

COMP322 - Introduction to C++

Lecture 14. No in-class files today. Homework 7 (due on Wednesday) and Project 3 (due in 10 days) posted. Questions?

Preface to the Second Edition Preface to the First Edition Brief Contents Introduction to C++ p. 1 A Review of Structures p.

CSE 333 Midterm Exam Nov. 3, 2017 Sample Solution

Object Oriented Design

Chapter 9 Classes : A Deeper Look, Part 1

I Mid Semester May 2012 : Class XII : Computer Science Max Mark 50 : Time 2 Hrs. 1. a) What is macro in C++? Give example 2

BITG 1233: Introduction to C++

Classes. Logical method to organise data and functions in a same structure. Also known as abstract data type (ADT).

Module 1. C++ Classes Exercises

Classes: Member functions // classes example #include <iostream> using namespace std; Objects : Reminder. Member functions: Methods.

AIR FORCE SCHOOL,BAMRAULI COMPUTER SCIENCE (083) CLASS XI Split up Syllabus (Session ) Contents

CS250 Final Review Questions

Engineering Problem Solving with C++, 3e Chapter 2 Test Bank

! Determine if a number is odd or even. ! Determine if a number/character is in a range. - 1 to 10 (inclusive) - between a and z (inclusive)

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

An Object Oriented Programming with C

c++ keywords: ( all lowercase ) Note: cin and cout are NOT keywords.

OBJECT-ORIENTED PROGRAMMING CONCEPTS-CLASSES II

W3101: Programming Languages C++ Ramana Isukapalli

2 2

Objects and streams and files CS427: Elements of Software Engineering

CALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration. MIS Information Systems II. C++ Solution to Homework 4

FINAL TERM EXAMINATION SPRING 2010 CS304- OBJECT ORIENTED PROGRAMMING

CS250 Final Review Questions

Review for Test 1 (Chapter 1-5)

Introduction to C++ Professor Hugh C. Lauer CS-2303, System Programming Concepts

OBJECT ORIENTED PROGRAMMING. Ms. Ajeta Nandal C.R.Polytechnic,Rohtak

Function Overloading


We can even use the operator << to chain the output request as:

UNIT- 3 Introduction to C++

1- Write a single C++ statement that: A. Calculates the sum of the two integrates 11 and 12 and outputs the sum to the consol.

CSE 374 Programming Concepts & Tools. Hal Perkins Spring 2010

CHAPTER 3 Expressions, Functions, Output

B.C.A 2017 OBJECT ORIENTED PROGRAMMING USING C++ BCA303T MODULE SPECIFICATION SHEET

Preview 8/28/2018. Review for COSC 120 (File Processing: Reading Data From a File)

Borland 105, 278, 361, 1135 Bounded array Branch instruction 7 break statement 170 BTree 873 Building a project 117 Built in data types 126

Ch02. True/False Indicate whether the statement is true or false.

PIC10B/1 Winter 2014 Exam I Study Guide

Lecture 4 Tao Wang 1

1. Match each of the following data types with literal constants of that data type. A data type can be used more than once. A.

CS2255 HOMEWORK #1 Fall 2012

double d0, d1, d2, d3; double * dp = new double[4]; double da[4];

BITG 1113: Function (Part 2) LECTURE 5

Suppose we find the following function in a file: int Abc::xyz(int z) { return 2 * z + 1; }

cs3157: c++ lecture #2 (mon-11-apr-2005) chronology of some programming languages... C++ vs Java identifiers.

Launchpad Lecture -10

Introduction to Programming Using Java (98-388)

Transcription:

Come and join us at WebLyceum For Past Papers, Quiz, Assignments, GDBs, Video Lectures etc Go to http://www.weblyceum.com and click Register In Case of any Problem Contact Administrators Rana Muhammad Safdar (rana.sfdr@gmail.com) Bilal Farooq (bilal.zaheem@gmail.com) Come and join us at VU Social For Non-Study Material Sharing, Chatting, etc, Go to http://www.vusocial.com and click Register (Weblyceum is not responsible for any solved content)

FINALTERM EXAMINATION Spring 2010 CS201- Introduction to Programming Question No: 1 && is -------------------- operator. An arithmetic Logical Relational Unary Question No: 2 Which of the following function(s) is/are included in ctype.h header file? isdigit(int c) isxdigit(int c ) tolower(int c) All of the above Question No: 3 Disks are devices having access time of milliseconds. Electro-physical, 6

Electro-Mechanical, 4 Electro-physical, 5 Electro-Mechanical, 7 Question No: 4 All preprocessor directives are started with the symbol. * ++ @ # Question No: 5 When we use manipulators in our program then which header file should be included? iostream.h stdlib.h stdio.h iomanip.h

Question No: 6 setprecision is a parameter less manipulator. Question No: 7 Which of the following is NOT a preprocessor directive? #error #define #line #ndefine Question No: 8 We can do arithmetic with references like pointers.

Question No: 9 What does (*this) represents? The current function of the class The current pointer of the class The current object of the class A value of the data member Question No: 10 Friend function of a class is. Member function Non-member function Private function Public function Question No: 11 A function can declare itself a friend of a class.

Question No: 12 Overloaded delete operator function takes the same parameter as an argument returned by new operator function. Question No: 13 The second parameter of operator functions for << and >> are objects of the class for which we are overloading these operators. Question No: 14 A template function must have at least ---------- generic data type Zero One Two Three

Question No: 15 A template function must have only generic data types. Question No: 16 We can not make a member function of a class as template function. Question No: 17 Which character is inserted at the end of string to indicate the end of string? new line tab null carriage return

Question No: 18 Assignment operator is used for. calculation reading assigning value to variables None of the given options. Question No: 19 vuzs The object may be used both for file input and file output fstream, ifstream, ofstream, none of the given options. Question No: 20 Which of the following function calling mechanism is true for the function prototype given below? float func(float &); Call by value

Call by reference using pointer Call by reference using reference variable None of the given options Question No: 21 The programs, in which we allocate static memory, run essentially on Heap System Cache None of the given options Stack Question No: 22 Overloaded delete operator function takes parameter of void pointer and returns. void void pointer pointer to an object pointer of type int

Question No: 23 What should be the return type of the constructor? void pointer int same as object type constructors do not return any thing Question No: 24 It is a way of reusing the code when we contain objects of our already written classes into a new class, Question No: 25 vuzs Templates are not type safe. true false

Question No: 26 The functions used for dynamic memory allocation return pointer of type int float void double Question No: 27 ( Marks: 2 ) Write a declaration statement for an array of 10 elements of type float. Include an initialization statement of the first four elements to 1.0, 2.0, 3.0 and 4.0. Answer: float floatarry[10] = {1.0,2.0,3.0,4.0}; Question No: 28 ( Marks: 2 ) Write the general syntax for the declaration of pre-increment and post-increment member operator function. Classname operator ++(); ---- pre increment Classname operator ++(int) ---- post increment Question No: 29 ( Marks: 2 ) What is difference between endl and \n?

Question No: 30 ( Marks: 2 ) What does code optimization mean? Question No: 31 ( Marks: 3 ) How is the following cout statement interpreted by compiler?szuv cout << a << b << c ; Question No: 32 ( Marks: 3 ) Suppose an object of class A is declared as data member of class B. (i) The constructor of which class will be called first? Answer : A (ii) The destructor of which class will be called first? Answer : B Question No: 33 ( Marks: 3 ) Define static variable. Also explain life time of static variable? Question No: 34 ( Marks: 5 ) What is difference between Unary and binary operators and how they can be overloaded? Question No: 35 ( Marks: 5 ) What steps we must follow to design good program?

Question No: 36 ( Marks: 5 ) Write a program which defines five variables which store the salaries of five employees, using setw and setfill manipulators to display all these salaries in a column. Note: Display all data with in a particular width and the empty space should be filled with character x Output should be displayed as given below: xxxxxx1000 xxxxxx1500 xxxxx20000 xxxxx30000 xxxxx60000