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 statement is true after execution of program. Int a[10],I,*p; a[0]=1; a[1]=2; p=a; (*p)++

    Q - 1.2 . Data structure-

    Q - 1.3 . The operator && in 'c' language is a

    Q - 1.4 . What shold be the value of I and k at the end of the following program segments? {Int I,j,k; j=5; i=2*j/2; k=2*(j/2); }

    Q - 1.5 . Indicate which of the following is not true about 'C' operators:

    Q - 1.6 . What would be the value of c? {int c; float a,b; a=245.05; b=40.02; c=a+b;}

    Q - 1.7 . GCD of two numbers is

    Q - 1.8 . The function fprintf function is used in a program

    Q - 1.9 . Array is a collection of

    Q - 1.10 . Which type of errors are flagged by compilers?

    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 . All functions in 'C' have to return an integer or a character value.

    Q - 2.2 . To examine every single byte of a file, a text mode is more suitable.

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

    Q - 2.4 . Unless otherwise defined, a variable declared in a function is considered to be auto.

    Q - 2.5 . You can use only on break statement in one loop.

    Q - 2.6 . The name of array represents address.

    Q - 2.7 . The function fseek() finds a given word or phrase in a file.

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

    Q - 2.9 . Binary files are more efficient than text files.

    Q - 2.10 . A field in the definition of 'struct x' may be type 'struct x'.

    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 sizeof
    3.2 an enumeration is a datatype
    3.3 \r
    3.4 The program's ability to access a variable from the memory
    3.5 Call by value
    3.6 The break statement
    3.7 switch statement
    3.8 The scope of a global variable is
    3.9 The exit function
    3.10 A mechanism to execute a set of statements number of times

    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 A _______ statement is used to choose from multiple possibilities which may arise due to different values of a single variable.
    4.2 _______ function appends a string to another string.
    4.3 Every complete statement in C program must terminate with _______.
    4.4 A list is a _________ data structure.
    4.5 Local variable are not automatically initialized to _______ by the compiler.
    4.6 A queue can be defined as a _________ .
    4.7 It is possible to have nested _______ statements in C.
    4.8 The operator _________ is used exclusively with pointer.
    4.9 #if is preprocessor directive for _________ compilation.
    4.10 Square root of a number is that number, which multiplied by _______ gives the original number.