Time Left - 08:00 mins

DMRC 2018 Practice Quiz - 3(Tech)

Attempt now to get your rank among 220 students!

Question 1

Output of following program?
#include <stdio.h>
int main()
{
int *ptr;
int x;
ptr = &x;
*ptr=0;
printf(“x = %d\n”, x);
printf(“ *ptr = %d\n”, *ptr)
*ptr+=5;
printf(“ x = %d\n’, x);
printf(“ *ptr = %d\n”, *ptr);
(*ptr)++;
printf(“ x = %d\n”, x);
printf(“ *ptr = %d\n”, *ptr)
return 0;
}

Question 2

A system program that combines the separately compiled modules of a program into a form suitable for execution

Question 3

The structure or format of data is called :

Question 4

In classless addressing, there are no classes but addresses are still granted in :

Question 5

A subnet mask in class C can have __________ 1’s with the remaining bits 0’s.

Question 6

Correct expression for UDP user datagram length is :

Question 7

The part of machine level instruction, which tells the central processor what has to be done, is

Question 8

The principal of locality of reference justifies the use of ?

Question 9

How many times the word “PROCESS” will be printed when executing the following program?
main()
{
printf(“PROCESS”);
fflush();
fork();
fork();
}

Question 10

Which of the following is true about interfaces in java?
1. An interface can contain following type of members.
….. public, static, final fields (i.e., constants)
…… default and static methods with bodies
2. An instance of interface can be created.
3. A class can implement multiple interfaces.
4. Many classes can implement the same interface.
  • 220 attempts
  • 0 upvotes
  • 5 comments
Sep 27GATE & PSU CS