www.cbseacademic.in Sample Paper Marking Scheme Computer Science XII : Central Board of Secondary Education

+ Ask Question / Post resume
Results 1 to 3 of 3
  1. Post Count Number #1
    IJT addict
    Join Date
    February 14th, 2013
    Location
    Tamilnadu
    Posts
    2,244

    www.cbseacademic.in Sample Paper Marking Scheme Computer Science XII : Central Board of Secondary Education

    Name of the Organaisation : Central Board of Secondary Education (cbseacademic.in)
    Type of Facility : Sample Paper for Marking Scheme Computer Science - XII
    Home Page : http://cbseacademic.in/
    All the posts tagged as<cbseacademic.in>
    Sample Paper for Marking Scheme Computer Science :
    Duration: 3 Hrs Marks : 70 Subject Code : 083

    1. Write the prototype of a function named Percent, which takes an integer as value parameter and return a float type value. The parameter should have a default value10.
    2. Find output of the following program segment: int A[][3] = {{1,2,3}, {5,6,7}}; for (int i = 1; i<2; i++) for (int j = 0; j<3;j++) cout<<A[i][j]<<"*\n";
    3. Write a function in C++ to accept two integers as parameters and returns the greater of these numbers.
    4. What do you understand by Data Encapsulation and Data Hiding? Also, give a suitable C++ code to illustrate both.
    5. What is constructor overloading? Give an example to illustrate the same
    6. Write a function TRANSFER(int A[], int B[], int Size) in C++ to copy the elements of array A into array B in such a way that all the negative elements of A appear in the beginning of B, followed by all the positive elements, followed by all the zeroes maintaining their respective orders in array
    7. Each element of the array A[8][6] is stored using 4 bytes of memory. If the element A[2][4] is stored at location 936, find the address of A[5][1]. Assume that the array s stored column- wise.
    8. Write a function TRANSFORM(int A[4][3]) in C++ to swap the elements of the first column with the corresponding elements of last column of array A
    9. Convert the expression (A-5)*6+(10/B)/2 to corresponding postfix expression. Also show the status of operator stack after each step
    10. Write a function in C++ to count the number of lines starting with a digit in a text file “DIARY.TXT”.
    11. Write SQL commands for the flowing statements
    (i) To display the names of all the subjects for which practical marks are 0.
    (ii) To display the total number of teachers in each subject separately.
    (iii) To display the names of all the teachers in the ascending order of the Sub_Code.
    (iv) To display each subject’s details along with Total_Marks in each subject from the table SUBJECT. (Total_Marks = Marks_Theory + Marks_Practical).
    11. Write SQL statement to display each teacher’s name along with his/her respective subject name from the tables TEACHER and SUBJECT.
    12 Give the output of the following SQL queries
    (i) SELECT DISTINCT(Marks_Theory) from SUBJECT
    (ii) SELECT TCode, Name from Teacher where Sub_Code like ‘0%’
    (iii) Identify primary keys of the tables SUBJECT and TEACHER.
    13. State the dual of the absorption law X+X.Y = X and prove it algebraically
    14. Draw the logic diagram for the Boolean expression X.(Y’+Z) using basic logic gates.
    15. Write the SOP form of the Boolean function F(P,Q,R) = (0,2,3,5)
    16. Find the simplified expression for the following Boolean function using Karnaugh’s map: F(A, B, C, D) = ?(0,1,2,4,5,6,8,9,10)

    See More Questions Download the PDF File : http://cbseacademic.in/web_material/...CS2013Set1.pdf

  2. Post Count Number #2
    Unregistered
    Guest

    Write a function in C++ to count the number of lines starting with a digit in a text file “DIARY.TXT”?

    #include<fstream.h>
    #include<conio.h>
    #include<stdio.h>
    #include<ctype.h>

    void countLines()
    {
    ifstream f;
    f.open("DIARY.TXT");
    int count=0;
    char line[200];
    while(f)
    {
    f.getline(line,100);
    if (isdigit(line[0])) count++;
    }
    cout<<"\n No of lines starting with digit = "<<count;
    f.close();
    }

    void main ()
    {
    countLines();
    getch();
    }

  3. Post Count Number #3
    Unregistered
    Guest

    CAN WE GET THE ANSWERS OF THIS PAPER PLEASE?

    Not provided on the website.