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 . Which of the following is returned by function

    Q - 1.2 . Consider the following code snippet marks=80; switch(marks){case 60: grade='C'; break; case 70: grade='B'; break; case 80: grade='A'; break; default grade=E; } What is the value of 'grade' after the switch statement is executed?

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

    Q - 1.4 . In the expression float *fptr; which is represented as type float?

    Q - 1.5 . A sequence of instructions, in a computer language, to get the desired result is known as

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

    Q - 1.7 . The part of a machine level instruction, which tells the central processor what has to be done, is

    Q - 1.8 . C' is a

    Q - 1.9 . The statement FILE *fpt;

    Q - 1.10 . Which of the following is true for the following statement? NuseryLand•Nursey•Students=10;

    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 identifier argv[] is a pointer to an array of strings.

    Q - 2.2 . The argument that is passed is called actual argument.

    Q - 2.3 . If an array had been defined like this: int array[12]; the word array representes the address of the array.

    Q - 2.4 . If x is an integer variable and px is a pointer; the statement px=*x; assigns the address of x to px.

    Q - 2.5 . Expression 3**2 evaluates to 9.

    Q - 2.6 . 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.7 . A multiple-statement while loop is terminated with a semicolon.

    Q - 2.8 . The ++ operator is a binary operator.

    Q - 2.9 . The function main() cannot be recursive.

    Q - 2.10 . Parameter passing is done from left to right.

    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 puts()
    3.2 To issue DOS commands
    3.3 #define sqr(x) x*x
    3.4 *(*(a+1)+2);
    3.5 Reading formatted data from the standard input stream.
    3.6 w+ and r+
    3.7 Memory space allocation for successive elements in linked list
    3.8 Null terminated array of characters
    3.9 Retains value across function calls
    3.10 Outputting Multiple data

    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 All the variables defined in a program including pointer to an object of the same _______.
    4.2 The operator i<<2 is equivalent to _______ I by 4.
    4.3 In 'C' we can open files in the text mode or _________ mode.
    4.4 In 'C' we can open files in the text mode or _________ mode.
    4.5 Right shifting an unsigned integer is equivalent to its _______ by 2.
    4.6 In Fibonacci series, the _______ two numbers are added to generate the Fibonacci number.
    4.7 When the _______ statement is executed, the program skips the remaining statements in the loop and goes back to test the loop condition.
    4.8 A pointer to void can hold pointer to _______.
    4.9 _______ is technique where by a function calls itself.
    4.10 _______ and _______ are examples of library functions.