100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Summary Class 12 Computer science Notes cbse $5.49   Add to cart

Summary

Summary Class 12 Computer science Notes cbse

 35 views  1 purchase
  • Course
  • Institution
  • Book

class 12 cbse computer science with python read only 100 pages detail explanation and all important questions

Preview 3 out of 104  pages

  • Yes
  • January 6, 2021
  • 104
  • 2020/2021
  • Summary
  • Secondary school
  • 5
avatar-seller
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller prathamsinghop. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $5.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

73091 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$5.49  1x  sold
  • (0)
  Add to cart