CBSE Class 11 Computer Science Introduction To C++ Notes

Download CBSE Class 11 Computer Science Introduction To C++ Notes in PDF format. All Revision notes for Class 11 Computer Science have been designed as per the latest syllabus and updated chapters given in your textbook for Computer Science in Class 11. Our teachers have designed these concept notes for the benefit of Class 11 students. You should use these chapter wise notes for revision on daily basis. These study notes can also be used for learning each chapter and its important and difficult topics or revision just before your exams to help you get better scores in upcoming examinations, You can also use Printable notes for Class 11 Computer Science for faster revision of difficult topics and get higher rank. After reading these notes also refer to MCQ questions for Class 11 Computer Science given on studiestoday

Revision Notes for Class 11 Computer Science Introduction To C++

Class 11 Computer Science students should refer to the following concepts and notes for Introduction To C++ in Class 11. These exam notes for Class 11 Computer Science will be very useful for upcoming class tests and examinations and help you to score good marks

Introduction To C++ Notes Class 11 Computer Science

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 of the C++

character set.

LETTERS                                 A to Z and a to z

DIGITS                                       0 -9

SPECIAL SYMBOLS            + -* ^ \ [] {} = != < > . ‗ ‗ ; : & #

WHITE SPACE                   Blankl space , horizontal tab ( - > ), carriage return , Newline, Form feed.

OTHER CHARACTERS      256 ASCII characters as data or as literals.

TOKENS:

The smallest lexical unit in a program is known as token. A token can be any keyword,Identifier,Literals, Puncutators, Operators.

KEYWORDS :

These are the reserved words used by the compiler. Following are some of the Keywords.                                     

 auto           continue         float        new       signed         volatile

short          long               class           struct     else           inline

delete          friend          private          typedef              void           template

catch           friend          sizeof             union             register        goto

IDENTIFIERS:

An arbitrary name consisting of letters and digits to identify a particular word.C++ iscase sensitive as nit treats upper and lower case letters differently. The first character must be a letter . the underscore counts as a letter

Pen        time580            s2e2r3          _dos       _HJI3_JK

LITERALS:

The data items which never change their value throughout the program run. There are several kind of literals:

• Integer constant

• Character constant

• Floating constant

• String constant.

Integer constant :

Integer constant are whole numbers without any fractional part. An integer constant must have at least one digit and must not contain any decimal point. It may contain either + or _. A number with no sign is assumed as positive.        e.g 15, 1300, -58795.

Character Constant:

A character constant is single character which is enclosed within single quotation marks.    e.g ‗ A‘

Floating constant:

Numbers which are having the fractional part are referred as floating numbers or real constants. it may be a positive or negative number. A number with no sign is assumed to be a positive number.                                                            e.g 2.0, 17.5, -0.00256

String Literals:

It is a sequence of letters surrounded by double quotes. E.g ―abc‖.

PUNCTUATORS:

The following characters are used as punctuators which are also know as separators in C++ 

class_11_Computer_science_concept_2

OPERATORS:

These are those lexical units that trigger some computation when applied to variables and other objects in an expression. Following are some operators used in C++ Unary operators: Those which require only one operand to trigger. e.g. & , + , ++ , -- ! . Binary operators: these require two operands to operate upon. Following are some of the Binary operators.

Arithmatic operators :

+                 Addition

_                ubstraction

A*            Multiplication

/             Division

%         Remainder.

Logical Operators :

&& -     logical AND          || -        Logical OR

Relational Operator:

<     less than

a>   Greater than

<=     Less than equal to.

>=       greater than equal to.

==        equal to.

!=     not equal to.

Conditional operator:         ? (question )   : ( colon )

Assignment Operator:

= assignment operator
*= Assign Product.
/= Assign quotient
%= assign Remainder
&= Assign bitwise AND
^= Assign bitwise XOR.
|=Assign bitwise OR

Conditional operator ( ? )

The conditional operator evaluates an expression returning a value if that expression is true and a different one if the expression is evaluated as false. Its format is:

condition ? result1 : result2

e.g 7==5 ? 4 : 3 // returns 3, since 7 is not equal to 5.

Comma operator ( , )

The comma operator (,) is used to separate two or more expressions that are included where only one expression is expected. When the set of expressions has to be evaluated for a value, only the rightmost expression is considered.

For example, the following code:

a = (b =3 , b +2 );
Would first assign the value 3 to b, and then assign b+2 to variable a. So, at the end, variable a would contain the value 5 while variable b would contain value 3.

Explicit type casting operator

Type casting operators allow you to convert a datum of a given type to another. There are several ways to do this in C++. The simplest one, which has been inherited from the C language, is to precede the expression to be converted by the new type enclosed between parentheses ( ) :

int i;

float f =3014;
i = ( int ) f; 

The previous code converts the float number 3.14 to an integer value (3), the remainder is lost. Here,the typecasting operator was (int). Another way to do the same thing in C++ is using the functional notation: preceding the expression to be converted by the type and enclosing the expression between parentheses:

i = int (f );

Both ways of type casting are valid in C++.
sizeof()

This operator accepts one parameter, which can be either a type or a variable itself and returns the size in bytes of that type or object:
a= sizeof (char);
This will assign the value 1 to a because char is a one-byte long type.
The value returned by sizeof is a constant, so it is always determined before program execution.
Input Output (I/O) In C++
The cout Object:
The cout object sends to the standard output device. cout sends all out put to the screen i.e monitor.
The syntax of cout is as follows:
cout<< data;.
e.g
cout<< a ; ( here a can be any variable)

The cin operator :
The cin operator is used to get input from the keyboard. When a program reaches the line with cin, the user at the keyboard can enter values directly into variables.
The syntax of cin is as follows:
cin>> variablename
e.g
cin>> ch; ( here ch can be any variable)

• Basic structure of a C++ program:
Following is the structure of a C++ program tht prints a string on the screen:
#include<iostream.h>
void main ()
{
cout<<‖ Study material for Class XI‖;

The program produces following output: 
 
Study material for Class XI 
The above program includes the basic elements that every C++ program has. Let us check it  line by line 
#include<iostream.h> : This line includes the preprocessor directive include which includes the header file iostream in the program. 
 
void main () :this line is the start of compilation for this program. Every C++ programs compilation starts with the main (). void is the keyword used when the function has no return values. 
{ : this is the start of the compound block of main (). 
cout<<‖ Study material for class XI‖;: this statement prints the sequence of string ” Study material for class XI” into this output stream i..e on monitor. 
Every statement in the block will be terminated by a semicolon (;) which specifies compiler the end of statement.


Please click the link below to download pdf file for CBSE Class XI Computer Science Introduction to C++ Concepts.

More Study Material

CBSE Class 11 Computer Science Introduction To C++ Notes

We hope you liked the above notes for topic Introduction To C++ which has been designed as per the latest syllabus for Class 11 Computer Science released by CBSE. Students of Class 11 should download and practice the above notes for Class 11 Computer Science regularly. All revision notes have been designed for Computer Science by referring to the most important topics which the students should learn to get better marks in examinations. Studiestoday is the best website for Class 11 students to download all latest study material.

Notes for Computer Science CBSE Class 11 Introduction To C++

Our team of expert teachers have referred to the NCERT book for Class 11 Computer Science to design the Computer Science Class 11 notes. If you read the concepts and revision notes for one chapter daily, students will get higher marks in Class 11 exams this year. Daily revision of Computer Science course notes and related study material will help you to have a better understanding of all concepts and also clear all your doubts. You can download all Revision notes for Class 11 Computer Science also from www.studiestoday.com absolutely free of cost in Pdf format. After reading the notes which have been developed as per the latest books also refer to the NCERT solutions for Class 11 Computer Science provided by our teachers

Introduction To C++ Notes for Computer Science CBSE Class 11

All revision class notes given above for Class 11 Computer Science have been developed as per the latest curriculum and books issued for the current academic year. The students of Class 11 can rest assured that the best teachers have designed the notes of Computer Science so that you are able to revise the entire syllabus if you download and read them carefully. We have also provided a lot of MCQ questions for Class 11 Computer Science in the notes so that you can learn the concepts and also solve questions relating to the topics. All study material for Class 11 Computer Science students have been given on studiestoday.

Introduction To C++ CBSE Class 11 Computer Science Notes

Regular notes reading helps to build a more comprehensive understanding of Introduction To C++ concepts. notes play a crucial role in understanding Introduction To C++ in CBSE Class 11. Students can download all the notes, worksheets, assignments, and practice papers of the same chapter in Class 11 Computer Science in Pdf format. You can print them or read them online on your computer or mobile.

Notes for CBSE Computer Science Class 11 Introduction To C++

CBSE Class 11 Computer Science latest books have been used for writing the above notes. If you have exams then you should revise all concepts relating to Introduction To C++ by taking out a print and keeping them with you. We have also provided a lot of Worksheets for Class 11 Computer Science which you can use to further make yourself stronger in Computer Science

Where can I download latest CBSE Class 11 Computer Science Introduction To C++ notes

You can download notes for Class 11 Computer Science Introduction To C++ for latest academic session from StudiesToday.com

Can I download the Notes for Introduction To C++ Class 11 Computer Science in Pdf format

Yes, you can click on the link above and download notes PDFs for Class 11 Computer Science Introduction To C++ which you can use for daily revision

Are the revision notes available for Introduction To C++ Class 11 Computer Science for the latest CBSE academic session

Yes, the notes issued for Class 11 Computer Science Introduction To C++ have been made available here for latest CBSE session

How can I download the Introduction To C++ Class 11 Computer Science Notes pdf

You can easily access the link above and download the Class 11 Notes for Computer Science Introduction To C++ for each topic in Pdf

Is there any charge for the Class 11 Computer Science Introduction To C++ notes

There is no charge for the notes for CBSE Class 11 Computer Science Introduction To C++, you can download everything free of charge

Which is the best online platform to find notes for Introduction To C++ Class 11 Computer Science

www.studiestoday.com is the best website from which you can download latest notes for Introduction To C++ Computer Science Class 11

Where can I find topic-wise notes for Class 11 Computer Science Introduction To C++

Come to StudiesToday.com to get best quality topic wise notes for Class 11 Computer Science Introduction To C++

Can I get latest Introduction To C++ Class 11 Computer Science revision notes as per CBSE syllabus

We have provided all notes for each topic of Class 11 Computer Science Introduction To C++ as per latest CBSE syllabus