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 . Sorting an array in the ascending order of numbers is the process of

    Q - 1.2 . The output of the following code segment will be char c='B' switch(x){case 'A': printf("a"); case 'B': printf("b"); default: printf("c");}

    Q - 1.3 . What will be the value of count after the following program is executed? Main() {int count, digit=0; count=1; while(digit<=9){printf(

    Q - 1.4 . Stack cannot be used to

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

    Q - 1.6 . Consider the following program segment main() { int a,b,c; b=3; a=2; a=2*(b++); c=2*(++b);} the correct values of

    Q - 1.7 . Which is more appropriate for reading in multi-word string?

    Q - 1.8 . Which one the following statement is incorrect?

    Q - 1.9 . Underflow condition in linked list may occur when attempting to-

    Q - 1.10 . How many times following loop will be executed? for(a=0;a<14;a++) printf(

    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 . In linked list, successive elements need not occupy adjacent space in memory.

    Q - 2.2 . Single operations involving entire arrays are not permitted in C.

    Q - 2.3 . In standard I/O, the function used to close a file is fclose().

    Q - 2.4 . The char variable is used to store the largest number less than 128.

    Q - 2.5 . Push operation in stack is performed at the rear end.

    Q - 2.6 . Queue is called FIFO list.

    Q - 2.7 . In call by reference, a change in the value of arguments by the called function is reflected in the calling function.

    Q - 2.8 . If A[10] Is an array, then A+2 points to the third element of the array.

    Q - 2.9 . The C compiler generates an error if the subscript used for an array exceeds the size of the array.

    Q - 2.10 . PUSH operation in stack may result in underflow.

    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 Compiler
    3.2 Outputting Multiple data
    3.3 To convert the oper and to the specific field data type
    3.4 Array of strings
    3.5 Machine language
    3.6 Register variable
    3.7 long y[5][10];
    3.8 char(*day)[13]
    3.9 an enumeration is a datatype
    3.10 Unconditional jump

    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 To return more than one value from a function use _________.
    4.2 A _________ file is a sequence of values of any type represented exactly as they would be in main memory.
    4.3 A list is a _________ data structure.
    4.4 The _________ loop executes at least once.
    4.5 It is a bad error to _________ something not obtained by calling calloc() or malloc() functions.
    4.6 A _______ statement is used to choose from multiple possibilities which may arise due to different values of a single variable.
    4.7 An _______ consists of one or more constants, variables, function calls or operations.
    4.8 The _______ statement is used to skip some statements within a loop and start next iteration.
    4.9 The function sprintf() is meant for formatted write to a memory _________ .
    4.10 A file opened with fopen() will thereafter be referred to by its _________ .