Showing posts with label class11-compScience. Show all posts
Showing posts with label class11-compScience. Show all posts

Sunday 11 May 2014

CBSE Class 11 - Computer Science with C++ - Ch1 - Computer Overview (Sumita Arora) Textbook Solutions

Computer Overview
(Sumita Arora) Textbook Solutions 7th Edn

CBSE Class 11 - Computer Science with C++ - Ch1 - Computer Overview (Sumita Arora) Textbook Solutions
credits:openclipart

Q1: Storage of 1KB means the following number of bytes:

(a) 1000
(b) 964
(c) 1024
(d) 1064

Answer: (c) 1024 bytes

Q2: One Megabyte is equivalent to

(a) 210 bytes
(b) 220 bytes
(c) 230bytes
(d) none of these

Answer: (b) 220 bytes (1 MB = 1024 KB = 210 KB =  210× 210 bytes = 220 bytes)


Q3: What do you understand by IPO cycle?

Answer: It stands of Input-Process-Output cycle. A computer follows the IPO cycle i.e. it takes data as input, processes it and takes out information as an output.



Q4: What are the functional components of a digital computer?

Monday 17 December 2012

CBSE Class 11 - C++ Snippets (Part-6)

Graphics Support in TC
c++ snippets
c++ snippets
Turbo C++ has support for various DOS mode graphics (CGA, VGA, SVGA etc.).


Various graphics functions are supported in GRAPHICS.LIB. You need to include <graphics.h> file in your code.
Following are essential functions to be called to invoke graphics mode:

initgraph( ):  initializes the application to work in graphics mode. It takes three arguments, DETECT, graphics mode and path of *.BGI files.

closegraph( ): closes the graphics mode and switches the application back to test mode.

Monday 5 November 2012

CBSE Class 11/10 - Computers/FIT - Programming Languages

Programming Languages
Programming Languages
(Questions & Answers)

Q1: What is a computer language?

Answer: The instructions are fed into computers in the form of computer programs, follow some semantics (grammar or syntax) collectively is called a programming language. In layman terms, the language, which the user employs to interact with computer, is known as computer or programming language.

Examples are: C/C++, Java, Pascal, COBOL, Python, FORTRAN etc.

Wednesday 24 October 2012

Wednesday 12 September 2012

CBSE Class 11 - Computer Science - Simple C++ Snippets (Part-4)

Sequence & Series






Q1: Write a program to to find the sum of series as:
        S = 12 + 22 + 32 + ... + n2

Answer:

Monday 11 June 2012

CBSE - Class XI - Computer Science - Simple C++ Snippets (Part-3)

IO manipulators






Q1: What is the purpose of iomanip.h header file?

Answer: The header file iomanip.h defines functions and operators to format input and output streams. These are used in conjunction with insertion (<<) and extraction (>>) stream objects.

Although C++ defines a number of functions, Turbo C++ define a set of these. e.g.
  • numerical base formats: hex, oct, dec
  • setw: sets the width of the field
  • setprecision : sets the number of decimal places you want to display.
  • setiosflags: you may enable display stream flags (ios::showbase, ios::uppercase, ios::showpos)
  • resetiosflags: disable stream flags.

Saturday 9 June 2012

CBSE - Class XI - Computer Science - UNIT 1 - Computer Fundaments - MCQs

Quiz?
(img source:clker.com)

Multiple Choice Questions on Computer Fundamentals


Q1: ASCII stands for

(a) American Standard Currency for International Interchange
(b) American Standard Code for Information Interchange
(c) American Standard Codecs for Information Interchange
(d) American Standard Code for International Interchange



Saturday 2 June 2012

CBSE - Class XI - Computer Science - Simple C++ Snippets (Part-2)


Q1. What is the size of a variable?

Answer: When you declare a variable, memory is allocated for that variable. For example char variable takes 1 byte of memory while an int variable consumes two bytes.

Note how much int will occupy memory space is platform dependent. For example, Turbo C++ is DOS based program allocates 2 bytes to an int variable. While visual c++ 6.0 compiler meant for 32-bit Windows applications, allocates 4 bytes to an int variable.

Wednesday 30 May 2012

CBSE - Class XI - Computer Science - Simple C++ Snippets (Part-1)

C++ Snippets complied and tested in Turbo C++ (DOS mode).


Q1: Write a simple program to print your name, class and school.
Answer:
#include <iostream.h>

int main()
{
 cout << "My name is Akshay Kumar" << endl;
 cout << "Class: XI-A (XYZ School)." << endl;
 return 0;
}