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

Thursday, 21 April 2016

CLASS-XII

Assignment-2
Constructors and Destructors
Chapter-5


1)What is a copy constructor? Give an example in C++ to illustrate copy constructor.  
2)Answer the questions i)and ii) after going through the following class
class work
{
int workid;
char worktype;
public:
~work()                                                 // Function1
{cout<<“un-allocated”<<endl;}
void status()                                        // Function2
{
cout<<workid<<endl;
}
 work()                                                 // Function 3
 { workid=10;worktype=‘t’;}
 work(work &w)                                  // Function4
{
 workid=w.workid+12;
 worktype=w.worktype+1;
}
};
   i)     Which member function out of function1,function2,function3 and function4 shown in above definition of class work is called automatically, when the scope of the object gets over? Is it known as constructor OR destructor OR overloaded function OR copy constructor?
ii)   Work w;  àstatement1
      Work y(w);àstatement2
Which member function out of function1,function2,function3 and function4 shown in above definition of class work will be called an execution of statement written as statement 1 and statement2? What are those functions specifically known as?     

3)  Given the following C++ code, answer the questions                                                                  
class test
{     int time;
      public:
      test( )                                       //function 1
      {
      time=0;
      cout<<”Bye”;
      }
      ~ test( )                                    //function  2
      {cout<<”hello”;
      }
      void exam( )                            //function 3
      {
      cout<<”GOD BLESS YOU”;
      }
      test(int duration)                     //function 4
      {
      time=duration;
      cout<<”exam starts”;
      }
      test(test &t)                             //function 5
      {
      time = t.duration;
      cout<<”exam finished”
      }
      };
·         In Object Oriented Programming, what is Function 1 referred as and when does it get invoked/called?
·         In Object Oriented Programming, what is Function 2 referred as and when does it get invoked/called?
·         Which category of constructor Function 5 belongs to and what is the purpose of using it?
·         Write statements that would call the member Function 1 and 4       



4)  Answer the questions (i) and (ii) after going through the following program:
#include <iostream.h>
#include<string.h>
class bazaar
{ char Type[20] ;
char product [20];
int qty ;
float price ;
bazaar()
//function 1
{ strcpy (type , “Electronic”) ;
strcpy (product , “calculator”);
qty=10;
price=225;
}
public :
void Disp() //function 2
{ cout<< type <<”-”<<product<<”:” <<qty<< “@” << price << endl ;
}
};
void main ()
{ Bazaar B ; //statement 1
B. disp() ; //statement 2
}
(i) Will statement 1 initialize all the data members for object B with the values given in the function 1 ? (YES OR NO)  Justify your answer suggesting the correction(s) to be made in the above code.
 (ii) What shall be the possible output when the program gets executed? (Assuming, if required _ the suggested correction(s) are made in the program).


Tuesday, 19 April 2016

CLASS-XI ASSIGNMENT-2 DATA REPRESENTATION



CHAPTER-3

1. Convert binary number 10112  to decimal number.
2. Convert binary number 1001012  to decimal number.
3.Convert octal number 34578  to decimal number.
4.Convert octal number 4258  to decimal number.
5.Convert hexadecimal number FACE16  to decimal number.
6.Convert hexadecimal number BABA16  to decimal number.


Tuesday, 12 April 2016

CLASS-XI ASSIGNMENT-1



CHAPTER-3


1. Converting decimal number 165310  to hexadecimal
2. Converting decimal number 26.5310  to binary
3. Converting decimal number 165.45310  to octal
4. Converting decimal number 567.98710  to binary
5. Converting decimal number 543.876510  to hexadecimal
6. Converting decimal number 16.4565310  to octal
7. Converting decimal number 983210  to binary
8. What is number system?
9. What is MSB and LSB?
10. What is the base of binary, octal, decimal and hexadecimal numbers?