Consider the following SDT (Syntax directed translation)
S→S @ Q {S.val = S.val + Q.val}
S→Q {S.val = Q.val}
Q→Q # R {Q.val = Q.val * R.val}
Q→R {Q.val = R.val}
R→num {R.val = num}
What will be the output of the following expression?
1@10#9@8#2#1@5
Question 2
Consider the following statements
1) HTTP is connection less protocol
2) HTTP is media dependent
3) HTTP encodes and transfers the information between a client and server.
Which of the following options are true ?
Options
Question 3
There are 6 segments as follows: -
The intermediate buffer delay is 15 ns. Then the execution time for 11 instructions with the pipeline is ?
Question 4
Given the following pseudocode for the function
void greet(int n)
{
int i;
if (n>0)
{
for (i=0;i<=n-1;i++)
{
printf("hello");
}
greet (n-1) ;
}
printf("world");
}
Which of the following is correct for greet(4)?
Question 5
A survey for a certain year found that 90% of pregnant women received medical care at least once before giving birth. Of these women, 60% received medical care from doctors, while 40% received medical care from other healthcare providers.
Given this information, which one of the following statements can be inferred with certainty?