class 12 boards preparation notes contains all important questions and detail explanation
Gekoppeld boek
Titel boek:
Auteur(s):
Uitgave:
ISBN:
Druk:
Meer samenvattingen voor studieboek
CBSE BOARD PYQ PAPERS WITH SOLUTIONS
python for beginners
Alles voor dit studieboek
(3)
Geschreven voor
Middelbare school
Computer science
5
Alle documenten voor dit vak (2)
Verkoper
Volgen
prathamsinghop
Voorbeeld van de inhoud
Board Notes
Class XIIth
Computer Science
S.No.
1 Review of C++ 1
2 Objected Oriented Programming in C++ 16
3 Arrays 27
4 Linked list, Stacks, Queues 33
5 Data File Handling 46
6&7 Database and SQL 57
8 Boolean Algebra 80
9 Networking 86
,
, Vidyamandir Classes
CHAPTER - 1 Review of C++
1. What is the difference between ‘a’ and “a” in C++?
Sol. Characters enclosed in single quotes are character contains in C++. Thus ‘a’ is a character contant.
Characters enclosed in double quotes are string-literals which are array of characters. Thus “a” is a string i.e, in
memory “a” is represented as “a\0” where \0 (null) character is the terminator of the string.
The size of ‘a’ is 1 character whereas the size of “a” is 2 characters.
2. What is a reference variable? What is its use?
Sol. A reference variable is an alias name for a previously defined variable. The usage of it is that the same data object can
be referred to by two names and these names can be used interchangeably.
3. What is the difference between 25L and 25?
Sol. An l(small L) or L suffix indicates it is long integer constant. Thus 25L is a long integer constant and 25 is an integer
constant.
4. Arrange the following data types from smallest to largest : float, char, double, long double, long, short, int.
Sol. char, short, int, long, float, double, long double.
5. What is wrong with the following statement?
const int y ;
Sol. In the above statement, the constant has been declared but not initialized. Thus, the correct statement may be
const int y = 0; // (Any integer value can be stored in y).
6. How is integer 024 different from integer 24?
Sol. The integer 024 represents an octal number which is equivalent to 20 in decimal number system. The integer 24
represents number 24 in decimal number system which is equivalent to 030 in octal number system.
7. Which of the following two statements are valid? Why? Also write their results.
int x ;
(i) x = 1,024 ; (ii) x = (1,024)
Sol. (i) Invalid because an integer constant does not contain commas.
(ii) Valid. The x will be having value 024, the result of comma operator. (Left to right evaluation are choices
compiler).
8. What will be result of following if ans = 6 initially?
(a) cout << ans = 8 ; (b) cout << ans == 8 ;
Sol. (a) 8 ; (b) 0 (which means false)
9. What is the similarity and difference between break and continue statements?
Sol. Similarity : Both break and continue are jump statements.
Difference : The break statement terminates the entire loop execution whereas continue statement terminates single
pass of the loop and jumps to the next counter.
VMC | Board Notes 1 Computer Science
Voordelen van het kopen van samenvattingen bij Stuvia op een rij:
Verzekerd van kwaliteit door reviews
Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!
Snel en makkelijk kopen
Je betaalt supersnel en eenmalig met iDeal, creditcard of Stuvia-tegoed voor de samenvatting. Zonder lidmaatschap.
Focus op de essentie
Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!
Veelgestelde vragen
Wat krijg ik als ik dit document koop?
Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.
Tevredenheidsgarantie: hoe werkt dat?
Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.
Van wie koop ik deze samenvatting?
Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper prathamsinghop. Stuvia faciliteert de betaling aan de verkoper.
Zit ik meteen vast aan een abonnement?
Nee, je koopt alleen deze samenvatting voor €5,06. Je zit daarna nergens aan vast.