Thursday 29 September 2016

SEPTEMBER MONTHLY TEST, YEAR:2016, CLASS: 12-D , SUBJECT: COMPUTER SCIENCE, ANSWERKEY


SEPTEMBER MONTHLY TEST, YEAR:2016,  CLASS: 12-D

SUBJECT: COMPUTER SCIENCE,

ANSWER KEY
MAX. MARKS: 35                                                                                           DURATION: 1 ½ Hours
1) Write a function EXCHANGE (int A [ ], int S) in C++ to modify the content of the array in such a way that the elements, which are multiples of 15 exchange with the value present in the very next position in the array.                                                                                           -2
For example:
If the content of array A is: 105, 56, 43, 60, 34, 54
The content of array A should become: 56, 105, 43, 34, 60, 54

2) Write user defined function DispTen(int A[][4], int N, int M) in C++ to find and display all the members, which are divisible by 10.  For example if the content of array is:             -3                                                                                 
12
20
13
2
10
30
5
50
7
The output should be: 20, 10, 30, 50

3a) An array A[20][30] is stored along the row in the memory with each element requiring 4 bytes of storage.  If the base address of array A is 32000, find out the location of A[15][10].  Also, find the total number of elements present in this array.                                                        -3                                
Ans:  33840

3b) A 2-D array defined as A[5…20,2..15] requires 2 words of storage space for each element.  If the array is stored in Row-major form, calculate the address of A[6,2] given the base address is 100.   -3

Ans: 128

4a) An array T[20][10] is stored in the memory along the column with each of the elements occupying 2 bytes.  Find out the memory location of T[10][15].  If the element T[2][9] is stored at the location 7600.                                                                                                                                        -3 

Ans: Base Address= 7236       and  T[10][15]= 7856
                                            
4b) Each element of an array A[10…30, 10…35] requires one byte of storage. If the array is stored in column major order beginning location 500, determine the location of A[12][15].          -3                                                                
Ans: 607

5) Write a function in C++ to Insert  a node containing Book’s information, from a dynamically allocated Stack of Books implemented with the help of the following structure                  -4

struct Book                                                                                                                 
{
    int BNo;
    char BName[20];
    Book *Next;
}

Ans:void insert(book*ptr)                         //assuming top is used for top of stack
        {
        if(top==NULL)  top=ptr;
        else{
                   ptr->next=top;
        top=ptr;}
                     }

6) Write a function in C++ to delete a node containing Book’s information, from a dynamically allocated Stack of Books implemented with the help of the following structure.                                                                     -4

struct Book                                                                                                                 
{
    int BNo;
    char BName[20];
    Book *Next;
}
ANS:  void delete()                           //assuming *tmp is a global object of book 
          {
          tmp=top; 
          top=top->next;
          delete tmp;
        }

7) Write a function QInsertion( ) in C++ to perform Insertion operation on a Linked Queue, which contains Passenger no and Passenger name.  Consider the following definition of node in the code.                       -4

struct node
{
    long int pno;
    Char pname[20];
    node *link;
}
ANS:  void qinsertion(node*ptr)                         //front and rear are member of node
         {
            if (front==NULL) front=rear=ptr;
           else{
rear->link=ptr;
     rear=ptr;}
}
8) Write a function QDelete( ) in C++ to perform delete operation on a Linked Queue, which contains Passenger no and Passenger name.  Consider the following definition of node in the code.        -4         
 struct node
{
    long int pno;
    Char pname[20];
    node *link;
}
ANS:    void q
9) Evaluate the following postfix expression.  Show the status of stack after execution of each operation. 5, 6, * , 50, 5, /, 5, -, +                                           -2

Ans: 35



***GOOD LUCK***

Monday 26 September 2016

10-C & D Vocational IT



SA-1
Lab Activities:
Web Basics
  1. Use StickyKeys option
  2. Use SoundSentry option
  3. Use High Contrast option
  4. Use SerialKeys option
  5. List any 3 ISP’s available in your city. After collecting information such as connectivity type, speed and charges, compare them and state which is the best ISP and why?
  6. You have learnt to sign-in into Google Talk. Now try Signing Out and Signing back in using Google Talk.
  7. Add more contacts to your contact list and chat with multiple contacts.
  8. Download, install and use Windows Live Messenger, Rediff, Sify messengers. Create respective accounts to practice.
  9. You have learnt to create and work with blogs using WordPress. Now create and work with other blog websites such as blogger, weebly,
  10. Create blogs for:
  • Announcing School Annual Day Function
  • Blood Donation Camp
  •  
    1. Download and use different offline blog editors
    2. Register with Junglee (www.junglee.com), Yatra (www.yatra.com) and practice online transactions.
    3. You have learnt to work with Mozilla Firefox. Now perform tasks outlined earlier using Mozilla Firefox with other browsers such as Internet Explorer, Google Chrome. Use the help file or online help to find procedures.



    4. Word Processing (Intermediate)
      Lab Activities
      1. Create the details given below (the tab descriptions are provided as a hint for you):act1
      2. Create the one page of Table of Contents of this book using a word processor. Save this document with the name TOC_{your name}. You will use it in the next exercise
      3. Open the file saved in the last exercise (saved as TOC_{your name}). Give an appropriate name in the center of the header section with your School name on the left hand side. Download a logo from the Internet or use a picture (Insert>Picture) on the right hand side. Save the fi le.
      4. Create a one page article on “Influence of Gandhiji on Youth Today”. Insert a picture of Gandhiji and the title of the article in the header. Insert your name, class and date in the footer. Save as Gandhiji_{your Name}, print and submit this article to your facilitator for evaluation. You may try the same in Google docs too.
      5. Open the article on “Infl uence of Gandhiji on Youth Today” created in the previous session and try using elegant, formal, fancy and manuscript style sets on different sections of the document and observe the changes.
      6. Download and use templates from the Internet
      7. You will now create a template of an invoice. An invoice is just the kind of document that needs to have a set format and one that will be created over and over again. Save the file with the name – {your name}_Invoice.
      8. Create Page and Section breaks
      9. Delete Page and Section breaks
      10. Open a new document. Divide your page into two columns. (Page Layout>Columns).Pick up an article from a newspaper and key it in. Try using column break and page break anywhere in the text.
      11. Open a new document. Type in the heading of your Local newspaper. Use section break and divide the next section into columns and key in an article. Save the document file as Newspaper_{your name} and print your document.
      12. Change font face
      13. Change font size
      14. Change font color
      15. Highlight text
      16. Change text case
      17. Reopen the document created in the previous exercise Newspaper_{your name}.Decorate the first page of your article using each one of the character formats you have learnt in this exercise. Take a printout of page 1 of the document and compare it with the printout taken in the previous session.
      18. Insert pictures and Clip art in a document
      19. Open a new document. Search for “Birthday Balloons” in Clip Art. Select one from what is made available and make a one page birthday card for a family member
      20. Download a few clip arts from the net and design a poster on Earth Day. In this exercise, you will only insert the appropriate pictures. You will insert relevant text in the next exercise.
      21. Wrap text around a picture
      22. Reopen the document you had created in Exercise 1, Gandhiji{your Name}. Search for an appropriate picture of Gandhiji and try all the Text wrapping options. Select the one you feel suits the best and take a printout of your modified article. Save your document with a different name Gandhiji2_{your Name}.
      23. Insert objects in the text
      24. Use different shapes, symbols and special characters in a document.
      25. Create a two page brochure for Nainital or any other tourist spot near your town. The brochure must include pictures. Wrap the text around the pictures. It must also include a places to see, hotels to stay in and details of how to reach the place.