Question 41
I1: ACS R0, R1,X I2: LOAD R2, 0(R3) I3: SUB R4 R2, R2 I4: X: ADD R5, R1, R2 I5: LOAD R1, 0(R5) I6: SUB R1, R1, R4 I7: ADD R1, R1, R5
Question 42
#include<stdio.h> int main() { int m = 10; int n, n1; n = m++; n1 = ++m; n--; --n1; n -= n1; printf("%d",n); return 0; }The output of the program is ______.
Question 43
Link 1 – Speed : 10 Gbps, Propagation Delay : 40ms Link 2 – Speed : 2 Gbps, Propagation Delay : 5ms Link 3 – Speed : 2 Gbps, Propagation Delay : 10msAssume processing delay to be zero. A data packet of 500 KB is sent from a source to a destination via the path:
link 1 – link 3 – link 2What is the total delay in transmitting the packet ?
Question 44
Question 45
The pre-order traversal of a binary tree is given by,
12, 8, 6, 2, 7, 9, 10, 16, 15, 19, 17, 20
Then the post-order traversal of this tree is:
Question 46
Process Arrival Time Processing Time A 0 3 B 1 6 C 4 4 D 6 2
Question 47
#include <stdio.h>
char str1[100];
char *fun(char str[])
{
static int i = 0;
if (*str)
{
fun(str+1);
str1[i] = *str;
i++;
}
return str1;
}
int main()
{
char str[] = \"GATE CS 2015 Mock Test\";
printf(\"%s\", fun(str));
return 0;
}
Question 48
L1 = {w1aw2 | w1,w2 ∈ {a,b}* , |w1|=2,|w2|≥3} L2 = {ambn ∣ m≥n, n≥0} L3 = {ambn ∣ m≥0, n≥0} L4 = {ambnam ∣ m≥0, n≥0}Which of the following are NOT Regular ?
Question 49
void fun() { int i, j; for (i=1; i<=n; i++) for (j=1; j<=log(i); j++) printf("GeeksforGeeks"); }
There are 65 questions to complete.