+2 Volume II OBJECT TECHNOLOGY OBJECTIVE QUESTIONS R.Sreenivasan SanThome HSS, Chennai-4. Chapter -1
|
|
- Sarah McCormick
- 5 years ago
- Views:
Transcription
1 Chapter 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 and data that serves those functions. 4.An object is a kind of self sufficient sub programs with a specific functional area. 5.The process of grouping data and functions as objects is encapsulation. 6.The mechanism by which data and functions are bound together within an objects definition is called as encapsulation. 7.The ability of an object to respond differently to different messages is called polymorphism. 8.The process of acquiring the base class properties is called inheritance. 9. An object attempts to capture a real world object in a program. CHAPTER-2 1.C++ was developed at AT & T Bell laboratories in 1980 by Bjarne Stroupstrup. 2.The name C++ was coined by Rick Mascitti. 3.The basic types in a C++ character set are collectively called as tokens. 4.A token is the smallest individual unit in a program. 5.Tokens are classified into five types. 6.Keywords in C++ is known as reserved words. 7.Identifiers are also called as variables. 8.A sequence of digits starting with zero is an Octal constant. 9.The sequence of digits starting with Ox is called as hexadecimal integer. 10.The letter E or e is used to represent floating point constant exponent form. 11.Character constant is a constant that contains a single character enclosed within single quotes. 12.A variable name must begin with an alphabet or underscore. 13.Special character like tab, backspace, line feed, null, backslash are called non graphic character content. 14.Escape sequences are represented using character prefixed with a backslash. 15.String literal is a sequence of characters enclosed by double quotes.
2 16.The special character \0 marks the end of a string. 17.An operand is an entity on which an operator acts. 18.The operator # and ## are used only by preprocessor. 19.Operators are classified into 13 different types. 20.Operators are executed in the order of precedence. 21.The logical grouping of operand and operator is called association. 22.The resultant value of (5+6)/3 is an integer if the inputs are integers. 23.The resultant value of (5+6)/3 is an float if the inputs are real. 24.The resultant of 1+pow(3,2) is If a=5, b=5, a = a+ b++ What is the value of a? if x = 10, f = 20, c= x f What is the value of c, x and f? 31, 20, If fun=1, sim=2, final = --fun+ ++sim-fun. What is the value of fun, sim and final? 0, 3, The are 6 types of Relational operators.? 29.The result of a relational operation is returned as true of false. 30. If num1 = 99, num2=20 and num3=10 what is the result of the expression (num1+num2-num3)/5*2< ( num%10 ) False 31. Relational operators have lower precedence that the arithmetic operators. 32.The logical operators have lower precedence to relational and arithmetic operators. 33.A ternary operator (?: ) is also called conditional operator. 34. If a = 10, b = 10 what is the result of x = ( a<b)? a*a : b%a? Ans. x = 0 35.There are 2 types of comments in C The C++ data types is classified into 3 categories. 37.User defined data type enables a programmer to invent own data type and define values. 38.Storage class is another qualifier that can be added to a variable declaration. 39.There a four types of storage specifiers. 40. auto defines local variable known to the block in which they are defined. 41.By default the local variables are auto.
3 42. Static variables defined within a function or a block cease to exist, the moment the function or the block looses its scope. 43.Static modifier allows the variable to exist in the memory of the computer, even if its function or block within which it is declared looses its scope. 44.extern is a global variable known to all functions in the current program. 45.The register modifier instructs the compiler to store the variable in the CPU register to optimize access. 46. Built in data types are also called as Fundamental or Basic Data types. 47. The three fundamental data types are Integral, Float and void. 48.Integral data type is divided into 2 types as int and char. 49.char is character data type that can hold both character and integer data. 50.The statement char ch=65 yields the same result of storing the value A in the variable ch. 51.Floating type is divided into float and double. 52.void has two important purposes. 53. A pointer is a variable that hold a memory address 54.Variables are user defined named entities of memory locations that can store data. 55.Every variable should be separated by a comma. 56. There are nine words for data types. 57.Maximum and minimum value stored in an integer variable is and The 16 th bit is also called as the Most significant bit or sign bit 59.The modifier alters the base data type to yield new data type. 60.The const qualifier specifies that the value of a variable will not change during program execution. 61.Implicit conversions refers to data type changes brought about in expressions by the compiler. 62.The sizeof operator returns the size(memory requirements) in terms of bytes 63.Type cast is achieved by prefixing the variable or value with the required data type. Chapter-3 1.The declarations for the object cin are available in a header file called istream.h 2. The declarations for the object cout are available in a header file called ostream.h 3.The iostream.h file comprised the combined properties of istream.h and ostream.h
4 4.The >> is the extraction or get from operator. 5.The operator << is called the insertion operator or put to operator 6.Cascading of insertion operator facilitates sending of multiple output via a single statement. 7.A C++ program has primarily three sections. 8.Program statements that cause a jump of control from one part of a program to another are called control Structures 9.The two major categories of control structures are Decision and looping statements. 10.The if statement is implemented in 2 forms. 11.Switch statement is a multiple branching statement 12.There are three kinds of loops in C Do.. while loop is a Exit-Check Loop. 14. While condition is called as the Entry Check loop. 15.The while loop will be executed only if the test expression results in true. 16.The while control exits the loop when the test expression is evaluated to false. 17. The for loop is an entry controlled loop. 18. A loop execution is terminated when the test condition evaluates to false. 1.Functions are building blocks of C++. Chapter-4 2.A function can be called or invoked from another function by using its name. 3.Parameters are the channels through which data flows from the call statement to the function and vice versa. 4.Parameters declared in the function main program are called Actual parameter. 5. Parameters declared in the function program are called Formal parameter. 6.Parameter passing in functions are of two types. 7.The call by value method copies the values of actual parameters into the formal parameters. 8.The call by value function creates its own copy of arguments and then uses them. 9.Any change in the formal parameter is NOT reflected back to the actual parameter is Call by value method. 10.In Call by reference method the formal parameters become alias to actual parameters I the calling function.
5 11.Any change made in the formal parameter is reflected back in the actual parameter is called Call by reference method. 12.The functions that return no value is declared as void. 13.A function returning a reference can appear on the left-hand side of an assignment. 14.The formal parameters for a reference functions should always be of reference parameter type. 15.Reusability of code leading to saving of memory space and reduction in code size. 16.An inline looks like a normal function in the source file but inserts the functions code directly into the calling program. 17.Inline functions execute faster but requires more memory space. 18.Inline keyword is just a request to the compiler. 19.Scope refers to accessibility of a variable. 20.There are four types of scopes in C A local variable is defined within a block. 22.The life time of a function scope variable is the life time of the function block. 23.A variable declared above all blocks and functions has the scope of a file. 1.An array in C++ is a derived data type. Chapter An array is a collection of variables of the same type that are referenced by a common name. 3.Arrays are of two types. 4.The size of the array should always be positive. 5.The memory allotted for an array that stores 5 integer values is 10 bytes. 6.The array subscripts always commences from zero. 7.Strings are otherwise called as literals. 8.A character array should be terminated with a \0 (NULL) character. 9.There are two methods to display the contents of string. 10.The write functions requires two parameters. 11.The strlen() function returns the number of characters stored in the array. 12.The strcpy() copies source string to target string.
6 13.The strcmp() function compares the two given strings. 14.The strcmp() returns 0(zero) if strings are equal. 15. The strcmp() returns 1 if string 1 is greater than string The strcmp() returns value less that zero if string 1 is less than string The size of the array for int sales[2][4] is 16 bytes. 18.The size of the array for float num[4][6] is 96 bytes. 19.The number of elements for int array[10[[12] is 120 elements. 20. The number of elements for int x[][2]={0,1,1,2,2,3} is 6 elements. 21.Array parameters by default behave like a reference parameter. 1.The most important feature of C++ is a Class. Chapter 6 2.Bjarne Stroustrup initially gave the name for C++ as C with Classes 3.A class is a way to bind the data and its associated functions together. 4.The class specification has two parts. 5.The keyword class specifies userdefined data type class name 6.The body of a class is enclosed within braces and is terminated by a semicolon. 7.The class body contains the declarations of variables and functions. 8.The class body has three access specifiers. 9.By default the members will be treated as private if visibility label is not mentioned. 10.The members declared private can be accessed only from within the class. 11.The members declared as protected can be accessed from within the class and members of inherited classes. 12.The members declared as public can be accessed from outside the class also. 13.The binding of data and functions together into a single entity is referred as encapsulation. 14.The members declared outside the class is referred as data hiding. 15.Instruments allowing only selected access of components to objects and to members of other classes is called data abstraction. 16.Private accessible by only its own members and certain special functions called as friend functions.
7 17.Class variables are known as objects. 18.The members of a class are accessed using he dot operator. 19.The objects declared outside the class cannot access members or functions defined under private or protected. 20.The members defined within the class behave like inline functions. 21.A member function can call another member function directly without using the dot operator. 22.The static member variable is initialized to zero. 23.The initial value to a static member variable is done outside the class. 1.The word polymorphism means many forms. Chapter-7 2.Polymorphism is achieved by function and operator overloading. 3.The term overloading means a name having two or more distinct meanings. 4.An overloaded function refers to a function having more than one distinct meaning. 5.The ability of the function to process the message or data in more than one form is called as function overloading. 6.In function overloading the compiler adopts best match strategy. 7.Integral data promotions are purely compiler oriented. 8.The term operator overloading refers to giving additional functionality to the normal C++ operator. 9.The function strcat() is used to concatenate strings. 10.Operators that cannot be overloaded are membership operator(.), scope resolution operator(::), size of operator, and conditional operator(?:) 11.Operator functions must be either member functions or friend functions. 12.In operator overloading the + operator has been used to merge two strings. 13.The mechanism of giving special meaning to an operator is called as operator overloading. 14.When binary operators are overloaded, the left hand object must be an object of the relevant class. 15.Binary operators overloaded through a member function take one explicit argument. 16.The overloaded operator must have at least one operand of user defined type.
8 Chapter-8 1.When an instance of a class comes into scope, a special function called the constructor gets executed. 2.When a class object goes out of scope a special function called the destructor gets executed. 3.The constructor without parameters is called default constructor. 4.The constructor add( add &a) is called as copy constructor. 5.The prefix used for destructor is tilde(~) symbol. 6.In a class only one destructor is possible. Chapter-9 1.Inheritance is the process of creating new classes called derived classes. 2.The derived class is called as power packed class. 3.The name of the derived class is to be given after the keyword class. 4.The punctuation used for derived class is a colon(:) 5.The important feature in inheritance is to know as to when a member of a base class can be used by the objects is known as accessibility. 6.The default visibility mode is private. 7.There are five types of inheritance. 8.Constructor are executed from the base constructor to derived. 9.Destructors are executed in the reverse order. 10.Classes used only for deriving other classes are called as Abstract Classes. 1.85% of computer usage is Word Processing. 2.The archive unit enables data storage and management. Chapter-10 3.Emotion containers are small containers with a screen, speaker and a scent to derive emotional comfort. 4.Devices with karaoke allows one to sing along with the audio coming from the original source. 5.Memo frame is an easy interaction with other people through touch screen, scanner and microphone. 6.Personal creativity tool is used to draw capture and work with multimedia elements.
9 7.Advanced machines like ATM enable withdrawal of money from anywhere at any time. 8.e-banking permits banking from the comfort of the home by using internet facilities. 9.e-learning enables online educational programs leading to degrees and certifications. 10.Internet facilitates remote diagnostics called Tele-medicine. Chapter 11 1.Dictaphone converts speech into a letter is an IT enables services. 2.Computers help to browse at the government websites and the services provided by them is called e-governance. 3.A call center is defined as a telephone based shared service center for specific customer activities. 4.Data management is for collection, digitization and processing of data coming from various sources. 5.Data security and customer privacy are two important aspects that must be ensured by the ITES provider. 6.Medical transcription is a permanent, legal document that is a result of a medical investigation. 7.Digitization refers to the conversion of non-digital material to digital form. Chapter-12 1.Computer ethics is the work of Norbert Wiener during World War II. 2.In 1960 s Donn Parker began to examine unethical and illegal uses of computers by computer professionals. 3.There are 3 types of data security. 4.Physical security refers to the protection of hardware. 5.Personal Security refers to software setups that permits only authorized access to the system. 6.Personnel Secuity refers to protecting data and computer system against dishonest employees. 7.Computer crime is any illegal activity using computer software or data as an instrument of crime. 8.A virus is a self-replicating program that can cause damage to data and files stored in computer 9.Software that runs on a idle computer without the knowledge of the organization is called theft of computer time. 10.Cracking is the illegal access to the network or computer system which is a cyber crime. 11.India has Cyber laws to prevent computer crimes % of computer crime happens within the company. 13.Making and using duplicate hardware and software is called piracy. 14.The ten commandments of computer ethics was written by the Computer Ethics Institue.
10 Study the following in addition 1. Table 2.1 Keywords 2. Table 2.2 Escape Sequences 3. Table 2.4a Unary Operators 4. Table 2.4b Binary Operators 5. Table 2.5 Mathematical Operator Precedence 6. Table 2.9 Assignment Operators 7. Table 2.10 Operator Precedence 8. Table 2.11 Punctuators and their Purpose. 9. Table 2.13 Data types Size and Range of Values 10. Table 2.15 Data types with modifiers 11. Go through Exercises in Page 51 to Go through Table 3.1 If construct 13. Go through exercises from page 89 to Go through exercises from page 118 to Go through Exercises from page 145 to Go through exercises in Page 194
11
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 informationPadasalai.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 informationPART 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 informationPART - 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 informationUNIT- 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 informationXII- 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 informationSTUDY 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 informationCOIMBATORE 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 informationInterview 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 informationOBJECT 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 informationTokens, 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 information2 nd Week Lecture Notes
2 nd Week Lecture Notes Scope of variables All the variables that we intend to use in a program must have been declared with its type specifier in an earlier point in the code, like we did in the previous
More informationPROGRAMMING 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 information6.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 informationWeiss 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 informationSRE 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 informationStandard 11. Lesson 9. Introduction to C++( Up to Operators) 2. List any two benefits of learning C++?(Any two points)
Standard 11 Lesson 9 Introduction to C++( Up to Operators) 2MARKS 1. Why C++ is called hybrid language? C++ supports both procedural and Object Oriented Programming paradigms. Thus, C++ is called as a
More informationCHAPTER-6 GETTING STARTED WITH C++
CHAPTER-6 GETTING STARTED WITH C++ TYPE A : VERY SHORT ANSWER QUESTIONS 1. Who was developer of C++? Ans. The C++ programming language was developed at AT&T Bell Laboratories in the early 1980s by Bjarne
More informationUNIT - 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 informationSRI 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 informationSRE 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 informationCharacter 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 informationProgramming in C++ 4. The lexical basis of C++
Programming in C++ 4. The lexical basis of C++! Characters and tokens! Permissible characters! Comments & white spaces! Identifiers! Keywords! Constants! Operators! Summary 1 Characters and tokens A C++
More informationShort 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 informationIntroduction of C++ OOP forces us to think in terms of object and the interaction between objects.
Introduction of C++ Object Oriented Programming :- An Object Oriented Programming (OOP) is a modular approach which allows the data to be applied within the stipulated area. It also provides reusability
More informationCS201 - 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 informationCSc 10200! Introduction to Computing. Lecture 2-3 Edgardo Molina Fall 2013 City College of New York
CSc 10200! Introduction to Computing Lecture 2-3 Edgardo Molina Fall 2013 City College of New York 1 C++ for Engineers and Scientists Third Edition Chapter 2 Problem Solving Using C++ 2 Objectives In this
More informationFeatures 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 informationB.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 informationHIGHER 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 informationChapter 2: Introduction to C++
Chapter 2: Introduction to C++ Copyright 2010 Pearson Education, Inc. Copyright Publishing as 2010 Pearson Pearson Addison-Wesley Education, Inc. Publishing as Pearson Addison-Wesley 2.1 Parts of a C++
More informationChapter 2: Special Characters. Parts of a C++ Program. Introduction to C++ Displays output on the computer screen
Chapter 2: Introduction to C++ 2.1 Parts of a C++ Program Copyright 2009 Pearson Education, Inc. Copyright 2009 Publishing Pearson as Pearson Education, Addison-Wesley Inc. Publishing as Pearson Addison-Wesley
More information1. 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 informationADARSH VIDYA KENDRA NAGERCOIL COMPUTER SCIENCE. Grade: IX C++ PROGRAMMING. Department of Computer Science 1
NAGERCOIL COMPUTER SCIENCE Grade: IX C++ PROGRAMMING 1 C++ 1. Object Oriented Programming OOP is Object Oriented Programming. It was developed to overcome the flaws of the procedural approach to programming.
More information2.1. Chapter 2: Parts of a C++ Program. Parts of a C++ Program. Introduction to C++ Parts of a C++ Program
Chapter 2: Introduction to C++ 2.1 Parts of a C++ Program Copyright 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 2-1 Parts of a C++ Program Parts of a C++ Program // sample C++ program
More informationThe C++ Language. Arizona State University 1
The C++ Language CSE100 Principles of Programming with C++ (based off Chapter 2 slides by Pearson) Ryan Dougherty Arizona State University http://www.public.asu.edu/~redoughe/ Arizona State University
More informationIntroduction to Programming Using Java (98-388)
Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;
More informationJava Notes. 10th ICSE. Saravanan Ganesh
Java Notes 10th ICSE Saravanan Ganesh 13 Java Character Set Character set is a set of valid characters that a language can recognise A character represents any letter, digit or any other sign Java uses
More informationLecture 2 Tao Wang 1
Lecture 2 Tao Wang 1 Objectives In this chapter, you will learn about: Modular programs Programming style Data types Arithmetic operations Variables and declaration statements Common programming errors
More informationVisual C# Instructor s Manual Table of Contents
Visual C# 2005 2-1 Chapter 2 Using Data At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class Discussion Topics Additional Projects Additional Resources Key Terms
More informationI 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 informationLECTURE 02 INTRODUCTION TO C++
PowerPoint Slides adapted from *Starting Out with C++: From Control Structures through Objects, 7/E* by *Tony Gaddis* Copyright 2012 Pearson Education Inc. COMPUTER PROGRAMMING LECTURE 02 INTRODUCTION
More informationC++ 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 informationCHAPTER 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 informationCS304 Object Oriented Programming Final Term
1. Which of the following is the way to extract common behaviour and attributes from the given classes and make a separate class of those common behaviours and attributes? Generalization (pg 29) Sub-typing
More informationDifferentiate Between Keywords and Identifiers
History of C? Why we use C programming language Martin Richards developed a high-level computer language called BCPL in the year 1967. The intention was to develop a language for writing an operating system(os)
More informationUNIT-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 informationDownloaded 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 informationData 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 informationADARSH. 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 information3.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 informationOBJECT 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 informationBITG 1233: Introduction to C++
BITG 1233: Introduction to C++ 1 Learning Outcomes At the end of this lecture, you should be able to: Identify basic structure of C++ program (pg 3) Describe the concepts of : Character set. (pg 11) Token
More informationC++ Quick Guide. Advertisements
C++ Quick Guide Advertisements Previous Page Next Page C++ is a statically typed, compiled, general purpose, case sensitive, free form programming language that supports procedural, object oriented, and
More informationObjectives. 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 informationChapter 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 informationLexical Considerations
Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Fall 2005 Handout 6 Decaf Language Wednesday, September 7 The project for the course is to write a
More informationChapter 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 informationJAVA Programming Fundamentals
Chapter 4 JAVA Programming Fundamentals By: Deepak Bhinde PGT Comp.Sc. JAVA character set Character set is a set of valid characters that a language can recognize. It may be any letter, digit or any symbol
More informationXII 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 informationChapter 1 Introduction to Computers and C++ Programming
Chapter 1 Introduction to Computers and C++ Programming 1 Outline 1.1 Introduction 1.2 What is a Computer? 1.3 Computer Organization 1.7 History of C and C++ 1.14 Basics of a Typical C++ Environment 1.20
More informationBasic Elements of C. Staff Incharge: S.Sasirekha
Basic Elements of C Staff Incharge: S.Sasirekha Basic Elements of C Character Set Identifiers & Keywords Constants Variables Data Types Declaration Expressions & Statements C Character Set Letters Uppercase
More informationC++ 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 informationC 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 informationMAN4A 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 informationC-LANGUAGE CURRICULAM
C-LANGUAGE CURRICULAM Duration: 2 Months. 1. Introducing C 1.1 History of C Origin Standardization C-Based Languages 1.2 Strengths and Weaknesses Of C Strengths Weaknesses Effective Use of C 2. C Fundamentals
More informationC++ character set Letters:- A-Z, a-z Digits:- 0 to 9 Special Symbols:- space + - / ( ) [ ] =! = < >, $ # ; :? & White Spaces:- Blank Space, Horizontal
TOKENS C++ character set Letters:- A-Z, a-z Digits:- 0 to 9 Special Symbols:- space + - / ( ) [ ] =! = < >, $ # ; :? & White Spaces:- Blank Space, Horizontal Tab, Vertical tab, Carriage Return. Other Characters:-
More informationChapter 2. Lexical Elements & Operators
Chapter 2. Lexical Elements & Operators Byoung-Tak Zhang TA: Hanock Kwak Biointelligence Laboratory School of Computer Science and Engineering Seoul National Univertisy http://bi.snu.ac.kr The C System
More informationUnit-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 informationSRM 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 informationCS304 Object Oriented Programming
1 CS304 Object Oriented Programming 1. Which of the following is the way to extract common behaviour and attributes from the given classes and make a separate class of those common behaviours and attributes?
More informationCpt 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 informationAbsolute 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 informationModel 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 informationJayaram 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 informationComputers Programming Course 5. Iulian Năstac
Computers Programming Course 5 Iulian Năstac Recap from previous course Classification of the programming languages High level (Ada, Pascal, Fortran, etc.) programming languages with strong abstraction
More informationVOLUME-2 OBJECT TECHNOLOGY Chap-1 Object Oriented Concepts Using C++
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
More informationObject 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 informationDepartment of Computer science and Engineering Sub. Name: Object oriented programming and data structures Sub. Code: EC6301 Sem/Class: III/II-ECE Staff name: M.Kavipriya Two Mark Questions UNIT-1 1. List
More informationCSI33 Data Structures
Outline Department of Mathematics and Computer Science Bronx Community College October 24, 2018 Outline Outline 1 Chapter 8: A C++ Introduction For Python Programmers Expressions and Operator Precedence
More informationOverview of C. Basic Data Types Constants Variables Identifiers Keywords Basic I/O
Overview of C Basic Data Types Constants Variables Identifiers Keywords Basic I/O NOTE: There are six classes of tokens: identifiers, keywords, constants, string literals, operators, and other separators.
More informationJava Programming Fundamentals. Visit for more.
Chapter 4: Java Programming Fundamentals Informatics Practices Class XI (CBSE Board) Revised as per CBSE Curriculum 2015 Visit www.ip4you.blogspot.com for more. Authored By:- Rajesh Kumar Mishra, PGT (Comp.Sc.)
More informationCS201 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 informationII BSC CS [ Batch] Semester III Core: Object Oriented Programming with C Plus Plus - 307B Multiple Choice Questions.
Dr.G.R.Damodaran College of Science (Autonomous, affiliated to the Bharathiar University, recognized by the UGC)Re-accredited at the 'A' Grade Level by the NAAC and ISO 9001:2008 Certified CRISL rated
More informationDEPARTMENT 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 informationAN OVERVIEW OF C++ 1
AN OVERVIEW OF C++ 1 OBJECTIVES Introduction What is object-oriented programming? Two versions of C++ C++ console I/O C++ comments Classes: A first look Some differences between C and C++ Introducing function
More informationObject oriented programming. Instructor: Masoud Asghari Web page: Ch: 3
Object oriented programming Instructor: Masoud Asghari Web page: http://www.masses.ir/lectures/oops2017sut Ch: 3 1 In this slide We follow: https://docs.oracle.com/javase/tutorial/index.html Trail: Learning
More informationcalling 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 informationChapter 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 informationCSCI 2010 Principles of Computer Science. Data and Expressions 08/09/2013 CSCI
CSCI 2010 Principles of Computer Science Data and Expressions 08/09/2013 CSCI 2010 1 Data Types, Variables and Expressions in Java We look at the primitive data types, strings and expressions that are
More informationPreface... (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 informationIPCoreL. Phillip Duane Douglas, Jr. 11/3/2010
IPCoreL Programming Language Reference Manual Phillip Duane Douglas, Jr. 11/3/2010 The IPCoreL Programming Language Reference Manual provides concise information about the grammar, syntax, semantics, and
More informationFundamental of C programming. - Ompal Singh
Fundamental of C programming - Ompal Singh HISTORY OF C LANGUAGE IN 1960 ALGOL BY INTERNATIONAL COMMITTEE. IT WAS TOO GENERAL AND ABSTRUCT. IN 1963 CPL(COMBINED PROGRAMMING LANGUAGE) WAS DEVELOPED AT CAMBRIDGE
More informationLearning Objectives. C++ For Artists 2003 Rick Miller All Rights Reserved xli
Identify and overcome the difficulties encountered by students when learning how to program List and explain the software development roles played by students List and explain the phases of the tight spiral
More informationChapter 2: Overview of C++
Chapter 2: Overview of C++ Problem Solving, Abstraction, and Design using C++ 6e by Frank L. Friedman and Elliot B. Koffman C++ Background Introduced by Bjarne Stroustrup of AT&T s Bell Laboratories in
More information3. Except for strings, double quotes, identifiers, and keywords, C++ ignores all white space.
Chapter 2: Problem Solving Using C++ TRUE/FALSE 1. Modular programs are easier to develop, correct, and modify than programs constructed in some other manner. ANS: T PTS: 1 REF: 45 2. One important requirement
More informationJAYARAM 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 informationCHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object
CHAPTER 1 Introduction to Computers and Programming 1 1.1 Why Program? 1 1.2 Computer Systems: Hardware and Software 2 1.3 Programs and Programming Languages 8 1.4 What is a Program Made of? 14 1.5 Input,
More informationQuiz 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 informationOperators. Java operators are classified into three categories:
Operators Operators are symbols that perform arithmetic and logical operations on operands and provide a meaningful result. Operands are data values (variables or constants) which are involved in operations.
More information