Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
rude
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Answers by rude
4
votes
201
Which of the following is correct implementation to insert a node at start of linked list?
795
views
answered
May 6, 2016
14
votes
202
ISRO-2013-63
Consider the following $C$ code. #include <stdio.h> #include <math.h> void main () { double pi = 3.1415926535; int a = 1; int i; for (i=0; i < 3; i++) if (a = cos(pi * i/2)) printf("% d", 1); else printf("%d", 0); } What would the program print? $000$ $010$ $101$ $111$
Consider the following $C$ code.#include <stdio.h #include <math.h void main () { double pi = 3.1415926535; int a = 1; int i; for (i=0; i < 3; i++) if (a = cos(pi * i/2))...
6.2k
views
answered
May 6, 2016
Programming in C
isro2013
programming-in-c
identify-function
output
+
–
4
votes
203
Matrix group
Can anybody share the info about the group/semi group of the matrices? and this problem..? Consider the set H of all 3 3 matrices of the type: $\begin{bmatrix} a & f &e \\ 0&b &d \\ 0& 0& c \end{bmatrix}$ where a, b, c, d, e and f ... the set H is: (a) a group (b) a monoid but not a group (c) a semigroup but not a monoid (d) neither a group nor a semigroup
Can anybody share the info about the group/semi group of the matrices? and this problem..?Consider the set H of all 3 × 3 matrices of the type:$\begin{bmatrix} a & f &e ...
791
views
answered
May 5, 2016
6
votes
204
wxw is REGULAR or CSL ? for w belongs to (0,1)+ & x belongs to (0,1)* ?
1.9k
views
answered
May 5, 2016
20
votes
205
ISRO-2013-64
What is the output of the following program? Class Test { public static void main (String [] args) { int x = 0; int y = 0 for (int z = 0; z < 5; z++) { if((++x >2)||(++y > 2)) { x++; } } System.out.printIn (x+ "" + y); } } 8 2 8 5 8 3 5 3
What is the output of the following program?Class Test { public static void main (String [] args) { int x = 0; int y = 0 for (int z = 0; z < 5; z++) { if((++x >2)||(++y ...
3.5k
views
answered
May 5, 2016
Java
isro2013
java
non-gate
+
–
5
votes
206
Asymptotic comparison of functions
How will you perform asymptotic comparison of the following three functions: 1. $\log{n}$, 2. $(\log{n})^c$ and 3. $\sqrt{n}$ Obviously $\log{n} < (\log{n})^c$. But where $\sqrt{n}$ fits?
How will you perform asymptotic comparison of the following three functions:1. $\log{n}$,2. $(\log{n})^c$ and3. $\sqrt{n}$Obviously $\log{n} < (\log{n})^c$. But where ...
1.5k
views
answered
May 5, 2016
Algorithms
algorithms
asymptotic-notation
+
–
13
votes
207
ISRO-2013-36
In 8085 microprocessor, the ISR for handling trap interrupt is at which location? $3CH$ $34H$ $74H$ $24H$
In 8085 microprocessor, the ISR for handling trap interrupt is at which location?$3CH$$34H$$74H$$24H$
3.6k
views
answered
Apr 30, 2016
CO and Architecture
isro2013
8085-microprocessor
non-gate
+
–
3
votes
208
Why this is not working?
//First Case char *p, q[100]; p = "Hello"; //1 q = "Hello"; //2 //Second Case char *p, q[100]; scanf("%s",p); //1 scanf("%s",q); //2 In the first case, 1st works but 2nd does not work. why? In the second case, 1st does not work while 2nd work. why?
//First Case char *p, q[100]; p = "Hello"; //1 q = "Hello"; //2 //Second Case char *p, q[100]; scanf("%s",p); //1 scanf("%s",q); //2In the first case, 1st works but 2nd d...
221
views
answered
Apr 30, 2016
4
votes
209
regular language
given 2 languages : L1 = {a^n b^l a^k | n + l +k>5 } L2 = {a^n b^l c^ k|n>5, l >3, k≤ l } Which of the following is true ? (A) L1 is regular language and L2 is not regular language. (B) Both L1 and L2 are regular languages. (C) Both L1 and L2 are not regular languages. (D) L1 is not regular language and L2 is regular language. is there any short cut method
given 2 languages : L1 = {a^n b^l a^k | n + l +k>5 } L2 = {a^n b^l c^ k|n>5, l >3, k≤ l } Which of the following is true ?(A) L1 is regular language and L2 is not regu...
3.3k
views
answered
Apr 30, 2016
5
votes
210
golden ratio
1.4k
views
answered
Apr 30, 2016
Algorithms
golden-ratio
+
–
3
votes
211
What is the problem with this code?
#include<stdio.h> int main() { char arr[10]; memset(arr,0,sizeof(arr)); gets(arr); printf("\n The buffer entered is [%s]\n",arr); return 0; }
#include<stdio.h int main() { char arr[10]; memset(arr,0,sizeof(arr)); gets(arr); printf("\n The buffer entered is [%s]\n",arr); return 0; }
288
views
answered
Apr 21, 2016
Programming in C
programming-in-c
+
–
4
votes
212
What is the problem with this program?
The following program seg-faults (crashes) when user supplies input as ‘freeze’ while it works fine with input ‘zebra’. Why? #include<stdio.h> int main(int argc, char *argv[]) { char *ptr = (char*) ... printf("\n String contains 'z'\n"); // Do some more processing } free(ptr); } return 0; }
The following program seg-faults (crashes) when user supplies input as ‘freeze’ while it works fine with input ‘zebra’. Why?#include<stdio.h int m...
273
views
answered
Apr 21, 2016
Programming in C
programming-in-c
+
–
61
votes
213
GATE CSE 1991 | Question: 14,c
Consider the binary tree in the figure below: Outline a procedure in Pseudo-code to delete an arbitrary node from such a binary tree with $n$ nodes that preserves the structures. What is the worst-case time complexity of your procedure?
Consider the binary tree in the figure below:Outline a procedure in Pseudo-code to delete an arbitrary node from such a binary tree with $n$ nodes that preserves the stru...
3.0k
views
answered
Apr 18, 2016
DS
gate1991
normal
data-structures
binary-tree
time-complexity
descriptive
+
–
5
votes
214
What will be the next Number?
1, 10, 33, 76, _____?
1, 10, 33, 76, _____?
1.3k
views
answered
Apr 18, 2016
6
votes
215
What will be the next Number?
0, 11, 36, 81, ____?
0, 11, 36, 81, ____?
870
views
answered
Apr 18, 2016
Verbal Aptitude
number-series
+
–
5
votes
216
What will be the output, Please explain?
void f(int n){ if(n <= 1){ printf("%d", n); } else{ f(n/2); printf("%d", n%2); } }
void f(int n){ if(n <= 1){ printf("%d", n); } else{ f(n/2); printf("%d", n%2); } }
503
views
answered
Apr 18, 2016
Programming in C
programming-in-c
functions
+
–
6
votes
217
Kenneth Rosen Edition 7 Exercise 1.2 Question 9 (Page No. 22)
Are these system specifications consistent? The system is in multi-user state if and only if it is operating normally. If the system is operating normally, the kernel is functioning. The kernel is not functioning or the system is ... system is not in multiuser state, then it is in interrupt mode. The system is not in interrupt mode.
Are these system specifications consistent? “The system is in multi-user state if and only if it is operating normally. If the system is operating normally, the kernel ...
7.5k
views
answered
Apr 18, 2016
Mathematical Logic
kenneth-rosen
discrete-mathematics
mathematical-logic
+
–
6
votes
218
Kenneth Rosen Edition 7 Exercise 1.2 Question 10 (Page No. 23)
Are these system specifications consistent? “Whenever the system software is being upgraded, users cannot access the file system. If users can access the file system, then they can save new files. If users cannot save new files, then the system software is not being upgraded.”
Are these system specifications consistent? “Whenever the system software is being upgraded, users cannot access the file system. If users can access the file system, t...
11.3k
views
answered
Apr 18, 2016
Mathematical Logic
kenneth-rosen
discrete-mathematics
mathematical-logic
+
–
2
votes
219
Kenneth Rosen Edition 7 Exercise 1.2 Question 1 (Page No. 22)
Translate the given statement into propositional logic using the propositions provided. You cannot edit a protected Wikipedia entry unless you are an administrator. Express your answer in terms of e: “You can edit a protected Wikipedia entry” and a: “You are an administrator.”
Translate the given statement into propositional logic using the propositions provided.You cannot edit a protected Wikipedia entry unless you are an administrator.Express...
6.1k
views
answered
Apr 18, 2016
Mathematical Logic
kenneth-rosen
discrete-mathematics
mathematical-logic
+
–
4
votes
220
Kenneth Rosen Edition 7 Exercise 1.2 Question 11 (Page No. 23)
Are these system specifications consistent? The router can send packets to the edge system only if it supports the new address space. For the router to support the new address space it is necessary that the latest software ... edge system if the latest software release is installed, The router does not support the new address space.
Are these system specifications consistent? “The router can send packets to the edge system only if it supports the new address space. For the router to support the new...
6.4k
views
answered
Apr 18, 2016
Set Theory & Algebra
kenneth-rosen
discrete-mathematics
set-theory&algebra
descriptive
+
–
6
votes
221
GATE CSE 1991 | Question: 03,iv
The TRAP interrupts mechanism of the $8085$ microprocessor: executes an $RST$ by hardware executes an instruction supplied by an external device through the $INTA$ signal executes an instruction from memory location $20H$ executes a NOP none of the above
The TRAP interrupts mechanism of the $8085$ microprocessor:executes an $RST$ by hardwareexecutes an instruction supplied by an external device through the $INTA$ signalex...
2.4k
views
answered
Apr 17, 2016
CO and Architecture
gate1991
co-and-architecture
8085-microprocessor
normal
out-of-gate-syllabus
+
–
9
votes
222
Kenneth Rosen Edition 6th Exercise 1.2 Question 15 (Page No. 23)
Each inhabitant of a remote village always tells the truth or always lies. A villager will give only a Yes or a No response to a question a tourist asks. Suppose you are a tourist visiting this area and come to a ... is standing at the fork in the road. What one question can you ask the villager to determine which branch to take?
Each inhabitant of a remote village always tells the truth or always lies. A villager will give only a “Yes” or a “No” response to a question a tourist asks. Supp...
4.6k
views
answered
Apr 17, 2016
Mathematical Logic
kenneth-rosen
discrete-mathematics
mathematical-logic
+
–
6
votes
223
How should I start preparing for GATE in CSE if I am an ECE student ?
Especially subjects like Algorithms, TOC, DB, CD right from the basics
Especially subjects like Algorithms, TOC, DB, CD right from the basics
1.5k
views
answered
Apr 13, 2016
Study Resources
preparation
+
–
3
votes
224
Runtime Enviorment
Consider the following sentences : 1. Static allocation binding do not change at run time 2. Heap Allocation allocate and deallocate at run time Which of the above is true ?
Consider the following sentences :1. Static allocation binding do not change at run time2. Heap Allocation allocate and deallocate at run timeWhich of the above is true ?...
1.1k
views
answered
Apr 13, 2016
Compiler Design
compiler-design
static-allocation
+
–
7
votes
225
Is counting sort and bucket sort present in gate syllabus?
I have seen questions about Radix Sort but not about bucket sort and Counting sort and hence my doubt
I have seen questions about Radix Sort but not about bucket sort and Counting sort and hence my doubt
1.7k
views
answered
Apr 13, 2016
Others
preparation
algorithms
syllabus
+
–
6
votes
226
Compilers
System programs such as Compiler are designed so that they are 1) Recursive 2) Serially usable 3) Non reusable 4) Reenterable Please provide explanation too
System programs such as Compiler are designed so that they are1) Recursive2) Serially usable3) Non reusable4) ReenterablePlease provide explanation too
2.0k
views
answered
Apr 13, 2016
Compiler Design
compiler-design
runtime-environment
+
–
3
votes
227
Binding
After the assignment pi=3.14 if the storage address 200 associated with varaible pi is used , then the assignment changes 1) Enviorment 2) state c) binding d) none As far as i know Binding happen at run time . Now whenever we declare a variable we are binding ... Enviorment . Now assigning the value to this variable is a state . So now after assignment the STATE would changes . am i right ?
After the assignment pi=3.14 if the storage address 200 associated with varaible pi is used , then the assignment changes1) Enviorment2) statec) bindingd) noneAs far as i...
4.0k
views
answered
Apr 13, 2016
Compiler Design
compiler-design
runtime-environment
+
–
4
votes
228
UGC NET CSE | December 2012 | Part 3 | Question: 68
An example of a dictionary-based coding technique is Run-length coding Huffman coding Predictive coding LZW coding
An example of a dictionary-based coding technique isRun-length codingHuffman codingPredictive codingLZW coding
3.0k
views
answered
Apr 13, 2016
Computer Networks
ugcnetcse-dec2012-paper3
computer-networks
network-security
encoding
+
–
8
votes
229
Kenneth Rosen Edition 7 Exercise 1.1 Question 1 (Page No. 12)
Which of these sentences are propositions? What are the truth values of those that are propositions? Boston is the capital of Massachusetts. Miami is the capital of Florida. 2 + 3 = 5. 5 + 7 = 10. x + 2 = 11. Answer this question
Which of these sentences are propositions? What are the truth values of those that are propositions?Boston is the capital of Massachusetts.Miami is the capital of Florida...
2.2k
views
answered
Apr 13, 2016
Mathematical Logic
kenneth-rosen
mathematical-logic
discrete-mathematics
+
–
5
votes
230
#Regular Expression
The regular expression 0*(10*)* denotes the same set as (A) (1*0)*1* (B) 0 + (0 + 10)* (C) (0 + 1)* 10(0 + 1)* (D) none of these
The regular expression 0*(10*)* denotes the same set as(A) (1*0)*1*(B) 0 + (0 + 10)*(C) (0 + 1)* 10(0 + 1)*(D) none of these
2.5k
views
answered
Apr 13, 2016
Theory of Computation
theory-of-computation
regular-expression
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register