Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Recent activity by rio
1
answer
1
pointer
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?
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?
816
views
answer selected
Apr 13, 2018
Programming in C
programming-in-c
pointers
+
–
2
answers
2
output?
#define int char main(){ int i=66; printf("%d",sizeof(i)); }
#define int charmain(){int i=66;printf("%d",sizeof(i));}
673
views
answer selected
Apr 13, 2018
Programming in C
programming
programming-in-c
+
–
1
answer
3
C program o/p
main() { float a=.5, b=.7; if(b<.7) if(a<.5) printf("TELO"); else printf("LTTE"); else printf("JKLF"); }
main() { float a=.5, b=.7; if(b<.7) if(a<.5) printf("TELO"); else printf("LTTE"); else printf("JKLF"); }
1.6k
views
commented
Apr 12, 2018
Programming in C
programming-in-c
+
–
1
answer
4
Passing array as function argument
#include<stdio.h> void temp(int a[]); main(){ int a[5]={1,2,3,4,5}; printf("%d", sizeof(a)); temp(a); } void temp(int a[]){ printf(" %d", sizeof(a)); } Output of above code is, given size of int is 4 byte $20$ $20$ $20$ $8$ $8$ $8$ $8$ $20$
#include<stdio.h void temp(int a[]); main(){ int a[5]={1,2,3,4,5}; printf("%d", sizeof(a)); temp(a); } void temp(int a[]){ printf(" %d", sizeof(a)); }Output of above code...
538
views
answer selected
Apr 12, 2018
Programming in C
programming-in-c
+
–
3
answers
5
GATE CSE 2012 | Question: 53
For the grammar below, a partial $LL(1)$ parsing table is also presented along with the grammar. Entries that need to be filled are indicated as $E1, E2,$ and $E3$. $\varepsilon$ is the empty string, \$ indicates end of input, and, $ ... $ E2 : B \rightarrow S, S \rightarrow \varepsilon$ $ E3 : B \rightarrow S$
For the grammar below, a partial $LL(1)$ parsing table is also presented along with the grammar. Entries that need to be filled are indicated as $E1, E2,$ and $E3$. $\var...
17.4k
views
commented
Apr 10, 2018
Compiler Design
normal
gatecse-2012
compiler-design
parsing
+
–
6
answers
6
GATE IT 2008 | Question: 36
Consider the following two finite automata. $M_1$ accepts $L_1$ and $M_2$ accepts $L_2$. $M_1$ $M_2$ Which one of the following is TRUE? $L_1 = L_2$ $L_1 \subset L_2$ $L_1 \cap L_{2}^{C} = \varnothing $ $L_1 \cup L_2 \neq L_1$
Consider the following two finite automata. $M_1$ accepts $L_1$ and $M_2$ accepts $L_2$.$M_1$$M_2$ Which one of the following is TRUE?$L_1 = L_2$$L_1 \subset L_2$$L_1 \ca...
12.6k
views
commented
Apr 9, 2018
Theory of Computation
gateit-2008
theory-of-computation
finite-automata
normal
+
–
5
answers
7
ISRO2015-68
Consider the following program fragment if(a > b) if(b > c) s1; else s2; s2 will be executed if a <= b b > c b >= c and a <= b a > b and b <= c
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
5.8k
views
commented
Apr 7, 2018
Programming in C
isro2015
programming
programming-in-c
+
–
10
answers
8
GATE IT 2005 | Question: 73
On a TCP connection, current congestion window size is Congestion Window = $4$ KB. The window size advertised by the receiver is Advertise Window = $6$ KB. The last byte sent by the sender is LastByteSent = $10240$ and the last byte acknowledged by ... LastByteAcked = $8192$. The current window size at the sender is: $2048$ bytes $4096$ bytes $6144$ bytes $8192$ bytes
On a TCP connection, current congestion window size is Congestion Window = $4$ KB. The window size advertised by the receiver is Advertise Window = $6$ KB. The last byte ...
26.1k
views
commented
Apr 5, 2018
Computer Networks
gateit-2005
computer-networks
congestion-control
normal
+
–
2
answers
9
ISI-JRF
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).
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).
846
views
commented
Apr 2, 2018
CO and Architecture
ieee-representation
co-and-architecture
+
–
4
answers
10
GATE IT 2004 | Question: 44
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 \bar C+ A \bar B$ $\bar AB+ AC+ A \bar B$
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 \...
6.9k
views
commented
Apr 2, 2018
Digital Logic
gateit-2004
digital-logic
boolean-algebra
easy
+
–
7
answers
11
GATE CSE 2017 Set 2 | Question: 33
A system shares $9$ ... describes current state of the system? Safe, Deadlocked Safe, Not Deadlocked Not Safe, Deadlocked Not Safe, Not Deadlocked
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} &...
13.8k
views
commented
Mar 30, 2018
Operating System
gatecse-2017-set2
operating-system
resource-allocation
normal
+
–
4
answers
12
GATE CSE 2015 Set 3 | Question: 52
Consider the following policies for preventing deadlock in a system with mutually exclusive resources. Process should acquire all their resources at the beginning of execution. If any resource is not available, all resources acquired so far are released. The resources are numbered uniquely, ... and (III) but not (I) or (IV) Any one of (I), (II), (III) and (IV)
Consider the following policies for preventing deadlock in a system with mutually exclusive resources.Process should acquire all their resources at the beginning of execu...
12.7k
views
commented
Mar 30, 2018
Operating System
gatecse-2015-set3
operating-system
resource-allocation
normal
+
–
2
answers
13
ISRO-DEC2017-22
Consider the grammar with productions $S\rightarrow aSb\mid SS \mid \varepsilon$ This grammar is not context-free, not linear not context-free, linear context-free, not linear context-free, linear
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...
3.4k
views
commented
Mar 25, 2018
Theory of Computation
isrodec2017
+
–
2
answers
14
GATE Question
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$
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$
691
views
answer edited
Mar 24, 2018
Theory of Computation
theory-of-computation
+
–
5
answers
15
ISRO-2013-14
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 will the processor be slowed down due to DMA activity? $9.6$ms $4.8$ms $2.4$ms $1.2$ms
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...
7.3k
views
answer selected
Mar 23, 2018
CO and Architecture
isro2013
dma
+
–
3
answers
16
GATE CSE 1999 | Question: 2.23
A certain processor supports only the immediate and the direct addressing modes. Which of the following programming language features cannot be implemented on this processor? Pointers Arrays Records Recursive procedures with local variable
A certain processor supports only the immediate and the direct addressing modes. Which of the following programming language features cannot be implemented on this proces...
15.5k
views
commented
Mar 21, 2018
CO and Architecture
gate1999
co-and-architecture
addressing-modes
normal
multiple-selects
+
–
3
answers
17
GATE IT 2005 | Question: 5
Which of the following statements is TRUE about the regular expression $01^*0$? It represents a finite set of finite strings. It represents an infinite set of finite strings. It represents a finite set of infinite strings. It represents an infinite set of infinite strings.
Which of the following statements is TRUE about the regular expression $01^*0$?It represents a finite set of finite strings.It represents an infinite set of finite string...
9.8k
views
commented
Mar 20, 2018
Theory of Computation
gateit-2005
theory-of-computation
regular-expression
easy
+
–
4
answers
18
GATE CSE 2014 Set 2 | Question: 16
Let $A\:\leq_m\:B$ denotes that language $A$ is mapping reducible (also known as many-to-one reducible) to language $B$. Which one of the following is FALSE? If $A\: \leq_m B$ and $B$ is recursive then $A$ ... then $A$ is recursively enumerable. If $A\: \leq_m B$ and $B$ is not recursively enumerable then $A$ is not recursively enumerable.
Let $A\:\leq_m\:B$ denotes that language $A$ is mapping reducible (also known as many-to-one reducible) to language $B$. Which one of the following is FALSE?If $A\: \leq_...
17.5k
views
commented
Mar 20, 2018
Theory of Computation
gatecse-2014-set2
theory-of-computation
recursive-and-recursively-enumerable-languages
normal
+
–
1
answer
19
UGC NET CSE | Junet 2015 | Part 3 | Question: 49
Match the following for operating system techniques with the most appropriate advantage : ... $\text{(a)-(ii), (b)-(iii), (c)-(iv), (d)-(i)}$
Match the following for operating system techniques with the most appropriate advantage :$\begin{array}{clcl} & \textbf{List-I} && \textbf{List-II}\\ \text{(a)} & \text{...
2.0k
views
answer selected
Mar 14, 2018
Operating System
ugcnetcse-june2015-paper3
operating-system
+
–
4
answers
20
UGC NET CSE | December 2014 | Part 2 | Question: 37
A specific editor has $200 K$ of program text, $15 K$ of initial stack, $50 K$ of initialized data, and $70 K$ of bootstrap code. If five editors are started simultaneously, how much physical memory is needed if shared text is used? $1135 K$ $335 K$ $1065 K$ $320 K$
A specific editor has $200 K$ of program text, $15 K$ of initial stack, $50 K$ of initialized data, and $70 K$ of bootstrap code. If five editors are started simultaneous...
1.7k
views
commented
Mar 14, 2018
Operating System
ugcnetcse-dec2014-paper2
operating-system
process
+
–
3
answers
21
What is the type of loading?
Routine is not loaded until it is called.All routine are kept on disk in a relocatable load format.The main program is loaded into memory and is executed.This type of loading is called as _________ A)Static Loading B)Dynamic Loading C)Dynamic Linking D)Overlays Kindly give explanation /attach references if any.
Routine is not loaded until it is called.All routine are kept on disk in a relocatable load format.The main program is loaded into memory and is executed.This type of loa...
2.8k
views
commented
Mar 14, 2018
2
answers
22
UGC NET CSE | December 2012 | Part 3 | Question: 7
Which of the following features will characterize an OS as multi-programmed OS? More than one program loaded into main memory at the same time. If a program waits for certain event another program is immediately scheduled If the execution of a program terminates, ... $\text{i and ii only}$ $\text{i and iii only}$ $\text{i, ii, and iii only}$
Which of the following features will characterize an OS as multi-programmed OS?More than one program loaded into main memory at the same time.If a program waits for certa...
1.9k
views
commented
Mar 14, 2018
Operating System
ugcnetcse-dec2012-paper3
operating-system
multiprogramming-os
+
–
3
answers
23
UGC NET CSE | September 2013 | Part 2 | Question: 47
Assume that an implementation of Unix operating system uses i-nodes to keep track of data blocks allocated to a file. It supports 12 direct block addresses, one in direct block address and one double indirect block address. The file system has ... disk block address. The maximum possible size of a file in this system is 16 MB 16 KB 70 KB 71 KB
Assume that an implementation of Unix operating system uses i-nodes to keep track of data blocks allocated to a file. It supports 12 direct block addresses, one in direct...
3.0k
views
answer selected
Mar 14, 2018
Operating System
ugcnetsep2013ii
operating-system
unix
+
–
9
answers
24
ISRO-2013-65
Consider the list of page references in the time line as below: 9 6 2 3 4 4 4 4 3 4 4 2 5 8 6 8 5 5 3 2 3 3 9 6 2 7 What is the working set at the penultimate page reference if ∆ is 5? {8, 5, 3, 2, 9, 6} {4, 3, 6, 2, 5} {3, 9, 6, 2, 7} {3, 9, 6, 2}
Consider the list of page references in the time line as below:9 6 2 3 4 4 4 4 3 4 4 2 5 8 6 8 5 5 3 2 3 3 9 6 2 7What is the working set at the ...
9.3k
views
answer selected
Mar 14, 2018
Operating System
isro2013
operating-system
memory-management
page-replacement
+
–
5
answers
25
ISRO-2013-60
The state of a process after it encounters an $I/O$ instruction is? Ready Blocked Idle Running
The state of a process after it encounters an $I/O$ instruction is?ReadyBlockedIdle Running
7.0k
views
commented
Mar 14, 2018
Operating System
isro2013
operating-system
process
+
–
2
answers
26
GATE IT 2004 | Question: 16
Which of the following commands or sequences of commands will rename a file x to file y in a Unix system ? mv y, x mv x, y cp y, x (rm x) cp x, y (rm x) II and III II and IV I and III II only
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...
4.0k
views
answer selected
Mar 14, 2018
Operating System
gateit-2004
operating-system
unix
out-of-syllabus-now
+
–
3
answers
27
ISRO2008-63
Fork is the creation of a new job the dispatching of a task increasing the priority of a task the creation of a new process
Fork isthe creation of a new jobthe dispatching of a taskincreasing the priority of a taskthe creation of a new process
2.2k
views
answer selected
Mar 13, 2018
Operating System
isro2008
operating-system
fork-system-call
+
–
4
answers
28
GATE CSE 2018 | Question: 16
The value of $\int^{\pi/4} _0 x \cos(x^2) dx$ correct to three decimal places (assuming that $\pi = 3.14$) is ____
The value of $\int^{\pi/4} _0 x \cos(x^2) dx$ correct to three decimal places (assuming that $\pi = 3.14$) is ____
16.2k
views
commented
Mar 10, 2018
Calculus
gatecse-2018
calculus
integration
normal
numerical-answers
1-mark
+
–
1
answer
29
Operating system
379
views
answer selected
Mar 10, 2018
Operating System
operating-system
+
–
1
answer
30
fork system call
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();
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();
7.8k
views
answer selected
Mar 10, 2018
Operating System
operating-system
fork-system-call
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register