www.gauhati.ac.in University TDC Computer Science : Model Question Paper

+ Ask Question / Post resume
Results 1 to 2 of 2
  1. Post Count Number #1
    IJT addict
    Join Date
    February 14th, 2012
    Location
    Tuticorin
    Posts
    9,712

    www.gauhati.ac.in University TDC Computer Science : Model Question Paper

    Document Described : Gauhati University - Model Question Paper
    Major Course in Computer Science
    (TDC semester 1)
    Paper : M101
    Introduction to Computer Fundamentals and Programming


    Model Question List : http://www.gauhati.ac.in/home/tdc_model_question.htm
    Model Question Paper : http://www.gauhati.ac.in/home/modelq...Paper-M101.pdf

    1. Fill in the blanks: 1x7=7
    (a) An example of a secondary storage device is ---------------
    ( answer: HDD, FDD, CD, Pen Drive, Magnetic Tape etc).
    (b) The 2's complement representation of -5 using 8 bits is
    (answer: 11111011).
    (c) In hexadecimal system the decimal number 138 is represented as ----------------
    (answer: 8A)
    (d) Number of times the following for loop will be executed is -------------------
    for (i=1; i<10; i+=2)
    printf(“%d”,i);
    (answer: 5)
    (e) The maximum integer that can be represented in 2's complement representation using 8 bits is ---------------------
    (answer : 127)
    (f) What is the type of the variable fp if the following statement is used in a program?
    float *fp; (answer: pointer to floating point number)
    (g) Consider the following code
    int a[10];
    int *i=&a[2];
    i+=2;
    after the execution of the above two statements to which number will the pointer i point
    to?
    (answer: it will point to a[4])
    2. Write short answers: 2 x 4 = 8
    (a) What happens during the bootstrapping of a computer?
    (b) Draw a flow chart to find the maximum of 3 numbers.
    (c) Carry out the following operation using 2's complement arithmetic with 8 bits.
    120+12.
    Indicate overflow if any.
    (d) Give examples of two standard C library functions stating their use.

    3. Answer any 4 questions 5 x 4 = 20
    (a) Write a function to return the GCD of two positive integer numbers.
    (b) Write a recursive function to return n! for non-negative integer n.
    (c) By writing the statements only show the use of the break statement in C
    (d) Describe how 2-dimmensional arrays are represented in memory.
    (e) Write down the statement only to declare a structure to store the following information for each student in a College.
    Name of the student, Roll_No, Date of Birth, year of admission. Write down the statements to read and then store the information about n such students.
    (f) What is dynamic memory allocation? Name the library functions that are used in C to allocate and release memory space dynamically. Write appropriate statements to demonstrate their use.

  2. Post Count Number #2
    Unregistered
    Guest

    chemistry

    Gauhati university TDC 1