VOLUME-2 OBJECT TECHNOLOGY Chap-1 Object Oriented Concepts Using C++

Size: px
Start display at page:

Download "VOLUME-2 OBJECT TECHNOLOGY Chap-1 Object Oriented Concepts Using C++"

Transcription

1 Chap-1 Object Oriented Concepts Using C++ 1.What is an Object? A group of data and the operations are termed as object.the operations represent the behavior of the object. 2.What is encapsulation? The mechanism by which the data and functions are bound together within an object definition is called encapsulation. 3.What is polymorphism? The ability of an object to respond differently to different messages is called as polymorphism. Eg. draw(side) draws a square draw(length,breath) draws a rectangle 3.What is the significance of an object? a) An object is a group of related functions and data that serves those functions. b) An object is a kind of self-sufficient subprogram with a specific functional area. 4.What is the difference between polymorphism and inheritance? Polymorphism Inheritance Reduces software complexity, as multiple Allows a class to be derived from a existing class, definitions are permitted to an operator or reusability of code and also promote insertion of functions updated modules 6.How object oriented programming solve a problem given? Object Oriented programming facilitates the way of problem solving by combining data and operations that are to be performed on the data. 7.What is inheritance? The process of acquiring Base class properties by a derived class is called inheritance. 8.What are the advantages of OOPS. a)encapsulation -Allows programs to organize as objects that contain both data and functions. b)data hiding or Abstraction of Data provides security to data as unrelated member functions cannot access its data c)polymorphism reduces software complexity d) Inheritance allows a class to be derived from a existing class thus promoting reusability of code. 9.What is data hiding. Data hiding or Abstraction of Data provides security to data as unrelated member functions cannot access its 1

2 Chap-2 OverView of C++ 1.What are tokens? A token is the smallest individual unit in a program. Tokens are the basic types of elements essential for program coding 2.What are the classifications of tokens? Keywords, identifiers, constants, Operators and Punctuators 3.What are the keywords in C++? List a few of them. If, for, do, while, case, break, class, switch, public, private,protected 4.What is a keyword? a) Keyword has a special meaning to the language compilier b) Keywords are reserved words for special purpose. c)keywords cannot be used as identifiers 5.Define String Literal? a) It is a sequence of characters by double spaces b)these are treated as array of characters c) Each string literal is by default with special character \0 which marks the end of string. 6.What are the different types of operators? Arithmetic, Assignment, Conditional, Logical, Manipulator, Relational, Scope Resolution, Shift, Type Cast 7.What are conditional operators? Give its syntax? A ternary operator?: is also called as conditional operator. Syntax: E1? E2 : E3 where E1, E2 and E3 are operands Eg. a = 10, b = 10, x = (a<b)? a*a : b% a; Answer: x= 0 8.What is assignment operator? Equal to ( = ) is the simple assignment operator. Used to assign the result of an expression on the right hand side and variable to left hand side. Ans: A = 15 9.What are the two important purposes of void type? a) To indicate the function does not return a value b) It indicates that it hold nothing c) to declare a generic pointer 10.What are pointer variables? a) It can store the address of other variables 2

3 b) The address stored in pointer variable should be of the same data type a pointer variable c) The asterisk( * ) is used to declare the pointer variable d) It is used to display the contents stored at a location. It is an unary operator. 11.What is character constant? a) It contains a single character enclosed within single quotes b) It can be any character alphabet, numerical, mathematical and relational or any other special character as part of the ASCII code. 12.What are the rules to be followed while writing variable name? a) It should begin with an alphabet or underscore followed by alphabets or numbers b) Variable Names are case sensitive eg. test, sum_10, xyz 13.How operators are classified based on operand requirements? Operators are classified as Unary, binary and Ternary operators 14.What is the used of User Defined Data type? a) User defined data type enables a programmer to invent his own data type and define its values b) This helps to improve credibility and readability of the program 15.Write a note on enumerated data type? It is user defined data type. AS the name suggest, enumerated data type helps users in creating a list of identifiers, also called symbolic numeric constancts of the type int. 16.Give the syntax and examples of enum data type? Syntax : enum data type identifier (value1, value2.) Eg. enum holidays( Sunday, Saturday) 17. Define Type definition and syntax? Users can define a variable that would represent an existing data type. It allows users to define such user defined data type identifier. Syntax: typedef data_type user_defined_data type identifier 18.Name four storage specifiers The four storage specifiers are auto, static, extern, and register. 19.What is meant by garbage? Auto variables are not initialized with appropriate values based on their data type. These variables get undefined values known as garbage. 20.List out the user defined data types? Ans type def, enum 3

4 21.Define size of operator in c++? Size of an operator returns the size (memory requirement) in terms of bytes, of the given expression or data type. Eg. sizeof(int) returns the value 2 22.Define typecast? It refers to the process of changing the data type of the value stored in a variable. Chapter-3 Basic statements 1.What are the different types of statements? Input/Output, Declaration, Assignment, Control Structures, Function call, Object, Return. 2.What is the use of cin object? a) It is a standard input stream. b) Input stream represents the flow of data from the input device keyboard c) It is available in a header file as iostream.h 3.What are the three sections in c++ programs? a)include files b) Declaration of variables, data type, user defined functiosn 4. What are the control structures? Program statements that cause a jump of control from one part of a program to another are called Control Structures. 5.What is the purpose of break statement? a)break statement would exit the current loop only. b)it accomplishes jump from the current loop 6.What is the use of cout object? a) It is a standard output stream b) Output stream normally flows to the screen display c) It is available in a header file as iostream.h 7.How is a pointer variable different from ordinary variable? A pointer variable holds a memory address where else an ordinary variable holds data. In pointer memory location of a variable can be directly accessed. The symbols used in pointer type are &( address of operator ) and the value of the operator(*) 8.What is the purpose of using main function? a) When the program is executed the main functions will be automatically executed b) It is from this block, that one needs to give call statements to the various modules that need to be executed and the other executable statements. 4

5 9.What is the purpose of continue statement? This statement forces the next iteration of the loop to take place, skipping any code following the continue statement in the loop body. Five marks 1.What is loop? Explain the three kinds of loops? Loops execute a set of instructions repeatedly for a certain number of times. There are three kinds of loops, a) Do while loop 2) While do loop 3) for loop a) Do while loop example int i=1, s = 0; Syntax: do do { { Action block s = s + i; } while (condition); i = i + 1; } while ( i<=10); Do while loop is called as EXIT-CHECK loop. The condition marks the last statement of the body of the loop While loop example Syntax: int i = 1, s= 0; while (condition) while(i<=10) { { Action block s = s + i; } i = i + 1; } a) The body of the while loop will be executed only the condition is true. b) The control exits the loop once the condition is evaluated as false. c) This loop is known as ENTRY-CHECK loop. 3. for loop Syntax for ( initial value; test condition; increment) { Action block } Example: for ( i=1;i < 6; i++ ) { s = s + i; 5

6 } a) The control variable is initialized first b) Test condition is evaluated c) The body of the loop is executed only if the condition is True d) The control variable is increment and the test condition will be evaluated again e) The loop is terminated when the test condition is false 2. Explain the switch statement and give suitable examples? It is multiple branching statement where based on a condition, the control is transferred to one of the many possible points. Syntax: switch(expression) { case 1 : action block 1 ; break; case 2 : action block 2 ; break; case 3 : action block 3 ; break; default : action block 4 ; break; } Example switch ( n) { case 1 : cout<< Number is One ; break; case 2 : cout<< Number is Two ; break; case 3 : cout<< Number is Three ; break; default : cout<< Invalid Number ; break; } Break Statement 1) Break statement would exit the current loop only 2) It accomplishes jump from the current loop 3. What are header files. How it can be used in c++? a) A header file comprises of all standard declarations and definitions for predefined functions b) One can include the header file in the program by using a preprocessor directive c) A preprocessor directive starts with # which instructs the compiler to do the required job d) #include<iostream.h> is a typical preprocessor directive that instructs the compiler to include the header file iostream.h e)the other header files are stdio.h, ctype.h, match.h 4.List some qualifiers or modifiers. Long, short, signed and unsigned 6

7 5.What is a modifier? A modifier alters the base data type to yield new data type 6.What is impact of modifiers? a) unsigned modifies the range of the integer values as the sign bit is also used to store data b) long increases the bytes for a particular data type, thus increasing the range of values. 7.What are implicit conversions? Implicit conversions refers to data type changes brought about in expressions by the compiler. Eg. float f = 7.6; int x = f; 8.What is typecast? Type cast refers to the process of changing the data type of the value stored in a variable. Eg. x = 8% (int) 7.7 Float constant 7.7 is converted to integer constant by type casting it. 4. FUNCTIONS 1.What are functions? a) Functions are the building blocks of c++ programs b) It is also the executable segments in a program c) The starting points for the execution of a program is main() 2.What is function prototyping? a) It should be declared before they are used in a program b) Declaration of a function is made through a function prototype. c) The main purpose of function prototype is to help the compiler to check the data requirement of the function 3. What is the syntax of function prototype? Syntax <type><function identifier > < arguments> Eg. void max ( int a, int b) 3.What is calling a function? a) A function can be called or invoked from another function by using its name b) The function name may include a set of actual parameters, enclosed in parentheses separated by commas 4.What are the rules for actual parameters? It can be passed in the form of constants or variables or expressions to the formal parameters, which 7

8 are of value type. 5.What are the two methods used in functions? a) Call by value method b) Call by reference method 6.What is the main purpose of function prototype? a) It helps the compiler to check the data requirement of the function b) With function prototyping, a template is always used when declaring and defining a function c) When a function is called, the compiler uses the template to ensure that proper arguments are passed, and the return value is treated correctly. 7.Differentiate call by value and call by reference? Call by Value The flow of data is always from the call statement to the function definition Any change in the formal parameter is not reflected back to the actual parameter Call by reference Formal and actual parameters in referen ce type point to the same storage area Any change in the formal parameter is reflected in actual parameter 8.What is meant by actual and formal parameters? The parameter associated wih call statement is called actual parameters and the parameter associated with function header is called formal parameters 9.What is the use of scope resolution operator? a) :: is the scope resolution operator. b) It is used to refer variables declared at file level c) This is helpful only under situations where the local and file scope variables have the same name. 10.What are the advantage of functions? a) Reduce the size of the program b) Induce resusability of code c) A function can be shared by other programs by compiling it separately and loading them together. Five Marks 1.Explain the different scopes of variables in c++? There are four types of scopes in c++. They are a) local scope b) function scope c)file scope d)class scope a) Local Scope a) It is defined within a block b) It is block in which it is defined c) It cannot be accessed from outside the block of its declaration d) A block of code begins and ends with curly braces{ } e) It exists only while the block of code in which they are declared is executing 8

9 b) Function Scope a) It is declared within a function is extended to function block, and all sub-blocks b) It is accessible in all the sub-blocks c) It is lifetime of a function scope variable is the lifetime of the function block d) The scope of formal parameters is block function scope. c) File Scope a) A variable declared above all blocks and functions have the scope of a file b) The file scope variable is the entire program c) The lifetime of a file scope variable is the lifetime of a program d) Class Scope a)a class is a way to bind the data and its associated functions together b)classes provide a method for packing together 2.Explain Inline Functions? When the functions are small, the compiler replaces the function call statement by its definition ie. Its code during program execution. This feature is called as inline function. a) An inline looks like a normal function in the source file but inserts the functions s code directly into the calling program b) Inline functions execute faster but require more memory space c) Reusability of code and reduction in code size 3.Explain the call by value method in function with example? In this method, the called function creates new variable to store the value of the arguments passed to it. This method copies the value of actual parameters into the formal parameters. The function creates its own copy of arguments and then uses them. The flow of data is always from the call statement to the function definition. // demo Call by Value #include<iostream.h> #include<conio.h> #include<conio.h> void swap(int n1, int n2) { int temp; temp = n1; n1= n2; n2= temp; cout<<'\n'<<n1<<'\t'<<n2<<'\n'; } void main() 9

10 { int m1=10, m2=20; clrscr(); cout<<"\n Value before invoking swap"<<m1<<'\t'<<m2; cout<<"\n Calling Swap,,,"; swap(m1,m2); cout<<"\n Back to main.. Values are.."<<m1<<'\t'<<m2; getch(); } In call by value method, any change in the formal parameter is not reflected back to the actual parameter 4.Explain the call by reference method in function with example? In this method, the called function arguments- formal parameters become alias to the actual parameters in the calling functions. The function is working with its own arguments. It is actually working on the original data. Any change in the formal parameters is reflected back in the actual parameter. // demo Call by reference #include<iostream.h> #include<conio.h> void swap(int &n1, int &n2) { int temp; temp=n1; n1=n2; n2=temp; cout<<'\n'<<n1<<'\t'<<n2<<'\n'; } void main() { int m1=10, m2=20; clrscr(); cout<<"\n Values before swap call.."<<'\t'<<m1<<'\t'<<m2; swap(m1,m2); cout<<"\n Calling Swap.."; cout<<"\n Back to main Values are "<<'\t'<<m1<<'\t'<<m2; getch(); } In call by reference method, any change made in the formal parameter is reflected back in the actual parameter 10

11 Chapter-5 Structured Data Type Arrays 1.What is an array? What are the types of arrays? An array is a collection of variables of the same type that are referenced by a common name. Arrays are of two types- One dimensional Array eg. a[10] Two dimensional Array eg. a[5][5] 2.What is sorting? One can rearrange the data in a given array either in ascending or descending order. This process is called sorting. 3.Give the syntax for gets() get getline? gets(char * ) getline cin.getline(char*, no.of characters,delimiter) 4.What is matrix? It is a set of mn numbers arranged in the form of a rectangular array of m rows and n columns. It can be represented through 2-D arrays. 5.Give the syntax for strlen() and its uses? strlen(char *) It returns the number of characters stored in the array. Ex. name = Chennai p = strlen(name); Ans: The given string length is 7 6.Give the syntax for strcpy and its uses. strcpy(char *) Copies the source string to a target string. Ex. a = Chennai strcpy(b,a); 7.Give the syntax for strcmp and its uses. strcmp(string1, string2) It compares the two given strings. It returns 0 if strings are equal, returns >0 if string1 > string 2 Ex. Strcmp( Abc, Abc ) returns as 0 8.Give the syntax for single dimensional array? Syntax : Datatype [space ] array identifier [size ]; Ex. Int mark[5]; 9.Give the syntax for two dimensional array? Syntax : Datatype [space ] array identifier [row size ][column size]; 11

12 Ex int marks [5][5]; 10.What are the two methods to display the contents of character array? a) cout <<name- this is similar to any other variable b) cout.write(pincode, 7); 11.How the strings are treated? Give example? a) Strings are called as literals, which are treated as single dimension of characters b) The declaration of strings is same as numeric array. Ex. char name[10]; Char vowels[] = { a, e, I, o, u }; 12.Write a note on write()? a) It is a member function of standard output stream b) All member functions of a class should be accessed through an object/instance of class c) The two parameters required for write function are identifier string characters and number of characters to be displayed. 13.How is the size of a 2D array calculated? Number of elements * memory requirement for one element Eg.int sales[2] [4] Number of elements = Rows x Columns x memory req. for one element = 2 x 4 x 2 =16 Chapter 6 Classes and Objects 1.Define a class? A class is a new way of creating and implementing a user defined data type. Classes provide a method for packing together. {OR} A Class is a way to bind the data and its associated functions together. 2.What is specification of a class? a) Class Declaration b) Class Function definition 3.What are the three access specifiers? Private, Public and Protected 4.Give general form of class declaration? Class classname { private: variable declaration; function declaration; protected: 12

13 variable declaration; function declaration; Private: variable declaration; function declaration; }; VOLUME-2 OBJECT TECHNOLOGY What is encapsulation? The binding of data and functions together into single entity is referred to as encapsulation 6.What is data hiding? The members and functions declared under private are not accessible by members outside the class, this is referred to as data abstraction. 7.What is Abstraction? Instruments allowing only selected access of components to objects and to members of other classes is called data abstraction. 8.Difference between Data members and Member function? Data Members Member functions 1. It is data variables that represent the It is the function that perform specific tasks in a features or properties of a class class 2. It is also called a attributes It is called as methods 9.What are Static Data Members? a) It is initialized to zero only when the first object of its class is created b) Only one copy of the member variable is created c) Its scope or visibility is within the class 10.Define friend functions? Accessibility by only its own members and certain special functions called as friend functions 11.What is the use of dot operator? The members of a class are accessed using the dot operator. The call statement to the function execute() of the class. Ex. stud.execute() 12.What is meant by methods in c++? a) The class data type can be further extended by defining its associated functions b) These functions are also called methods, as they define the various operations that can be performed on the data. 13. Write a short note on a member of a class? a) Class comprised of members. Members are further classified as data members and member function 13

14 b)member function are the functions that perform specific tasks in a class c) Member functions are called methods and data members are also called attributes. 14.What is meant by objects in c++? a) In c++ the class variable are known as objects b) The declaration of an object is similar to that of a variable of any basic type c) Objects can also be created by placing their names immediately after the closing brace of the class declaration 15.Write short notes on memory allocation of objects? a) No separate memory space is allocated for member function when the object is created b) Only required memory space for the member variables is allocated separately for each object Chapter 7 Polymorphism 1.Define Polymorphism? The polymorphism means many forms. Poly many morph- Shapes) 2.Define overloading? The term overloading means a name having two or more distinct meanings 3.Define Function Overloading? The ability of the function to process the message or data in more than one form is called as function Overloading. Eg. area_circle() calculate the area of a circle area_triangle - calculate the area of a triangle 4.What is operator overloading? The mechanism of giving special meaning to an operator is called as operator overloading 5.List out the operators that cannot be overloaded? 1.Membership operator 2. Scope resolution operator 3.Size of operator 4. Conditional operator 6.How are functions invoked in function overloading? a) Look for the exact match of a function prototype with that of a function call statement b) In case a exact match is not available, it looks for the next nearest match. Five marks 1.What is the advantage of operator overloading? Or List he rules for overloading operators? a) Only existing operators can be overloaded. New operators cannot be created b) The overloaded operator must have atleast one operand of user defined type. 14

15 c) The basic definition of an operator cannot be replaced d) Overloaded operators behave in the same way as the basic operators in terms of their operands e)when binary operators are overloaded, left hand object must be an object of relevant class f) Binary operators overloaded through a member function take one explicit argument. 2.Rules for function overloading? a) Each overloaded function must differ either by the number of its formal parameters b) The return type of overloaded functions may or may not be the same data type. c)the default arguments of overloaded functions are not considered by the x++ compiler as part of the parameter list. d)do not use the same function name for two unrelated functions. 3.What does the operator overloading provides? a) The basic c++ operators like + * - + < etc. One cannot overload c++ specific operators like membership operator, scope resolution operator, size of operator, and conditional operator. b)the overloaded function definitions are permitted for user defined data type. c) Operator functions must be either member functions or friend functions d) The new definition that is provided to an operator does not overrule the original definition of the operator 4.List out the steps involved In defining an overloaded operator? a) Create a class that defines the data type that is to be used in the overloading operations b) Declare the operator functions operator() in the public part of the class c) Define the operator functions to implement the required operatorions Two marks Chapter 8 Constructors and Destructors 1.Difference between constructors and destructors. Constructors 1.When an instance of class comes into a scope, a Special function called the constructors gets executed 2.Same name as class 3.Have parameter list 4.Constructors can be overloaded Destructors When a class object goes out of a scope, a special function called the destructor gets executed. Same name of a class but prefixed with tilde symbol Cannot have parameter list Destructors cannot be overloaded 2.What are the functions of constructor? a) The constructor function initializes the class object b) The memory space is allocated to an object 15

16 3.How is copy constructor executed? a) When an object is passed as a parameter to any of the member functions. Ex. void add :: putdata(add x ) b)when a member function returns an object. Ex. add getdata(); c)when an object is passed by reference to constructor. Ex. add a, b(a) 4.Define Destructor? It is a function that removes the memory of an object, which was allocated by the constructor at the time of creating an object. It carries the same name as the class tag, but with a tilde(~) as prefix. Ex. ~ simple() 5. What is default constructor? The constructor add() is a constructor without parameters. It is called a default constructor. 6.What is a constructor? When an instance of a class comes into scope, a special function called the constructor gets executed. The constructor function initializes the class object. Name of the constructor is the same as the class name. Five marks 1.What is the rule for constructor? a) The name of the constructor must be the same as that of the class b) The constructor can have parameter list c) The constructor function can be overloaded d)the compiler generates a constructor in the absence of a user defined constructor e)the constructor is executed automatically 2.What is the rule for destructor? a) The destructor has the same name as that of the class prefixed by the tilde character (~). b)the destructor cannot be arguments c)it has no return type d)destructors cannot be overloaded e)in the absence of user defined destructor. It is generated by the compiler f)the destructor is executed automatically when the control reaches the end of class scope. Chapter 9. INHERITANCE 1.Define inheritance? Inheritance is the most powerful feature of an object oriented programming language. It is a process of creating new classes called derived classes, from the existing or base classes. 16

17 2.What are the advantages of inheritance? a.reusability of code: Many application are developed in an organization. Code developed for one application can be reused in another application. This saves a lot of development time. b)code sharing: The method of base class can be shared by the derived class c)consistency of interface- The inherited attributes and methods provide a similar interface to the calling methods 3.Define a base class? It is a class from which other classes are derived. A derived class can inherit members of a base class. 4.What are the points to be observed while defining a derived class? a) The keyword class has to be used b) The derived class is used after the keyword class c) A single colon d) The type of declaration private, public or protected e) The name of base class or parent class f) The remainder of the derived class definition 5.How to declare a derived class? Class derived name: visibility mode base class_id { Data members of the derived class Functions members of derived class } 6.What is accessibility? An important feature in heritance is to know as to when a number of a base class can be used by the object or the members of derived class. This is called as accessibility. 7.What is abstract class? Classes used only for deriving other classes are called abstract classes. Ie Objects for these classes are not declared. 8.Name the different types of inheritance? Single inheritance Multiple inheritance Multilevel inheritance Hybrid inheritance Hierarchical inheritance 9.What is single inheritance? When a sub class inherits only from the one base class is known as single inheritance. Ex. Base Class Employee 17

18 Derived Class - Manager VOLUME-2 OBJECT TECHNOLOGY Write a note on access specifiers of inheritance? a) The three access specifiers are private, protected and public. b) Access specifier is also referred to as visibility mode c) the default visibility mode is private 11.How constructors and destructors are executed in inheritance? a) the constructors are executed in the order of inherited class ie from base constructor to derived b) the destructors are executed in the reverse order 1.Explain the different types of inheritance. Five marks Classes can be derived from classes that are themselves derived. There are different types of inheritance. Single inheritance Multiple inheritance Multilevel inheritance Hybrid inheritance Hierarchical inheritance 1.Single Inheritance When a derived class inherits only from one base class. It is known as single inheritance. Base Class Employee Derived Class - Manager 2.Multiple Inheritance When a derived class inherits from multiple base classes it is known as multiple inheritance Base Class Address Base Class Office Derived Class Manager 3.Multilevel Inheritance The transitive nature of inheritance is reflected by this form of inheritance. When a class is derived from a class which is a derived class well, then this is referred to as multilevel inheritance Base Class Grand Father 18

19 Derived Father Derived Child Chapter 10 IMPACT OF COMPUTERS ON SOCIETY 1.How are the computer for personal life? a) Word processing, Databases, Spreadsheets and multimedia presentations packages have increased the efficiency at work. b)desktop publishing and other impressive packages for graphics are adding value to the work c) Browsing, and chat have changed lifestyle 2.What is e-banking? e-banking permits banking from the comfort of the home by using internet facilities. It has improved the reach and services of banks. 3.How computer are used in education? a) Purchase of educations CD b) computer based tutorial c)use of e-learning 4,What is e-learning? e-learning enables online educational programs leading to degrees and certifications. 5.How the computers are used in entertainment? You can update your knowledge in fine arts like painting, music, dance, yoga,games, science, Nature and latest news and events. Know more places of worship and of tourist interest 6.How computer are used in areas of healthcare? a) Hospital management system b) Patient tracking system c)exchange of diagnostics records between healthcare units d)decision support system with highly advanced computing techniques 7.How computer are used in agriculture? Farming and agriculture might seem like low technology enterprises, but these industries have benefited from computerization more than the casual observer might think. Farmers, both professional and hobbyists benefit from online resources such as seed estimators and pest information sites. Professiional farmers can user revenue estimators to help them plan which crops will produce the highest profits based on whether patterns, soil types and current market values8. 19

20 8.Mention the areas where software has been developed? a) Agricultual Finances and Accounting b) Alternative farming techniques c) Animal husbandry d) Buildings and Irrigation e) Farmland Assessment f) Land Management g)livestock h) Milk Production 9.What is ATM? a) ATM Automatic Teller Machine b) It enables withdrawal of money from the account in a particular bank anytime and anywhere c) It helps the user in emergency situations where money is needed during the nights and holidays 10.What is e-shopping? You can purchase any product, any brand, any quantity from anywhere through e-shopping. The pictures and other details are available on the website of the shop. Credit cards and prior registration with shop are popular methods. Items purchased will be delivered at your home. Chapter 11 IT ENABLED SERVICES 1.What is meant by ITES? Information Technology that helps in improving the quality of service to the users is called IT Enabled Service. ITES are human intensive services that are delivered over telecommunications networks 2.Mention the IT Enabled Servies? a) e-governance b) Call Centers c) Data Management d) Medical e) Data Digitization f)website Services 3.In what way e-governance helps us? The various websites provided by the government give the details about the departments, specific functions, special schemes, documents, contacts, links, IAS intranet, site map, search, press releases, Feedback. These websites are both in English and Tamil 4.What is Call Centres? A call center is something defined as a telephone based shared service center for specific customer activities and used for number of customer related functions like marketing, selling, information 20

21 transfer, advice and technical support. It operates to provide round the clock and year round service ie 24x 365 service 5.Write a short note on Medical Transcription? It is a permanent, legal document that formally states the result of a medical investigation. It facilitates communication and supports the insurance claim. There are three main steps in medical transcription 6.What is meant by Digitization? It refers to the conversion of non-digital material to digital form. A wide variety of materials as diverse as maps, manuscripts, moving images and sound may be digitized. 7.Write the key benefits of digitization? * Long term preservation of documents * Storage of important documents at one place. * Easy to use and access to the information * Easy transfer of information in terms of images and text * Easy transfer of information through CDROM, Internet and other electronic media 8.In what way web based services helps us? * Agriculture Marketing Network * Career Guidance * Employment Online * General Provident Fund * Results of various Examination Chapter 12 COMPUTER ETHICS 1.What is meant by ethics? It is a set for determining moral standards. Some general guidelines on ethics are useful responsibility in their application of information technology 2.What are general guidelines on computer ethics are needed? * Protection of personal data * Computer Crime * Cracking 3.What is meant by Computer Crime? A computer crime is any legal activity using computer software, data or access as the object, subject or instrument of the crime. 4.What are the different types of data? 21

22 Data Security, Physical Security, Personal Security and Personnel Security 5.What are the common crimes included? 1) Stealing Hardware 2) Virus 3) Cracking 4) Theft of Computer Time 5) Hardware and Software Piracy 6) Illegal access to confidential files 6.What is meant by Piracy? Making and using duplicate hardware and software is called piracy. 7.Write a note on Virus * A virus is a self sufficient programs that can cause damage to data and files stored in computer * These programs are written by programmers with great programming skills are motivated by the need for a challenge. *57000 known virus programs are in existence. 6 new virus are found each day. 8.What is cracking? It is the illegal access to the network or computer system. Illegal use of special resources in the system is the key reason for cracking. WISHING YOU ALL THE BEST 22

+2 Volume II OBJECT TECHNOLOGY OBJECTIVE QUESTIONS R.Sreenivasan SanThome HSS, Chennai-4. Chapter -1

+2 Volume II OBJECT TECHNOLOGY OBJECTIVE QUESTIONS R.Sreenivasan SanThome HSS, Chennai-4. Chapter -1 Chapter -1 1. Object Oriented programming is a way of problem solving by combining data and operation 2.The group of data and operation are termed as object. 3.An object is a group of related function

More information

XII- COMPUTER SCIENCE VOL-II MODEL TEST I

XII- COMPUTER SCIENCE VOL-II MODEL TEST I MODEL TEST I 1. What is the significance of an object? 2. What are Keyword in c++? List a few Keyword in c++?. 3. What is a Pointer? (or) What is a Pointer Variable? 4. What is an assignment operator?

More information

Padasalai.Net s Model Question Paper

Padasalai.Net s Model Question Paper Padasalai.Net s Model Question Paper STD: XII VOLUME - 2 MARKS: 150 SUB: COMPUTER SCIENCE TIME: 3 HRS PART I Choose the correct answer: 75 X 1 = 75 1. Which of the following is an object oriented programming

More information

R.PRAKASH COMPUTER TEACHER

R.PRAKASH COMPUTER TEACHER 1 KAMARAJ MPL HIGHER SECONDARY SCHOOL -VILLUPURAM Chapter-1: OBJECT ORIENTED CONCEPTS USING C++ Date:04/09/2009 1. OOPL acronyms is (Object Oriented Programming Language) 2. The solutions to the problems

More information

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL. TWO MARKS

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL. TWO MARKS SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL. COMPUTER SCIENCE - STAR OFFICE TWO MARKS LESSON I 1. What is meant by text editing? 2. How to work with multiple documents in StarOffice Writer? 3. What is the

More information

XII CS(EM) Minimum Question List N.KANNAN M.Sc., B.Ed COMPUTER SCIENCE IMPORTANT QUESTION (TWO MARKS) CHAPTER 1 TO 5 ( STAR OFFICE WRITER)

XII CS(EM) Minimum Question List N.KANNAN M.Sc., B.Ed COMPUTER SCIENCE IMPORTANT QUESTION (TWO MARKS) CHAPTER 1 TO 5 ( STAR OFFICE WRITER) COMPUTER SCIENCE IMPORTANT QUESTION (TWO MARKS) CHAPTER 1 TO 5 ( STAR OFFICE WRITER) 1. Selecting text with keyboard 2. Differ copying and moving 3. Text Editing 4. Creating a bulleted list 5. Creating

More information

SRI SARASWATHI MATRIC HR SEC SCHOOL PANAPAKKAM +2 IMPORTANT 2 MARK AND 5 MARK QUESTIONS COMPUTER SCIENCE VOLUME I 2 MARKS

SRI SARASWATHI MATRIC HR SEC SCHOOL PANAPAKKAM +2 IMPORTANT 2 MARK AND 5 MARK QUESTIONS COMPUTER SCIENCE VOLUME I 2 MARKS SRI SARASWATHI MATRIC HR SEC SCHOOL PANAPAKKAM +2 IMPORTANT 2 MARK AND 5 MARK QUESTIONS COMPUTER SCIENCE VOLUME I 2 MARKS 1. How to work with multiple documents in StarOffice Writer? 2. What is meant by

More information

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING OBJECT ORIENTED PROGRAMMING STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING 1. Object Oriented Programming Paradigms 2. Comparison of Programming Paradigms 3. Basic Object Oriented Programming

More information

COIMBATORE EDUCATIONAL DISTRICT

COIMBATORE EDUCATIONAL DISTRICT COIMBATORE EDUCATIONAL DISTRICT REVISION EXAMINATION JANUARY 2015 STD-12 COMPUTER SCIENCE ANSEWR KEY PART-I Choose the Correct Answer QNo Answer QNo Answer 1 B Absolute Cell Addressing 39 C Void 2 D

More information

- HALF YEARLY EXAM ANSWER KEY DEC-2016 COMPUTER SCIENCE ENGLISH MEDIUM

- HALF YEARLY EXAM ANSWER KEY DEC-2016 COMPUTER SCIENCE ENGLISH MEDIUM www.padasalai.net - HALF YEARLY EXAM ANSWER KEY DEC-2016 COMPUTER SCIENCE ENGLISH MEDIUM 1 A 26 D 51 C 2 C 27 D 52 D 3 C 28 C 53 B 4 A 29 B 54 D 5 B 30 B 55 B 6 A 31 C 56 A 7 B 32 C 57 D 8 C 33 B 58 C

More information

PART - I 75 x 1 = The building blocks of C++ program are (a) functions (b) classes (c) statements (d) operations

PART - I 75 x 1 = The building blocks of C++ program are (a) functions (b) classes (c) statements (d) operations OCTOBER 2007 COMPUTER SCIENCE Choose the best answer: PART - I 75 x 1 = 75 1. Which of the following functions will be executed first automatically, when a C++ Program is (a) void (b) Main (c) Recursive

More information

HIGHER SECONDARY COMPUTER SCIENCE

HIGHER SECONDARY COMPUTER SCIENCE PUGAL PRESENTS HIGHER SECONDARY COMPUTER SCIENCE 2 MARK & 5 MARK IMPORTANT QUESTIONS PREPARED BY P.CHANDRASEKARAN. M.C.A., B.ED ERODE(DT) FOR ¼ : 95781 90256. XII COMPUTER SCIENCE Star Office 2 MARK QUESTIONS:

More information

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

OBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe OBJECT ORIENTED PROGRAMMING USING C++ CSCI 5448- Object Oriented Analysis and Design By Manali Torpe Fundamentals of OOP Class Object Encapsulation Abstraction Inheritance Polymorphism Reusability C++

More information

UNIT- 3 Introduction to C++

UNIT- 3 Introduction to C++ UNIT- 3 Introduction to C++ C++ Character Sets: Letters A-Z, a-z Digits 0-9 Special Symbols Space + - * / ^ \ ( ) [ ] =!= . $, ; : %! &? _ # = @ White Spaces Blank spaces, horizontal tab, carriage

More information

PROGRAMMING IN C++ COURSE CONTENT

PROGRAMMING IN C++ COURSE CONTENT PROGRAMMING IN C++ 1 COURSE CONTENT UNIT I PRINCIPLES OF OBJECT ORIENTED PROGRAMMING 2 1.1 Procedure oriented Programming 1.2 Object oriented programming paradigm 1.3 Basic concepts of Object Oriented

More information

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR 603203 DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS QUESTION BANK (2017-2018) Course / Branch : M.Sc CST Semester / Year : EVEN / II Subject Name

More information

CHAPTER 4 FUNCTIONS. 4.1 Introduction

CHAPTER 4 FUNCTIONS. 4.1 Introduction CHAPTER 4 FUNCTIONS 4.1 Introduction Functions are the building blocks of C++ programs. Functions are also the executable segments in a program. The starting point for the execution of a program is main

More information

PART I. Part II Answer to all the questions 1. What is meant by a token? Name the token available in C++.

PART I.   Part II Answer to all the questions 1. What is meant by a token? Name the token available in C++. Unit - III CHAPTER - 9 INTRODUCTION TO C++ Choose the correct answer. PART I 1. Who developed C++? (a) Charles Babbage (b) Bjarne Stroustrup (c) Bill Gates (d) Sundar Pichai 2. What was the original name

More information

Sri Vidya College of Engineering & Technology

Sri Vidya College of Engineering & Technology UNIT I INTRODUCTION TO OOP AND FUNDAMENTALS OF JAVA 1. Define OOP. Part A Object-Oriented Programming (OOP) is a methodology or paradigm to design a program using classes and objects. It simplifies the

More information

Object Oriented Pragramming (22316)

Object Oriented Pragramming (22316) Chapter 1 Principles of Object Oriented Programming (14 Marks) Q1. Give Characteristics of object oriented programming? Or Give features of object oriented programming? Ans: 1. Emphasis (focus) is on data

More information

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

OBJECT ORIENTED PROGRAMMING. Ms. Ajeta Nandal C.R.Polytechnic,Rohtak OBJECT ORIENTED PROGRAMMING Ms. Ajeta Nandal C.R.Polytechnic,Rohtak OBJECT ORIENTED PARADIGM Object 2 Object 1 Data Data Function Function Object 3 Data Function 2 WHAT IS A MODEL? A model is an abstraction

More information

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University Unit 1 Programming Language and Overview of C 1. State whether the following statements are true or false. a. Every line in a C program should end with a semicolon. b. In C language lowercase letters are

More information

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

I BSc(IT) [ Batch] Semester II Core: Object Oriented Programming With C plus plus - 212A Multiple Choice Questions. Dr.G.R.Damodaran College of Science (Autonomous, affiliated to the Bharathiar University, recognized by the UGC)Reaccredited at the 'A' Grade Level by the NAAC and ISO 9001:2008 Certified CRISL rated 'A'

More information

COMMON QUARTERLY EXAMINATION SEPTEMBER 2018

COMMON QUARTERLY EXAMINATION SEPTEMBER 2018 i.ne COMMON QUARTERLY EXAMINATION SEPTEMBER 2018 1. a) 12 2. a) Delete 3. b) Insert column 4. d) Ruler 5. a) F2 6. b) Auto fill 7. c) Label 8. c) Master page 9. b) Navigator 10. d) Abstraction 11. d) Void

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK B.E. - Electrical and Electronics Engineering IV SEMESTER CS6456 - OBJECT ORIENTED

More information

Tokens, Expressions and Control Structures

Tokens, Expressions and Control Structures 3 Tokens, Expressions and Control Structures Tokens Keywords Identifiers Data types User-defined types Derived types Symbolic constants Declaration of variables Initialization Reference variables Type

More information

Short Notes of CS201

Short Notes of CS201 #includes: Short Notes of CS201 The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with < and > if the file is a system

More information

Interview Questions of C++

Interview Questions of C++ Interview Questions of C++ Q-1 What is the full form of OOPS? Ans: Object Oriented Programming System. Q-2 What is a class? Ans: Class is a blue print which reflects the entities attributes and actions.

More information

CS201 - Introduction to Programming Glossary By

CS201 - Introduction to Programming Glossary By CS201 - Introduction to Programming Glossary By #include : The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with

More information

1. Describe History of C++? 2. What is Dev. C++? 3. Why Use Dev. C++ instead of C++ DOS IDE?

1. Describe History of C++? 2. What is Dev. C++? 3. Why Use Dev. C++ instead of C++ DOS IDE? 1. Describe History of C++? The C++ programming language has a history going back to 1979, when Bjarne Stroustrup was doing work for his Ph.D. thesis. One of the languages Stroustrup had the opportunity

More information

ADARSH. FAQ for +2 Computer Science. Supplementary Edition. VOL-II. P.Simon Navis

ADARSH. FAQ for +2 Computer Science. Supplementary Edition.  VOL-II. P.Simon Navis ADARSH FAQ for +2 Computer Science Supplementary Edition VOL-II P.Simon Navis Department Of Computer Science Adarsh Vidya Kendra, Nagercoil Mob : 7598228016 ( simonnavis12@gmail.com ) Simon-Adarsh Vidya

More information

C++ Important Questions with Answers

C++ Important Questions with Answers 1. Name the operators that cannot be overloaded. sizeof,.,.*,.->, ::,? 2. What is inheritance? Inheritance is property such that a parent (or super) class passes the characteristics of itself to children

More information

CHRIST THE KING BOYS MATRIC HR. SEC. SCHOOL, KUMBAKONAM CHAPTER 9 C++

CHRIST THE KING BOYS MATRIC HR. SEC. SCHOOL, KUMBAKONAM CHAPTER 9 C++ CHAPTER 9 C++ 1. WRITE ABOUT THE BINARY OPERATORS USED IN C++? ARITHMETIC OPERATORS: Arithmetic operators perform simple arithmetic operations like addition, subtraction, multiplication, division etc.,

More information

Model Viva Questions for Programming in C lab

Model Viva Questions for Programming in C lab Model Viva Questions for Programming in C lab Title of the Practical: Assignment to prepare general algorithms and flow chart. Q1: What is a flowchart? A1: A flowchart is a diagram that shows a continuous

More information

Cpt S 122 Data Structures. Introduction to C++ Part II

Cpt S 122 Data Structures. Introduction to C++ Part II Cpt S 122 Data Structures Introduction to C++ Part II Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Topics Objectives Defining class with a member function

More information

Character Set. The character set of C represents alphabet, digit or any symbol used to represent information. Digits 0, 1, 2, 3, 9

Character Set. The character set of C represents alphabet, digit or any symbol used to represent information. Digits 0, 1, 2, 3, 9 Character Set The character set of C represents alphabet, digit or any symbol used to represent information. Types Uppercase Alphabets Lowercase Alphabets Character Set A, B, C, Y, Z a, b, c, y, z Digits

More information

calling a function - function-name(argument list); y = square ( z ); include parentheses even if parameter list is empty!

calling a function - function-name(argument list); y = square ( z ); include parentheses even if parameter list is empty! Chapter 6 - Functions return type void or a valid data type ( int, double, char, etc) name parameter list void or a list of parameters separated by commas body return keyword required if function returns

More information

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL Sub : Computer Science Full Portion Exam Max. Mark : 150 Class : XII - EM Time : 3.00 Hrs PART - I I. Choose the correct answer. 75 x 1 = 75 1. In Save As dialog

More information

MAN4A OBJECT ORIENTED PROGRAMMING WITH C++ Unit I - V

MAN4A OBJECT ORIENTED PROGRAMMING WITH C++ Unit I - V MAN4A OBJECT ORIENTED PROGRAMMING WITH C++ Unit I - V MAN4B Object Oriented Programming with C++ 1 UNIT 1 Syllabus Principles of object oriented programming(oops), object-oriented paradigm. Advantages

More information

Objectives. Chapter 2: Basic Elements of C++ Introduction. Objectives (cont d.) A C++ Program (cont d.) A C++ Program

Objectives. Chapter 2: Basic Elements of C++ Introduction. Objectives (cont d.) A C++ Program (cont d.) A C++ Program Objectives Chapter 2: Basic Elements of C++ In this chapter, you will: Become familiar with functions, special symbols, and identifiers in C++ Explore simple data types Discover how a program evaluates

More information

Object Oriented Programming. Solved MCQs - Part 2

Object Oriented Programming. Solved MCQs - Part 2 Object Oriented Programming Solved MCQs - Part 2 Object Oriented Programming Solved MCQs - Part 2 It is possible to declare as a friend A member function A global function A class All of the above What

More information

Chapter 2: Basic Elements of C++

Chapter 2: Basic Elements of C++ Chapter 2: Basic Elements of C++ Objectives In this chapter, you will: Become familiar with functions, special symbols, and identifiers in C++ Explore simple data types Discover how a program evaluates

More information

Chapter 2: Basic Elements of C++ Objectives. Objectives (cont d.) A C++ Program. Introduction

Chapter 2: Basic Elements of C++ Objectives. Objectives (cont d.) A C++ Program. Introduction Chapter 2: Basic Elements of C++ C++ Programming: From Problem Analysis to Program Design, Fifth Edition 1 Objectives In this chapter, you will: Become familiar with functions, special symbols, and identifiers

More information

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

CS201- Introduction to Programming Latest Solved Mcqs from Midterm Papers May 07,2011. MIDTERM EXAMINATION Spring 2010 CS201- Introduction to Programming Latest Solved Mcqs from Midterm Papers May 07,2011 Lectures 1-22 Moaaz Siddiq Asad Ali Latest Mcqs MIDTERM EXAMINATION Spring 2010 Question No: 1 ( Marks: 1 ) - Please

More information

Objectives. In this chapter, you will:

Objectives. In this chapter, you will: Objectives In this chapter, you will: Become familiar with functions, special symbols, and identifiers in C++ Explore simple data types Discover how a program evaluates arithmetic expressions Learn about

More information

Data Structures using OOP C++ Lecture 3

Data Structures using OOP C++ Lecture 3 References: th 1. E Balagurusamy, Object Oriented Programming with C++, 4 edition, McGraw-Hill 2008. 2. Robert L. Kruse and Alexander J. Ryba, Data Structures and Program Design in C++, Prentice-Hall 2000.

More information

Absolute C++ Walter Savitch

Absolute C++ Walter Savitch Absolute C++ sixth edition Walter Savitch Global edition This page intentionally left blank Absolute C++, Global Edition Cover Title Page Copyright Page Preface Acknowledgments Brief Contents Contents

More information

UNIT-2 Introduction to C++

UNIT-2 Introduction to C++ UNIT-2 Introduction to C++ C++ CHARACTER SET Character set is asset of valid characters that a language can recognize. A character can represents any letter, digit, or any other sign. Following are some

More information

Unit-II Programming and Problem Solving (BE1/4 CSE-2)

Unit-II Programming and Problem Solving (BE1/4 CSE-2) Unit-II Programming and Problem Solving (BE1/4 CSE-2) Problem Solving: Algorithm: It is a part of the plan for the computer program. An algorithm is an effective procedure for solving a problem in a finite

More information

Downloaded from

Downloaded from Unit I Chapter -1 PROGRAMMING IN C++ Review: C++ covered in C++ Q1. What are the limitations of Procedural Programming? Ans. Limitation of Procedural Programming Paradigm 1. Emphasis on algorithm rather

More information

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

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS Contents Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS 1.1. INTRODUCTION TO COMPUTERS... 1 1.2. HISTORY OF C & C++... 3 1.3. DESIGN, DEVELOPMENT AND EXECUTION OF A PROGRAM... 3 1.4 TESTING OF PROGRAMS...

More information

CS201 Latest Solved MCQs

CS201 Latest Solved MCQs Quiz Start Time: 09:34 PM Time Left 82 sec(s) Question # 1 of 10 ( Start time: 09:34:54 PM ) Total Marks: 1 While developing a program; should we think about the user interface? //handouts main reusability

More information

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and #include The Use of printf() and scanf() The Use of printf()

More information

SURA's Guides for 3rd to 12th Std for all Subjects in TM & EM Available MARCH [1]

SURA's Guides for 3rd to 12th Std for all Subjects in TM & EM Available MARCH [1] 12 th STD. MARCH - 2017 [Time Allowed : 3 hours] COMPUTER SCIENCE with Answers [Maximum Marks : 150] PART-I Choose the most suitable answer from the given four alternatives and write the option code and

More information

Get Unique study materials from

Get Unique study materials from Downloaded from www.rejinpaul.com VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur 603203. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Year & Semester : IV Section : EEE - 1 & 2 Subject Code

More information

CAMBRIDGE SCHOOL, NOIDA ASSIGNMENT 1, TOPIC: C++ PROGRAMMING CLASS VIII, COMPUTER SCIENCE

CAMBRIDGE SCHOOL, NOIDA ASSIGNMENT 1, TOPIC: C++ PROGRAMMING CLASS VIII, COMPUTER SCIENCE CAMBRIDGE SCHOOL, NOIDA ASSIGNMENT 1, TOPIC: C++ PROGRAMMING CLASS VIII, COMPUTER SCIENCE a) Mention any 4 characteristic of the object car. Ans name, colour, model number, engine state, power b) What

More information

CS201 Some Important Definitions

CS201 Some Important Definitions CS201 Some Important Definitions For Viva Preparation 1. What is a program? A program is a precise sequence of steps to solve a particular problem. 2. What is a class? We write a C++ program using data

More information

Chapter 2 Basic Elements of C++

Chapter 2 Basic Elements of C++ C++ Programming: From Problem Analysis to Program Design, Fifth Edition 2-1 Chapter 2 Basic Elements of C++ At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class Discussion

More information

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

Quiz Start Time: 09:34 PM Time Left 82 sec(s) Quiz Start Time: 09:34 PM Time Left 82 sec(s) Question # 1 of 10 ( Start time: 09:34:54 PM ) Total Marks: 1 While developing a program; should we think about the user interface? //handouts main reusability

More information

C++ Programming: From Problem Analysis to Program Design, Third Edition

C++ Programming: From Problem Analysis to Program Design, Third Edition C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 2: Basic Elements of C++ Objectives (continued) Become familiar with the use of increment and decrement operators Examine

More information

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

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++ No. of Printed Pages : 3 I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination 05723. June, 2015 BCS-031 : PROGRAMMING IN C ++ Time : 3 hours Maximum Marks : 100 (Weightage 75%)

More information

STRUCTURING OF PROGRAM

STRUCTURING OF PROGRAM Unit III MULTIPLE CHOICE QUESTIONS 1. Which of the following is the functionality of Data Abstraction? (a) Reduce Complexity (c) Parallelism Unit III 3.1 (b) Binds together code and data (d) None of the

More information

Fast Introduction to Object Oriented Programming and C++

Fast Introduction to Object Oriented Programming and C++ Fast Introduction to Object Oriented Programming and C++ Daniel G. Aliaga Note: a compilation of slides from Jacques de Wet, Ohio State University, Chad Willwerth, and Daniel Aliaga. Outline Programming

More information

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

Jayaram college of Engineering and Technology, Pagalavadi. CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT Two Mark Questions UNIT - I 1. DEFINE ENCAPSULATION. Encapsulation is the process of combining data and functions

More information

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language 1 History C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC

More information

PROGRAMMING IN C AND C++:

PROGRAMMING IN C AND C++: PROGRAMMING IN C AND C++: Week 1 1. Introductions 2. Using Dos commands, make a directory: C:\users\YearOfJoining\Sectionx\USERNAME\CS101 3. Getting started with Visual C++. 4. Write a program to print

More information

Problem Solving with C++

Problem Solving with C++ GLOBAL EDITION Problem Solving with C++ NINTH EDITION Walter Savitch Kendrick Mock Ninth Edition PROBLEM SOLVING with C++ Problem Solving with C++, Global Edition Cover Title Copyright Contents Chapter

More information

Aryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9

Aryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9 Fundamental of C Programming Unit I: Q1. What will be the value of the following expression? (2017) A + 9 Q2. Write down the C statement to calculate percentage where three subjects English, hindi, maths

More information

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

Object Oriented Programming. Assistant Lecture Omar Al Khayat 2 nd Year Object Oriented Programming Assistant Lecture Omar Al Khayat 2 nd Year Syllabus Overview of C++ Program Principles of object oriented programming including classes Introduction to Object-Oriented Paradigm:Structures

More information

POINTERS - Pointer is a variable that holds a memory address of another variable of same type. - It supports dynamic allocation routines. - It can improve the efficiency of certain routines. C++ Memory

More information

UNIT - I. Introduction to C Programming. BY A. Vijay Bharath

UNIT - I. Introduction to C Programming. BY A. Vijay Bharath UNIT - I Introduction to C Programming Introduction to C C was originally developed in the year 1970s by Dennis Ritchie at Bell Laboratories, Inc. C is a general-purpose programming language. It has been

More information

Data type of a pointer must be same as the data type of the variable to which the pointer variable is pointing. Here are a few examples:

Data type of a pointer must be same as the data type of the variable to which the pointer variable is pointing. Here are a few examples: Unit IV Pointers and Polymorphism in C++ Concepts of Pointer: A pointer is a variable that holds a memory address of another variable where a value lives. A pointer is declared using the * operator before

More information

Fundamental of Programming (C)

Fundamental of Programming (C) Borrowed from lecturer notes by Omid Jafarinezhad Fundamental of Programming (C) Lecturer: Vahid Khodabakhshi Lecture 3 Constants, Variables, Data Types, And Operations Department of Computer Engineering

More information

Review of the C Programming Language for Principles of Operating Systems

Review of the C Programming Language for Principles of Operating Systems Review of the C Programming Language for Principles of Operating Systems Prof. James L. Frankel Harvard University Version of 7:26 PM 4-Sep-2018 Copyright 2018, 2016, 2015 James L. Frankel. All rights

More information

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23.

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23. Subject code - CCP01 Chapt Chapter 1 INTRODUCTION TO C 1. A group of software developed for certain purpose are referred as ---- a. Program b. Variable c. Software d. Data 2. Software is classified into

More information

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p.

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p. Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p. 9 Self-Test Exercises p. 11 History Note p. 12 Programming and

More information

CSC 307 DATA STRUCTURES AND ALGORITHM ANALYSIS IN C++ SPRING 2011

CSC 307 DATA STRUCTURES AND ALGORITHM ANALYSIS IN C++ SPRING 2011 CSC 307 DATA STRUCTURES AND ALGORITHM ANALYSIS IN C++ SPRING 2011 Date: 01/18/2011 (Due date: 01/20/2011) Name and ID (print): CHAPTER 6 USER-DEFINED FUNCTIONS I 1. The C++ function pow has parameters.

More information

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

JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University) Estd: 1994 JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli - 621014 (An approved by AICTE and Affiliated to Anna University) ISO 9001:2000 Certified Subject Code & Name : CS 1202

More information

About Codefrux While the current trends around the world are based on the internet, mobile and its applications, we try to make the most out of it. As for us, we are a well established IT professionals

More information

6.096 Introduction to C++ January (IAP) 2009

6.096 Introduction to C++ January (IAP) 2009 MIT OpenCourseWare http://ocw.mit.edu 6.096 Introduction to C++ January (IAP) 2009 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. Welcome to 6.096 Lecture

More information

DEPARTMENT OF MATHS, MJ COLLEGE

DEPARTMENT OF MATHS, MJ COLLEGE T. Y. B.Sc. Mathematics MTH- 356 (A) : Programming in C Unit 1 : Basic Concepts Syllabus : Introduction, Character set, C token, Keywords, Constants, Variables, Data types, Symbolic constants, Over flow,

More information

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL Sub : Computer Science Full Portion Exam Max. Mark : 150 Class : XII - EM Time : 3.00 Hrs PART - I I. Choose the correct answer. 75 x 1 = 75 1. Cut, copy, paste,

More information

Computer Programming : C++

Computer Programming : C++ The Islamic University of Gaza Engineering Faculty Department of Computer Engineering Fall 2017 ECOM 2003 Muath i.alnabris Computer Programming : C++ Experiment #1 Basics Contents Structure of a program

More information

2. Distinguish between a unary, a binary and a ternary operator. Give examples of C++ operators for each one of them.

2. Distinguish between a unary, a binary and a ternary operator. Give examples of C++ operators for each one of them. 1. Why do you think C++ was not named ++C? C++ is a super set of language C. All the basic features of C are used in C++ in their original form C++ can be described as C+ some additional features. Therefore,

More information

OOP THROUGH C++(R16) int *x; float *f; char *c;

OOP THROUGH C++(R16) int *x; float *f; char *c; What is pointer and how to declare it? Write the features of pointers? A pointer is a memory variable that stores the address of another variable. Pointer can have any name that is legal for other variables,

More information

END TERM EXAMINATION

END TERM EXAMINATION END TERM EXAMINATION THIRD SEMESTER [BCA] DECEMBER 2007 Paper Code: BCA 209 Subject: Object Oriented Programming Time: 3 hours Maximum Marks: 75 Note: Attempt all questions. Internal choice is indicated.

More information

Review of the C Programming Language

Review of the C Programming Language Review of the C Programming Language Prof. James L. Frankel Harvard University Version of 11:55 AM 22-Apr-2018 Copyright 2018, 2016, 2015 James L. Frankel. All rights reserved. Reference Manual for the

More information

Computer Science & Information Technology (CS) Rank under AIR 100. Examination Oriented Theory, Practice Set Key concepts, Analysis & Summary

Computer Science & Information Technology (CS) Rank under AIR 100. Examination Oriented Theory, Practice Set Key concepts, Analysis & Summary GATE- 2016-17 Postal Correspondence 1 C-Programming Computer Science & Information Technology (CS) 20 Rank under AIR 100 Postal Correspondence Examination Oriented Theory, Practice Set Key concepts, Analysis

More information

Darshan Institute of Engineering & Technology for Diploma Studies

Darshan Institute of Engineering & Technology for Diploma Studies 1. Explain Call by Value vs. Call by Reference Or Write a program to interchange (swap) value of two variables. Call By Value In call by value pass value, when we call the function. And copy this value

More information

The SPL Programming Language Reference Manual

The SPL Programming Language Reference Manual The SPL Programming Language Reference Manual Leonidas Fegaras University of Texas at Arlington Arlington, TX 76019 fegaras@cse.uta.edu February 27, 2018 1 Introduction The SPL language is a Small Programming

More information

Weiss Chapter 1 terminology (parenthesized numbers are page numbers)

Weiss Chapter 1 terminology (parenthesized numbers are page numbers) Weiss Chapter 1 terminology (parenthesized numbers are page numbers) assignment operators In Java, used to alter the value of a variable. These operators include =, +=, -=, *=, and /=. (9) autoincrement

More information

Time : 3 hours. Full Marks : 75. Own words as far as practicable. The questions are of equal value. Answer any five questions.

Time : 3 hours. Full Marks : 75. Own words as far as practicable. The questions are of equal value. Answer any five questions. XEV (H-3) BCA (6) 2 0 1 0 Time : 3 hours Full Marks : 75 Candidates are required to give their answers in their Own words as far as practicable. The questions are of equal value. Answer any five questions.

More information

Creating a C++ Program

Creating a C++ Program Program A computer program (also software, or just a program) is a sequence of instructions written in a sequence to perform a specified task with a computer. 1 Creating a C++ Program created using an

More information

C Programming Multiple. Choice

C Programming Multiple. Choice C Programming Multiple Choice Questions 1.) Developer of C language is. a.) Dennis Richie c.) Bill Gates b.) Ken Thompson d.) Peter Norton 2.) C language developed in. a.) 1970 c.) 1976 b.) 1972 d.) 1980

More information

Lesson Plan. Subject: OBJECT ORIENTED PROGRAMMING USING C++ :15 weeks (From January, 2018 to April,2018)

Lesson Plan. Subject: OBJECT ORIENTED PROGRAMMING USING C++ :15 weeks (From January, 2018 to April,2018) Lesson Plan Name of the Faculty Discipline Semester :Mrs. Reena Rani : Computer Engineering : IV Subject: OBJECT ORIENTED PROGRAMMING USING C++ Lesson Plan Duration :15 weeks (From January, 2018 to April,2018)

More information

The PCAT Programming Language Reference Manual

The PCAT Programming Language Reference Manual The PCAT Programming Language Reference Manual Andrew Tolmach and Jingke Li Dept. of Computer Science Portland State University September 27, 1995 (revised October 15, 2002) 1 Introduction The PCAT language

More information

I Internal Examination Sept Class: - BCA I Subject: - Principles of Programming Lang. (BCA 104) MM: 40 Set: A Time: 1 ½ Hrs.

I Internal Examination Sept Class: - BCA I Subject: - Principles of Programming Lang. (BCA 104) MM: 40 Set: A Time: 1 ½ Hrs. I Internal Examination Sept. 2018 Class: - BCA I Subject: - Principles of Programming Lang. (BCA 104) MM: 40 Set: A Time: 1 ½ Hrs. [I]Very short answer questions (Max 40 words). (5 * 2 = 10) 1. What is

More information

CS6202 - PROGRAMMING & DATA STRUCTURES UNIT I Part - A 1. W hat are Keywords? Keywords are certain reserved words that have standard and pre-defined meaning in C. These keywords can be used only for their

More information

3.Constructors and Destructors. Develop cpp program to implement constructor and destructor.

3.Constructors and Destructors. Develop cpp program to implement constructor and destructor. 3.Constructors and Destructors Develop cpp program to implement constructor and destructor. Constructors A constructor is a special member function whose task is to initialize the objects of its class.

More information

Programming. C++ Basics

Programming. C++ Basics Programming C++ Basics Introduction to C++ C is a programming language developed in the 1970s with the UNIX operating system C programs are efficient and portable across different hardware platforms C++

More information