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 . The second expression(j-k), in the following expression will be evaluted (i+5) || (j-k)

    Q - 1.2 . Which of the following is not a library function

    Q - 1.3 . It is necessary to declare the type of a function in the calling program if

    Q - 1.4 . What will be the output of the following code segment? Main() {int j=1,k=2; if(j==1) printf(

    Q - 1.5 . The maximum value that an integer constant can have is

    Q - 1.6 . The product of all natural numbers from 1 to n is called

    Q - 1.7 . Consider the following declarations: typedef struct{ char name[20]; char middlename[5]; char surname[20]; } NAME NAME class[20];

    Q - 1.8 . If you don’t initialize a static array, what will be the elements set to?

    Q - 1.9 . Prime number is a number

    Q - 1.10 . The functions fgets() and fputs()

    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 . The number of total elements in a queue is fixed.

    Q - 2.2 . The function puts() always adds a '\n' to the end of the string.

    Q - 2.3 . A pointer variable can be at most two level deep.

    Q - 2.4 . To write a block of data to a file in standard I/O, the approriate function is fwrite().

    Q - 2.5 . The --> operator can be combined with the period operator to access a member of a structure.

    Q - 2.6 . The same variable names can be used in different functions without any conflict.

    Q - 2.7 . Random access of the elements in linked list is possible.

    Q - 2.8 . The address of an array is a pointer caonstant.

    Q - 2.9 . A "while" loop may always be converted

    Q - 2.10 . Is this a correct array definition? Int num(25);

    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 &&
    3.2 Put a break after the last case of a switch statement
    3.3 Continue statement
    3.4 User defined data type
    3.5 Function definition
    3.6 To read a line from standard input
    3.7 const char mg[] = "warning"
    3.8 Outputting Multiple data
    3.9 Array
    3.10 Escape character

    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 Every complete statement in C program must terminate with _______.
    4.2 _______ function forces exit from a program.
    4.3 _________ operation deletes the items from stack.
    4.4 The statement within the _______ loop would keep on getting executes till the condition being tested remains true.
    4.5 In circular header linked list the last node points to _________ node.
    4.6 A _______ is used to separate the three part of the loop expression in a for loop.
    4.7 _______ are also variables and hence they must be defined In a program like any other variable.
    4.8 In a C expression with mixed datatype containing variables of the float and double, the result is of the type _______.
    4.9 The body of a _________ loop might not be executed even once.
    4.10 If a function calls another function, the recursion is said to be _______.