Hurry! Try our new Interactive Courses for FREE. 🥳   🚀

GATE 2020 - Programming and Data Structures

This Test will cover complete Programming and Data Structures with very important questions, starting off from basics to advanced level.
Q. The value of ab, if ab & 0 x 3f equals 0 x 27 is __________?
Q. In C programming language, if the first and the second operands of operator + are of types int and float, respectively the result will be of type ___________?
Q. What is the output of the following 'C' program?
main() 
{
    int a[5] = {2,3};
    printf("\n%d%d%d",a[2],a[3],a[4]);
}
Q. What is the output of the following 'C' program?
main() 
{
    struct emp
    {
        char name[20];
        int age;
        float sal;
    };
    struct emp e = {"Tiger"};
    printf("\n%d%f", e.age, e.sal);
}

Q. If a file contains the line "I am a boy\r\n", then on reading this line into the array str using fgets(), what would str contain?
Q. How many times will the following loop be executed if the input data item is 01234 ?
while(c=getchar() != 0)
{
                          
}
Q. The function sprintf() works like printf(), but operates on __________?
Q. Feature for accessing a variable through its address is desirable because __________?
Q. In the statement template &<class T> ,

Q. In C programming language, which of the following operators has the highest precedence?
Q. In the code below the output of puts(x) and puts(y) will be,

char x[] = "WHATIZIT";
char *y = "WHATIZIT";
Q. Which of the following statements is incorrect?
Q. The function that is actually created from a call to a template function is called?
Q. The value of an automatic variable that is declared but not initialised will be?
Q. If the declaration unsigned c:5 is replaced by unsigned :6, then

Related Tests:


Explore more Subjects:

Tests for various other programming languages and subjects: