11th Standard Syllabus & Materials
11th Standard
TN 11th Tamil இயற்கை வேளாண்மை,சுற்றுச்சூழல் -செய்யுள் - மனோன்மணீயம் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil என்னுயிர் என்பேன் -துணைப்பாடம் - இசைத்தமிழர் இருவர் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil மொழி கலை -செய்யுள் - ஒவ்வொரு புல்லையும் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil பீடு பெற நில் - இலக்கணம் - பகுபத உறுப்புகள் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil பீடு பெற நில் - துணைப்பாடம் - வாடிவாசல் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil பீடு பெற நில் - செய்யுள் - குறுந்தொகை Important Questions And Answers Study Material - QB365 Set A

Published on: 06/09/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.
2.
Assume n=10; what will be result of n++ and --n;?
3.
What is meant by a token? Name the token available in C++.
4.
What is the use of a header file?
5.
What are the differences between “Logical error” and “Syntax error”?
6.
What is the difference between “Run time error” and “Syntax error”?
7.
Assume a=15, b=20; What will be the result of the following operations?
(a) a&b
(b) a|b
(c) a^b
(d) a>>3
(d) (~b).
8.
What are the types of Errors?
9.
What will be the result of following statement?
char ch= 'B';
cout << (int) ch;
B
b
65
66
10.
Which of the following is called as compile time operators?
sizeof
pointer
virtual
this
11.
A program written in high level language is called as
Object code
Source code
Executable code
All the above
12.
Who coined C++?
Rick Mascitti
Rick Bjarne
Bill Gates
Dennis Ritchie
13.
Who developed C++?
Charles Babbage
Bjarne Stroustrup
Bill Gates
Sundar Pichai
1.
2.
| Operator | Operation | Result |
| >> | n >> 2 | 00001010 n = 10 |
| 00001000 n >> 2 | ||
| 00000010 | ||
| n >> 2 = (00000010)2 = 210 | ||
3.
C++ program statements are constructed by many different small elelments such as commands, variables, constants and many more symbols called as operators and punctuators. Individual elements are collectively called as Lexical units or Lexical elements or Tokens. C++ has the following tokens:
(i) Keywords
(ii) Identifiers
(iii) Literals
(iv) Operators
(v) Punctuators
4.
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>
5.
| 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". |
6.
| 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. |
7.
(a) a&b
| 10 | 1010 |
| 11 | 1111 |
| a&b | 1010 |
a&b =1010&1510=1010=1010
(b) a|b
| 10 | 1 | 0 | 1 | 0 |
| 15 | 1 | 1 | 1 | 1 |
| 10 | 15 | 1 | 1 | 1 | 1 |
a|b =10|15= 11112 =1510
(c) a^b
| 10 | 1 | 0 | 1 | 0 |
| 15 | 1 | 1 | 1 | 1 |
| 10 ^ 15 | 0 | 1 | 0 | 1 |
a^b =10^15= 01012 =1510
(d) a>>3
a=10
10/23=10/8=1
10>>3=110
(e) (~b)
| b | 1 | 1 | 1 | 1 |
| ~b | 0 | 0 | 0 | 0 |
(~b)=00002=010
8.
| Type of Error | Description |
| Syntax Error | Syntax errors occur when grammatical rules of C++ are violated. |
| Semantic Error | Semantic Error occur when there is wrong use of variable/ operator/order of execution etc. It is also called as Logical Error. |
| Run-time error | A run time error occurs during the execution of a program. It is occurs because of some illegal operation that takes place. |
9.
(d)
66
10.
(a)
sizeof
11.
(b)
Source code
12.
(a)
Rick Mascitti
13.
(b)
Bjarne Stroustrup
11th Standard Syllabus & Materials
11th Standard
TN 11th Tamil பீடு பெற நில் - செய்யுள் - காவடிச்சிந்து Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil பீடு பெற நில் - உரைநடை - மலை இடப்பெயர்கள் : ஓர் ஆய்வு Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil மாமழை போற்றுதும் - துணைப்பாடம் - யானை டாக்டர் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil மாமழை போற்றுதும் - செய்யுள் - ஐங்குறுநூறு Important Questions And Answers 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