Online Tests for Programming and protocol solving in C language

Programming and protocol solving in C language

Download Guruji24.com App on Google Play
  • 1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the "OMR" answer sheet supplied with the question paper, following instructions therein.


    Q - 1.1 . A natural number 1 is also a

    Q - 1.2 . Consider the following program int f(int x){ static int y; y+=x; return(y); } main(){ int a,I; for(i=0;i<6;i++) a=f(i); printf(

    Q - 1.3 . Porduct of matrices A(mxn) and b(nxp) will be matrix C with row and columns as

    Q - 1.4 . How many times will the following loop be executed? Ch='b' while(ch>='a' && ch<='z')

    Q - 1.5 . What is the output of the following code: b=++c + ++C; if c is 10 initially

    Q - 1.6 . Stack cannot be used to

    Q - 1.7 . Header of a linked list is a special node at the-

    Q - 1.8 . The function fseek()

    Q - 1.9 . Which of the following statements is not true?

    Q - 1.10 . Operator precedence determines which operator-

    2. Each statement below is either TRUE or FALSE. Choose the most appropriate one and ENTER in the "OMR" answer sheet supplied with the question paper, following instructions therein.


    Q - 2.1 . Since the library function sqrt() takes in a double precision variable as arguments, it is not possible to find the square root of an integer value.

    Q - 2.2 . The function fprintf() is meant for unformatted write to data files.

    Q - 2.3 . The function scanf() can take variable number of argumanets.

    Q - 2.4 . The while and for loops test the termination condition at the bottom of the loop, but the do-while tests the termination condition at the top.

    Q - 2.5 . "*p++" increments the integer pointed by "p".

    Q - 2.6 . An assembly landguage programs runs faster than high level language programs.

    Q - 2.7 . In 'C' program, all variables must be declared before they are used.

    Q - 2.8 . The advantage of 'switch' statement over 'if' is that it leads to more structured program.

    Q - 2.9 . If you assign a value to an element of an array whose subscript exceeds the size of the array then other data may be overwritten or there may be possible system malfunctioning.

    Q - 2.10 . In circular header list, last node points back to the header node.

    3. Match words and phrases in column X with the closest related meaning/ word(s)/phrase(s) in column Y. Enter your selection in the "OMR" answer sheet supplied with the question paper, following instructions therein

    Question Select Answer
    3.1 Command line argument
    3.2 while(1)
    3.3 Reading formatted data from the standard input stream.
    3.4 A loop that must be executed at least once
    3.5 Put a break after the last case of a switch statement
    3.6 Deletion
    3.7 A function calling itself
    3.8 The program's ability to access a variable from the memory
    3.9 Premature loop termination
    3.10 an enumeration is a datatype

    4. Each statement below has a blank space to fit one of the word(s) or phrase(s) in the list below. Enter your choice in the "OMR" answer sheet supplied with the question paper, following instructions therein.

    Question Select Answer
    4.1 When the rear element of an array joins the front then the array becomes a _________ .
    4.2 When a function call itself, each invocation gets a fresh set of _______ variables independent of the previous invocation.
    4.3 _______ are also variables and hence they must be defined In a program like any other variable.
    4.4 The _________ function is used to move the character pointer in a file to a given location.
    4.5 A _______ loop can also be an empty loop, if it contains just a null statement in its body.
    4.6 All the variables defined in a program including pointer to an object of the same _______.
    4.7 String function strcpy() belongs to _______ header file.
    4.8 The statement within the _______ loop would keep on getting executes till the condition being tested remains true.
    4.9 In 'C' we can open files in the text mode or _________ mode.
    4.10 A pointer to a variable declared as double accesses _______ bytes of memory.