1 answer
1
int *p, A[3]={0,1,2};p=A;*(P+2)=5;p=A++;*P=7; what are the values stored in the atray A from index 0 to index 2 after execution of the above cod?
2 answers
2
#define int charmain(){int i=66;printf("%d",sizeof(i));}
1 answer
3
main() { float a=.5, b=.7; if(b<.7) if(a<.5) printf("TELO"); else printf("LTTE"); else printf("JKLF"); }
1 answer
4
6 answers
6
5 answers
7
Consider the following program fragment if(a b) if(b c) s1; else s2;s2 will be executed ifa <= bb cb >= c and a <= ba b and b <= c
2 answers
9
Write the smallest real number greater than 6.25 that can be represented in the IEEE-754 single precision format (32-bit word with 1 sign bit and 8-bit exponent).
4 answers
10
The function $A \bar B C + \bar A B C + AB \bar C+ \bar A \bar B C+ A \bar B \bar C$ is equivalent to$A \bar C + AB+ \bar A C$$A \bar B+ A \bar C+ \bar A C$$\bar A B+ A \...
7 answers
11
A system shares $9$ tape drives. The current allocation and maximum requirement of tape drives for that processes are shown below:$$\begin{array}{ccc} \textbf{Process} &...
2 answers
13
Consider the grammar with productions$S\rightarrow aSb\mid SS \mid \varepsilon$This grammar is not context-free, not linearnot context-free, linearcontext-free, not linea...
2 answers
14
Consider the following regular expression:$a^*b^*b(a+(ab)^*)^*b^*$$a^*(ab+ba)^*b^*$What is the length of shortest string which is in both (i) and (ii)$2$$3$$4$$none$
5 answers
15
A processor is fetching instructions at the rate of $1$ MIPS. A DMA module is used to transfer characters to RAM from a device transmitting at $9600$ bps. How much time w...
1 answer
19
Match the following for operating system techniques with the most appropriate advantage :$\begin{array}{clcl} & \textbf{List-I} && \textbf{List-II}\\ \text{(a)} & \text{...
5 answers
25
The state of a process after it encounters an $I/O$ instruction is?ReadyBlockedIdle Running
2 answers
26
Which of the following commands or sequences of commands will rename a file x to file y in a Unix system ?mv y, xmv x, ycp y, x (rm x)cp x, y (rm x)II and IIIII and IVI a...
3 answers
27
Fork isthe creation of a new jobthe dispatching of a taskincreasing the priority of a taskthe creation of a new process
4 answers
28
The value of $\int^{\pi/4} _0 x \cos(x^2) dx$ correct to three decimal places (assuming that $\pi = 3.14$) is ____
1 answer
29
1 answer
30
How many process are created by the program? int main(){ int i; for(i=0;i<4;i++) fork(); return 0; }Can I write like this ?fork();fork();fork();fork();