Thursday 26 May 2016

CLASS - XII ASSIGNMENT ON DATA FILE HANDLING


PROGRAMS ON DATA FILE HANDLING

1.      Write a program in a C++ to read the content of a text file “DELHI.TXT” and display all those lines on screen, which are either starting with ‘D’ or starting with ‘M’.
2.      Write a program in a C++ to count the number of lowercase alphabets and uppercase alphabets present in a text file “BOOK.TXT”.
3.      Assume a text file “coordinate.txt” is already created. Using this file create a C++ program to count the number of words having first character capital.
4.      Write a program to count number of lines from a text files that ends at ‘.’
5.       Write a function in C++ to count the number of alphabets, number of digita, number of white spaces  present in a text file “BOOK.TXT
6.      Write a program in C++ to count the number of vowels present in a text file “BOOK.TXT”.
7.        Assume a text file “Test.txt” is already created. Using this file, write a program  to create three files “LOWER.TXT” which contains all the lowercase vowels and “UPPER.TXT” which contains all the uppercase vowels and “DIGIT.TXT” which contains all digits.
8.        Write a program in a C++ to display the sum of digits present in a text file “Fees.txt”.
9.        Write a program in a C++ to display the product of digits present in a text file “Number.txt”.
10.    Write a program in a C++ to find the largest digit present in a text file “Marks.txt”
11.  Write a program CountYouMe() in C++ which reads the contents of a text file story.txt and counts the words You and Me (not case sensitive).
For example, if the file contains:
You are my best friend.
You and me make a good team.
The function should display the output as
Count for You: 2

Count for Me: 1

Tuesday 3 May 2016

CLASS- XI ASSIGNMENT-3 DATA REPRESENTATION




CHAPTER - 3


  1. Give the value of 8801127, and 255 in 8-bit unsigned representation.
  2. Give the value of +88-88 , -10+1-128, and +127 in 8-bit 2's complement signed representation.
  3. Give the value of +88-88 , -10+1-127, and +127 in 8-bit sign-magnitude representation.
  4. Give the value of +88-88 , -10+1-127 and +127 in 8-bit 1's complement representation.
  5.  Do Binary Addition and subtraction for the following:    
           Binary Addition
           1. 101 + 11 =
           2. 111 + 111 =
           3. 1010 + 1010 =
           4. 11101 + 1010 =
           5. 11111 + 11111 =


          

CLASS-IX CHAPTER-3


COMPUTER LANGUAGES AND SOFTWARE

Q1. What are the two types of computer languages? Categorize and define them.
Ans. The two types of computer languages are:
1.      low level language(LLL)
2.      high level language(HLL)
CATEGORIES OF LLL:
1.      Machine language:
a.      This is also called as the First Generation Computer Languages.
b.      It  contains all the instructions in the Binary Form i.e. in 0s and 1’s.
c.        It is very difficult to understand for the user to understand. Because all the instructions are written into the Form of 0 and 1.      
d.      It increases the Speed of Processing of the Computer System.
2.       Assembly Language: 
a.        The Programs are written into the Form of some Words in English Language Forms.
b.        For Example if a user wants to add two Numbers then he has to use Some Mnemonics like this ADD A,B in this  ADD is the Mnemonics which is used for Performing the Add Operation. 
High level languages: These are the instructions written in English like language. It uses variables, arrays and complex mathematical calculations.
Various HLL are; COBOL, PASCAL, C, C++, JAVA etc.

Q2. What is 4GLs? What is its advantage?
Ans. 4GL is a fourth generation programming language and is developed for a specific purpose or a certain type of work such as developing any commercial software.
Main advantages are to reduce programming effort, time and total cost of the software development.

Q3. What are the various generations of computer languages?
Ans. The various generations of computer languages are:
1.      Machine language or first generation.
2.      Assembly language or Second generation.
3.      High level language or third generation.
4.      4GL or fourth generation are user friendly and portable.
5.      Fifth generation are used in the field of artificial intelligence, fuzzy logic and neural networks.

Q4. What is software? Give classification of computer software.
Ans. Software is a set of program instructions which when executed gives some desired results.
Classification:

Image result for basic classification of software



Q-5 Define the following:
1.      System software
2.      Assembler
3.      Compilers
4.      Interpreters
5.      Operating system
6.      Application software
7.      General purpose application software
8.      Customized software
9.      Utility software

Ans.
1.      System software:  it is a set of programs that are used to control the operations of the computer system such as input and output, saving a file, prints a document etc.
2.      Assembler: it is a software that converts assembly language program into machine language program.
3.      Compilers: it is a software program that converts an entire HLL program into machine language program.
4.      Interpreters: it is a software program that converts HLL program into machine language program line by line.
5.      Operating system: it is system software that acts as an interface between user and machine. It is required to start and shut down the system.
6.      Application software: These are a set of programs that are put together for a specific purpose or task.
10.  General purpose application software: these softwares are created by vast companies for general purpose use. Anyone can purchase it and use it for its own purpose. E.g. word processing software, excel, PowerPoint, desktop publishing software etc.
11.  Customized software: a software which is created and modified by a person or a company for its own use and cannot be used by any other customer. These are also known as business software.  For e.g.: restaurant billing system, library management system, school management software etc.
12.  Utility software: it is a small program that provides additional capabilities to your operating system. They are also called service routines. For e.g.: disk fragmenter, network managers, disk cleanup etc.

Q6 Differentiate between compiler and interpreter.
Ans. The various differences are:
Q7 what are the various disk management tools? Explain in brief.
Ans. the various disk management tools are:
1.      Disk cleanup: helps to free space in hard drive by deleting unnecessary program files.
2.      Disk defragmenter: consolidates or group together fragmented files and folders at one place and free space at one place. This process is known as defragmentation.
3.      Systems restore utility: it is a component of windows XP home edition. It can be used to restore the computer to its previous state without deleting any file.
4.      Special utilities: these are the special utilities like compression utilities, encryption/decryption etc. Norton antivirus, McAfee, quickheal is all utility softwares.

Q8. What are the various functions of operating system?
Ans. The various functions are:
1.      Program execution
2.      I/O device management
3.      Information management
4.      Memory management
5.      Error handling

6.      Information and resource protection