GATE 2018 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2018

65 questions

MCQ 41 · NAT 241-mark 30 · 2-mark 35

Questions 11–15 of 65

Q11Taylor Series1 markMCQ−0.33 if wrong
Which one of the following is a closed form expression for the generating function of the sequence {an}\left \{ a_{n} \right \}, where an=2n+3a_{n}=2n+3 for all n = 0, 1, 2,...?

Q12Array and Pointer1 markMCQ−0.33 if wrong
Consider the following C program.
#include <stdio.h>
struct Ournode{
char x,y,z;
};
int main(){
struct Ournode p = {'1', '0','a'+2};  
struct Ournode *q = &p;
printf("%c,%c",*((char*)q+1),*((char*)q+2));
return 0;
}  
The output of this program is:

Q13Queue1 markMCQ−0.33 if wrong
A queue is implemented using a non-circular singly linked list. The queue has a head pointer and a tail pointer, as shown in the figure. Let n denote the number of nodes in the queue. Let enqueue be implemented by inserting a new node at the head, and dequeue be implemented by deletion of a node from the tail.
headtail
Which one of the following is the time complexity of the most time-efficient implementation of enqueue and dequeue, respectively, for this data structure?

Q14Boolean Algebra1 markMCQ−0.33 if wrong
Let ⨁\bigoplus and ⨀\bigodot denote the Exclusive OR and Exclusive NOR operations, respectively. Which one of the following is NOT CORRECT?

Q15Machine Instruction1 markMCQ−0.33 if wrong
Consider the following processor design characteristics.
I. Register-to-register arithmetic operations only
II. Fixed-length instruction format
III. Hardwired control unit
Which of the characteristics above are used in the design of a RISC processor?