11th Standard Syllabus & Materials
11th Standard
TN 11th English Supplementary - 3 - The First Patient (Play) Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th English Prose - 3 - Forgetting Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th English Prose - 2 - The Queen of Boxing Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th English Poem - 1 - Once Upon A Time Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th English Prose - 1 - The Portrait of a Lady Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th Computer Applications Tamil Computing Sample Question Papers Study Material - QB365 Set A

Published on: 14/10/2019
Introduction To C++
Download Tamil Nadu 11th Standard Computer Science question papers, model tests, one-mark questions, important questions, and public exam papers in PDF format. Free study materials and answer keys for TN State Board students.
Questions + Answers key
Take MCQ Computer Science Test

1.
Evaluate the following C++ expressions where x, y, z are integers and m, n are floating point numbers. The value of x = 5, y = 4 and m=2.5;
(i) n = x + y / x;
(ii) z = m * x + y;
(iii) z *= x * m + x;
2.
Write the following in real constants.
(i) 15.223
(ii) 211.05
(iii) 0.00025.
3.
Write two advantages of using include compiler directive.
4.
Why is main function special?
5.
What is the use of a header file?
6.
What are the differences between “Logical error” and “Syntax error”?
7.
What is the difference between “Run time error” and “Syntax error”?
8.
Assume a=10, b=15; What will be the value of a^b?
9.
Differentiate “=” and “==”.
10.
Describe the differences between keywords and identifiers?
1.
(i) n = x + y / x;
= 5 + 4/5
= 5 + 0
= 5 (both x and y are int type. Therefore only integer part of quotient is considered)
(ii) z = m * x + y;
= 2.5*5 + 4 (m is float type, so x value is promoted to float [implicit conversion])
= 12.5 + 4
= 16 (2 is int type. So '2', the fractional part is discarded)
(iii) z *= x * m + x;
= 5*2.5+x
= 12.5 +5
= 18 (z is int type, therefore the fractional part is removed. x is incremented after the addition)
2.
(i) 15.223 = 0.15223E2
(ii) 211.05 = 0.21105E3
(iii) 0.00025 = 0.25E-3
3.
(i) The program is broken down into modules, thus making it more simplified.
(ii) More library functions can be used, at the same time size of the program is retained.
4.
C++ program is a collection of functions. Every C++ program must have a main function. The main() function is the starting point where all C++ programs begin their execution. Therefore, the executable statements should be inside the main() function.
5.
Header files contain definitions of Functions and Variables, which is imported or used into any C++ program by using the pre-processor #include statement. Header files have an extension ".h" which contains C++ function declaration and macro definition.
Example: #include<iostream.h>
6.
| Syntax error | Logical error |
| The syntax is a set of grammatical rules to construct a program. Every programming language has unique rules for constructing the source code. Syntax errors occur when grammatical rules of c++ are violated. | A Program has not produced the expected result even though the program is grammatically correct. It may happen by the wrong use of variable/operator/order of execution etc. This means, the program is grammatically correct, but it contains some logical errors. So, Semantic error is also called as "Logic Error". |
7.
| Run time error | Syntax Error |
| 1. A run time error occurs during the execution of a program. It occurs because of some illegal operation that takes place. 2. For example, if a program tries to open a file which does not exist, it results in a run-time error. |
1. Syntax errors occur when grammatical rules of C++ are violated. |
8.
| Operator | Operation | Result |
| ^ | a^b | 00001010 a |
| 00001111 b | ||
| 00000101 a^b | ||
| a^b = (00000101)2 = 510 | ||
9.
| = | == |
| " = "is an assignment operator | " == " is an equal to operator and it is a relational operator. |
| It is used to assign the value of variable or expression | It is used for comparison of both left and right side operands. |
| Eg: a = b (b value is assigned to a) | Eg: a==b (a value will be compared with b value). |
10.
| Keywords | Identifiers |
|---|---|
| Keywords are the reserved words which convey specific meaning to the C++ compiler. |
Identifiers are the user-defined names given to different parts of the the C++ program. |
| They are the essential elements to construct C++ programs. | They are the fundamental building blocks of a program. |
| Most of the keywords are common to C, C++ and Java. | Every language has specific rules for naming the identifiers. |
11th Standard Syllabus & Materials
11th Standard
TN 11th Computer Applications Computer Ethics and Cyber Security Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th Computer Applications JavaScript Functions Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th Computer Applications Control Structure in JavaScript Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th Computer Applications Introduction to JavaScript Sample Question Papers Study Material - QB365 Set A
Tamilnadu Stateboard 11th Standard Subjects

Maths

Commerce

Economics

Biology

Business Maths and Statistics

Accountancy

Computer Science

Physics

Chemistry

Maths

Biology

Economics

Physics

Chemistry

History

Business Maths and Statistics

Computer Science

Accountancy

Computer Applications

History

Computer Technology

Commerce

Computer Applications

Computer Technology

Tamil

English

French
Tamilnadu Stateboard Standards