Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
bhuv
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Answers by bhuv
3
votes
1
Multidimensional Pointer Arithmetic
int main() { char arr[5][7][6]; char (*p)[5][7][6] = &arr; /* Hint: &arr - is of type const pointer to an array of 5 two dimensional arrays of size [7][6] */ printf("%d\n", (& ... 42 210 Questn) Can anyone please explain how output is calculated in all the printf statements and what difference 'unsigned' is making to the output.
int main(){ char arr[5][7][6]; char (*p)[5][7][6] = &arr; /* Hint: &arr - is of type const pointer to an array of 5 two dimensional arrays of size [7][6] ...
1.7k
views
answered
Jun 21, 2018
Programming in C
programming-in-c
array
+
–
1
votes
2
Constant Pointer
Please tell me about all the variations of these above types of questions that can be asked?
Please tell me about all the variations of these above types of questions that can be asked?
731
views
answered
May 5, 2018
Programming in C
programming-in-c
+
–
2
votes
3
TOC Push down automata
Can we put simultanously Two symbols in stack in one of the video on youtube it is showing that we can put two a's on to the stack I'm not finding it correct plzz calrify my doubt it on place of one a we are putting two a's one extra a is ... because any how 1 b is poping out 1 a then no.of b's will be fine but what about one extra which has been take out
Can we put simultanously Two symbols in stack in one of the video on youtube it is showing that we can put two a's on to the stack I'm not finding it correct plzz calrify...
472
views
answered
May 5, 2018
2
votes
4
Test by Bikram | Databases | Test 2 | Question: 3
Consider the following schedule: ... $W(B), W(C)$ $W(A), W(A)$ $W(A) ,W(B)$ $W(C), W(A)$
Consider the following schedule:$\begin{array}{|c|c|} \hline T1& T2 \\ \hline R(A) &{} \\ \hline R(B) & {} \\ \hline R(C) & {} \\ \hline {} & R(A) \\ \hline {} & R(B) \\...
633
views
answered
Jan 13, 2018
Databases
tbb-dbms-2
databases
transaction-and-concurrency
+
–
3
votes
5
Test by Bikram | Databases | Test 2 | Question: 1
Consider the table $R(p,q,w)$ and the queries given below: Q1: SELECT DISTINCT p,q FROM R ; Q2: SELECT p,q FROM R GROUP BY p,q ; Then, which of the following statements are TRUE? Q1 and Q2 always produce the same result. The output ... is a proper subset of the output of Q1. Q1 and Q2 produce different results. I and II II and III I only III and IV
Consider the table $R(p,q,w)$ and the queries given below:Q1: SELECT DISTINCT p,q FROM R ;Q2: SELECT p,q FROM R GROUP BY p,q ;Then, which of the following statements are ...
627
views
answered
Jan 13, 2018
Databases
tbb-dbms-2
databases
sql
+
–
3
votes
6
Test by Bikram | Theory of Computation | Test 2 | Question: 12
Choose the regular expression corresponding to the given DFA : $(00 ^*1 + 11^* 0) (0 + 1) ^*$ $((11) ^* 0 + 00 ^* 1)(0 + 1) ^*$ $(11) ^* (0 ^* 1 + 1^* 0) (0 + 1) ^*$ $(11) ^* (00 ^* 1 + 10) (0 + 1) ^*$
Choose the regular expression corresponding to the given DFA :$(00 ^*1 + 11^* 0) (0 + 1) ^*$$((11) ^* 0 + 00 ^* 1)(0 + 1) ^*$$(11) ^* (0 ^* 1 + 1^* 0) (0 + 1) ^*$$(11) ^*...
291
views
answered
Jan 12, 2018
Theory of Computation
tbb-toc-2
theory-of-computation
regular-expression
+
–
0
votes
7
KENETH ROSEN
How many different ways are there to seat four people around a circular table, where two seatings are considered the same when each person has the same left neighbor and the same right neighbor? ANSWER IS 6 OR 3 .????
How many different ways are there to seat four people around a circular table, where two seatings are considered the same when each person has the same left neighbor and ...
3.1k
views
answered
Dec 26, 2017
4
votes
8
TIFR CSE 2011 | Part A | Question: 14
The limit $\lim_{x \to 0} \frac{d}{dx}\,\frac{\sin^2 x}{x}$ is $0$ $2$ $1$ $\frac{1}{2}$ None of the above
The limit $$\lim_{x \to 0} \frac{d}{dx}\,\frac{\sin^2 x}{x}$$ is$0$$2$$1$$\frac{1}{2}$None of the above
2.3k
views
answered
Dec 21, 2017
Calculus
tifr2011
calculus
limits
+
–
9
votes
9
GATE IT 2005 | Question: 53
The following$ C$ function takes two ASCII strings and determines whether one is an anagram of the other. An anagram of a string s is a string obtained by permuting the letters in s. int anagram (char *a, char *b) { int count [128], j; for (j = 0; j < 128; j++) count[j] = 0; j ... [j]]++ A: count [a[j++]]++ and B: count[b[j]]-- A: count [a[j]]++ and B: count[b[j++]]--
The following$ C$ function takes two ASCII strings and determines whether one is an anagram of the other. An anagram of a string s is a string obtained by permuting the l...
12.0k
views
answered
Dec 15, 2017
Algorithms
gateit-2005
normal
identify-function
+
–
6
votes
10
GATE CSE 2008 | Question: 31
$P$ and $Q$ are two propositions. Which of the following logical expressions are equivalent? $P ∨ \neg Q$ $\neg(\neg P ∧ Q)$ $(P ∧ Q) ∨ (P ∧ \neg Q) ∨ (\neg P ∧ \neg Q)$ $(P ∧ Q) ∨ (P ∧ \neg Q) ∨ (\neg P ∧ Q)$ Only I and II Only I, II and III Only I, II and IV All of I, II, III and IV
$P$ and $Q$ are two propositions. Which of the following logical expressions are equivalent?$P ∨ \neg Q$$\neg(\neg P ∧ Q)$$(P ∧ Q) ∨ (P ∧ \neg Q) ∨ (\neg P �...
8.3k
views
answered
Nov 8, 2017
Mathematical Logic
gatecse-2008
normal
mathematical-logic
propositional-logic
+
–
1
votes
11
GATE CSE 1993 | Question: 26
A stack is used to pass parameters to procedures in a procedure call. If a procedure $P$ has two parameters as described in procedure definition: procedure P (var x :integer; y: integer); and if $P$ is called by ; $P(a, b)$ State precisely in a ... $b$ In the generated code for the body of procedure $P$, how will the addressing of formal parameters $x$ and $y$ differ?
A stack is used to pass parameters to procedures in a procedure call.If a procedure $P$ has two parameters as described in procedure definition:procedure P (var x :intege...
2.9k
views
answered
Oct 5, 2017
Compiler Design
gate1993
compiler-design
parameter-passing
runtime-environment
normal
descriptive
+
–
35
votes
12
GATE CSE 2014 Set 1 | Question: 48
Four fair six-sided dice are rolled. The probability that the sum of the results being $22$ is $\dfrac{X}{1296}$. The value of $X$ is _______
Four fair six-sided dice are rolled. The probability that the sum of the results being $22$ is $\dfrac{X}{1296}$. The value of $X$ is _______
8.7k
views
answered
Oct 5, 2017
Probability
gatecse-2014-set1
probability
numerical-answers
normal
+
–
38
votes
13
GATE CSE 1989 | Question: 14a
Symbolize the expression "Every mother loves her children" in predicate logic.
Symbolize the expression "Every mother loves her children" in predicate logic.
5.7k
views
answered
Sep 29, 2017
Mathematical Logic
gate1989
descriptive
first-order-logic
mathematical-logic
+
–
0
votes
14
UGC NET CSE | December 2008 | Part 2 | Question: 33
In a heap, every element is ___________ of all the elements in the subtree. maximum minimum sum product
In a heap, every element is ___________ of all the elements in the subtree.maximum minimum sum product
1.2k
views
answered
Sep 26, 2017
DS
ugcnetcse-dec2008-paper2
data-structures
binary-heap
+
–
0
votes
15
UGC NET CSE | December 2008 | Part 2 | Question: 42
If the executing program size is greater than the existing $RAM$ of a computer, it is still possible to execute the program if the $OS$ supports : multitasking virtual memory paging system none of the above
If the executing program size is greater than the existing $RAM$ of a computer, it is still possible to execute the program if the $OS$ supports :multitasking ...
2.2k
views
answered
Sep 26, 2017
Operating System
ugcnetcse-dec2008-paper2
operating-system
virtual-memory
+
–
0
votes
16
UGC NET CSE | December 2008 | Part 2 | Question: 41
In which of the following, ready to execute processes must be present in $RAM$ ? multiprocessing multiprogramming multitasking all of the above
In which of the following, ready to execute processes must be present in $RAM$ ?multiprocessing multiprogramming multitasking all of the above
1.2k
views
answered
Sep 26, 2017
Operating System
ugcnetcse-dec2008-paper2
operating-system
ram
+
–
0
votes
17
UGC NET CSE | December 2008 | Part 2 | Question: 40
Which of the following $OS$ treats hardware as a file system? $UNIX$ $DOS$ $Windows$ $NT$ None of the above
Which of the following $OS$ treats hardware as a file system?$UNIX$ $DOS$ $Windows$ $NT$ None of the above
2.0k
views
answered
Sep 26, 2017
Operating System
ugcnetcse-dec2008-paper2
operating-system
memory-management
+
–
1
votes
18
UGC NET CSE | December 2008 | Part 2 | Question: 38
In which addressing mode, the effective address of the operand is generated by adding a constant value to the contents of register ? absolute mode immediate mode indirect mode index mode
In which addressing mode, the effective address of the operand is generated by adding a constant value to the contents of register ?absolute mode immediate mode ...
683
views
answered
Sep 26, 2017
CO and Architecture
ugcnetcse-dec2008-paper2
co-and-architecture
addressing-modes
+
–
–1
votes
19
GATE CSE 1990 | Question: 5-b
Show with the help of a block diagram how the Boolean function : $f=AB+BC+CA$ can be realised using only a $4:1$ multiplexer.
Show with the help of a block diagram how the Boolean function :$f=AB+BC+CA$can be realised using only a $4:1$ multiplexer.
4.4k
views
answered
Sep 24, 2017
Digital Logic
gate1990
descriptive
digital-logic
combinational-circuit
multiplexer
+
–
0
votes
20
Generating function
Let $h_n$ denote the number of non-negative integral solutions of the equation $3x_1 + 4x_2 + 2x_3 + 5x_4 = n$ Find the generating function $g(x)$ for $h_0,h_1,h_2,h_3 ... h_n$
Let $h_n$ denote the number of non-negative integral solutions of the equation $3x_1 + 4x_2 + 2x_3 + 5x_4 = n$Find the generating function $g(x)$ for $h_0,h_1,h_2,h_3 ....
687
views
answered
Sep 9, 2017
Combinatory
generating-functions
combinatory
+
–
2
votes
21
output
#include<stdio.h> int main() { float f=5,g=10; enum {i=10,j=20,k=50}; printf("%d\n",++k); printf("%f\n",f<<2); return 0; } a. 5 1 b. 1 0 c. compliation fails d. runtime error can someone explain ???
#include<stdio.h>int main() {float f=5,g=10;enum {i=10,j=20,k=50};printf("%d\n",++k);printf("%f\n",f<<2);return 0;} a. 5 1b. 1 0c. compliation failsd. runtime errorcan so...
417
views
answered
Sep 2, 2017
Programming in C
programming-in-c
+
–
2
votes
22
#first course in probability #sheldon_ross 8th edition Chapter 1 ,question 4
John, Jim, Jay, and Jack have formed a band consisting of 4 instruments. If each of the boys can play all 4 instruments, how many different arrangements are possible? What if John and Jim can play all 4 instruments, but Jay and Jack can each play only piano and drums?
John, Jim, Jay, and Jack have formed a band consisting of 4 instruments. If each of the boys can play all 4 instruments, how many different arrangements are possible? Wha...
750
views
answered
Sep 2, 2017
Probability
combinatory
+
–
1
votes
23
What is the write miss and write hit?
9.4k
views
answered
Aug 31, 2017
CO and Architecture
cache-memory
+
–
0
votes
24
Carl hamacher page number 177
Can anyone who have studied chapter 5 6th edition from Carl hamacher can explain the meaning of this line
Can anyone who have studied chapter 5 6th edition from Carl hamacher can explain the meaning of this line
400
views
answered
Aug 31, 2017
3
votes
25
Probability
In the card game bridge, the 52 cards are dealt out equally to 4 players—called East, West, North, and South. If North and South have a total of 8 spades among them, what is the probability that East has 3 of the remaining 5 spades?
In the card game bridge, the 52 cards are dealt out equally to 4 players—called East,West, North, and South. If North and South have a total of 8 spades among them,what...
2.6k
views
answered
Aug 31, 2017
Probability
probability
engineering-mathematics
conditional-probability
+
–
23
votes
26
GATE CSE 2002 | Question: 2.6, ISRO2008-19
The performance of a pipelined processor suffers if: the pipeline stages have different delays consecutive instructions are dependent on each other the pipeline stages share hardware resources All of the above
The performance of a pipelined processor suffers if:the pipeline stages have different delaysconsecutive instructions are dependent on each otherthe pipeline stages share...
11.4k
views
answered
Aug 30, 2017
CO and Architecture
gatecse-2002
co-and-architecture
pipelining
easy
isro2008
+
–
0
votes
27
programming
main() { int * ptr =(int *) malloc (5*sizeof(int)); for(i=0;i<5;i++) *(ptr+i)=i; pf("%d",*ptr++); pf("%d",(*ptr)++); pf("%d",*ptr1); pf("%d",*++ptr); pf("%d",++*ptr); }
main() { int * ptr =(int *) malloc (5*sizeof(int)); for(i=0;i<5;i++) *(ptr+i)=i; pf("%d",*ptr++); pf("%d",(*ptr)++); pf("%d",*ptr1); pf("%d",*++ptr); pf("%d",++*ptr); }
567
views
answered
Aug 19, 2017
Programming in C
programming-in-c
pointers
+
–
6
votes
28
Modified Binary Search
Suppose the first step in binary search algorithm is changed to M = (9L+R)/10, we know that the complexity of binary search is log(n). What will be the complexity of modified search? a) log(n) b) n c) n$\log 9/10(n)$ d) 2nlog(n)
Suppose the first step in binary search algorithm is changed to M = (9L+R)/10, we know that the complexity of binary search is log(n). What will be the complexity of modi...
1.5k
views
answered
Aug 16, 2017
DS
time-complexity
binary-search
+
–
4
votes
29
Kenneth Rosen Edition 6th Exercise 1.3 Question 24 (Page No. 48 )
Translate in two ways each of these statements into logical expressions using predicates, quantifiers, and logical connectives. First, let the domain consist of the students in your class and second, let it consist of all people. a ... in your class can solve quadratic equations. e) Some student in your class does not want to be rich
Translate in two ways each of these statements into logicalexpressions using predicates, quantifiers, and logicalconnectives. First, let the domain consist of the student...
4.2k
views
answered
Aug 5, 2017
Mathematical Logic
discrete-mathematics
mathematical-logic
kenneth-rosen
+
–
Page:
1
2
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register