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
Answers by mcjoshi
6
votes
1
const pointer
The output of below code is_______________. int main() { int i = 120; int *a = &i; foo(&a); printf("%d ", *a); printf("%d ", *a); } void foo(int **const a) { int j = 210; *a = &j; printf("%d ", **a); }
The output of below code is_______________. int main() { int i = 120; int *a = &i; foo(&a); printf("%d ", *a); printf("%d ", *a); } void foo(int const a) { int j = 210; ...
759
views
answered
Jun 14, 2017
Programming in C
programming-in-c
const
+
–
80
votes
2
GATE CSE 2017 Set 2 | Question: 24
Consider the quadratic equation $x^2-13x+36=0$ with coefficients in a base $b$. The solutions of this equation in the same base $b$ are $x=5$ and $x=6$. Then $b=$ _____
Consider the quadratic equation $x^2-13x+36=0$ with coefficients in a base $b$. The solutions of this equation in the same base $b$ are $x=5$ and $x=6$. Then $b=$ _____
14.4k
views
answered
Feb 27, 2017
Set Theory & Algebra
gatecse-2017-set2
polynomials
numerical-answers
set-theory&algebra
+
–
101
votes
3
GATE CSE 2017 Set 2 | Question: GA-8
$X$ is a $30$ digit number starting with the digit $4$ followed by the digit $7$. Then the number $X^3$ will have $90$ digits $91$ digits $92$ digits $93$ digits
$X$ is a $30$ digit number starting with the digit $4$ followed by the digit $7$. Then the number $X^3$ will have$90$ digits$91$ digits$92$ digits$93$ digits
11.6k
views
answered
Feb 14, 2017
Quantitative Aptitude
gatecse-2017-set2
quantitative-aptitude
numerical-computation
number-representation
+
–
100
votes
4
GATE CSE 2017 Set 2 | Question: GA-9
The number of roots of $e^{x}+0.5x^{2}-2=0$ in the range $[-5,5]$ is $0$ $1$ $2$ $3$
The number of roots of $e^{x}+0.5x^{2}-2=0$ in the range $[-5,5]$ is$0$$1$$2$$3$
13.0k
views
answered
Feb 14, 2017
Quantitative Aptitude
gatecse-2017-set2
quantitative-aptitude
normal
maxima-minima
calculus
+
–
53
votes
5
GATE CSE 2017 Set 2 | Question: 22
Let $P = \begin{bmatrix}1 & 1 & -1 \\2 & -3 & 4 \\3 & -2 & 3\end{bmatrix}$ and $Q = \begin{bmatrix}-1 & -2 &-1 \\6 & 12 & 6 \\5 & 10 & 5\end{bmatrix}$ be two matrices. Then the rank of $ P+Q$ is ___________ .
Let $P = \begin{bmatrix}1 & 1 & -1 \\2 & -3 & 4 \\3 & -2 & 3\end{bmatrix}$ and $Q = \begin{bmatrix}-1 & -2 &-1 \\6 & 12 & 6 \\5 & 10 & 5\end{bmatrix}$ be two matrices.Th...
11.9k
views
answered
Feb 14, 2017
Linear Algebra
gatecse-2017-set2
linear-algebra
eigen-value
numerical-answers
+
–
96
votes
6
GATE CSE 2017 Set 2 | Question: 47
If the ordinary generating function of a sequence $\left \{a_n\right \}_{n=0}^\infty$ is $\large \frac{1+z}{(1-z)^3}$, then $a_3-a_0$ is equal to ___________ .
If the ordinary generating function of a sequence $\left \{a_n\right \}_{n=0}^\infty$ is $\large \frac{1+z}{(1-z)^3}$, then $a_3-a_0$ is equal to ___________ .
17.7k
views
answered
Feb 14, 2017
Combinatory
gatecse-2017-set2
combinatory
generating-functions
numerical-answers
normal
+
–
71
votes
7
GATE CSE 2017 Set 2 | Question: 52
If the characteristic polynomial of a $3 \times 3$ matrix $M$ over $\mathbb{R}$ (the set of real numbers) is $\lambda^3 – 4 \lambda^2 + a \lambda +30, \quad a \in \mathbb{R}$, and one eigenvalue of $M$ is $2,$ then the largest among the absolute values of the eigenvalues of $M$ is _______
If the characteristic polynomial of a $3 \times 3$ matrix $M$ over $\mathbb{R}$ (the set of real numbers) is $\lambda^3 – 4 \lambda^2 + a \lambda +30, \quad a \in \ma...
15.6k
views
answered
Feb 14, 2017
Linear Algebra
gatecse-2017-set2
engineering-mathematics
linear-algebra
numerical-answers
eigen-value
+
–
52
votes
8
GATE CSE 2017 Set 2 | Question: 53
Consider a machine with a byte addressable main memory of $2^{32}$ bytes divided into blocks of size $32$ bytes. Assume that a direct mapped cache having $512$ cache lines is used with this machine. The size of the tag field in bits is _______
Consider a machine with a byte addressable main memory of $2^{32}$ bytes divided into blocks of size $32$ bytes. Assume that a direct mapped cache having $512$ cache line...
9.5k
views
answered
Feb 14, 2017
CO and Architecture
gatecse-2017-set2
co-and-architecture
cache-memory
numerical-answers
+
–
75
votes
9
GATE CSE 2017 Set 2 | Question: 23
$G$ is an undirected graph with $n$ vertices and $25$ edges such that each vertex of $G$ has degree at least $3$. Then the maximum possible value of $n$ is _________ .
$G$ is an undirected graph with $n$ vertices and $25$ edges such that each vertex of $G$ has degree at least $3$. Then the maximum possible value of $n$ is _________ .
17.6k
views
answered
Feb 14, 2017
Graph Theory
gatecse-2017-set2
graph-theory
numerical-answers
degree-of-graph
+
–
66
votes
10
GATE CSE 2017 Set 2 | Question: 51
Consider the set of process with arrival time (in milliseonds), CPU burst time (in millisecods) and priority ($0$ ... The average waiting time (in milli seconds) of all the process using premtive priority scheduling algorithm is ______
Consider the set of process with arrival time (in milliseonds), CPU burst time (in millisecods) and priority ($0$ is the highest priority) shown below. None of the proce...
13.1k
views
answered
Feb 14, 2017
Operating System
gatecse-2017-set2
operating-system
process-scheduling
numerical-answers
+
–
5
votes
11
TesT series question
what is the remainder when 4^250 is divided by 14 2^500 /14 = 2^499 / 7 Applying fermats theorem 2^6 mod 7 =1 (2^498 * 2 ) / 7 = remainder should be 2 is it correct???
what is the remainder when 4^250 is divided by 142^500 /14 = 2^499 / 7 Applying fermats theorem 2^6 mod 7 =1 (2^498 * 2 ) / 7 = remainder should be 2 is i...
845
views
answered
Jan 31, 2017
Quantitative Aptitude
computer-networks
easy
+
–
18
votes
12
GATE2016 EC-2: GA-10
A wire of length $340$ mm is to be cut into two parts. One of the parts is to be made into a square and the other into a rectangle where sides are in the ratio of $1:2$. What is the length of the side of the square (in mm) such that the combined area of the square and the rectangle is a MINIMUM? $30$ $40$ $120$ $180$
A wire of length $340$ mm is to be cut into two parts. One of the parts is to be made into a square and the other into a rectangle where sides are in the ratio of $1:2$. ...
5.1k
views
answered
Jan 22, 2017
Quantitative Aptitude
gate2016-ec-2
geometry
quantitative-aptitude
+
–
5
votes
13
Compiler Design
How to do this type of QUESTIONS? Consider following grammar : S → S1 + A | A A → D – A | D D → D1 * B | B B → num The number of internal nodes for the parse tree for 5 * 4 + 10 * 6 – 7 – 8
How to do this type of QUESTIONS?Consider following grammar : S → S1 + A | A A → D – A | D D → D1 * B | B B → num The number of internal nodes for the parse tre...
2.8k
views
answered
Jan 18, 2017
Compiler Design
compiler-design
grammar
parsing
numerical-answers
+
–
2
votes
14
Digital Logic
Realize (1) 0 (2) 1 (3) Z (4) XZ Your Answer: 3 Correct Answer: 4 Status: incorrect
Realize(1)0(2)1(3)Z(4)XZ Your Answer:3Correct Answer: 4 Status: incorrect
304
views
answered
Jan 18, 2017
Digital Logic
digital-logic
multiplexer
+
–
2
votes
15
Compiler Design #2
Consider translation rules : S → S1 * A {S. Val = S1. Val + A. Val} /A {S. Val = A. Val} A → A1 – B {A. Val = A1. Val – B. Val} /B {A. Val = B. Val} B → C | B1 {B. Val = C. Val / B1. Val} /C {B. Val = C. Val} C → id {C. Val = Id. Val} Let say output for input 8/4 * 2 – 6 * 4 is a1 and output for input 6 * 2 / 1 – 2 * 3 is a2, then a1 – a2 is ___________.
Consider translation rules : S → S1 * A{S. Val = S1. Val + A. Val}/A{S. Val = A. Val}A → A1 – B{A. Val = A1. Val – B. Val}/B{A. Val = B. Val}B → C | B1{B. Val =...
775
views
answered
Jan 18, 2017
Compiler Design
compiler-design
syntax-directed-translation
expression-evaluation
numerical-answers
+
–
3
votes
16
Gate 2016 AG
The sum of the digits of a two digit number is 12. If the new number formed by reversing the digits is greater than the original number by 54, find the original number. (A) 39 (B) 57 (C) 66 (D) 93
The sum of the digits of a two digit number is 12. If the new number formed by reversing the digits is greater than the original number by 54, find the original number.(A...
454
views
answered
Jan 18, 2017
6
votes
17
No of Candidate key
Given relation R(A, B, C, D, E) and set of functional dependencies F = {AB → C, AB → D, D → A, BC → D, BC → E} Number of candidate key in the following relation have?
Given relation R(A, B, C, D, E) and set of functional dependencies F = {AB → C, AB → D, D → A, BC → D, BC → E}Number of candidate key in the following relatio...
2.5k
views
answered
Jan 18, 2017
Databases
databases
candidate-key
+
–
7
votes
18
Graph Theory
Let G be a undirected graph with 35 edges and degree of each vertex is at least 3 then maximum number of vertices possible in G is (A) 22 (B) 23 (C) 24 (D) 25 P.S. Explain with ease, if possible!
Let G be a undirected graph with 35 edges and degree of each vertex is at least 3 then maximum number of vertices possible in G is(A) 22(B) 23(C) 24(D) 25P.S. Explain wit...
860
views
answered
Jan 18, 2017
Graph Theory
graph-theory
engineering-mathematics
discrete-mathematics
+
–
2
votes
19
Testbook Test Series: Digital Logic - Xor
Q,R,S are true for sure but how p is true ???
Q,R,S are true for sure but how p is true ???
1.5k
views
answered
Jan 18, 2017
Digital Logic
testbook-test-series
test-series
digital-logic
digital-circuits
+
–
4
votes
20
testbook test series
1.4k
views
answered
Jan 15, 2017
Operating System
disk-scheduling
+
–
8
votes
21
test book test
46 bit Virtual addressing system uses 3 level paging. The page table entry is 32 bits. Size of Page Table is equal to 1 page. The processor uses 1 MB, 16 way set associative cache with 64 block. What is the size of Page Table? a) 2KB b) 4KB c) 8KB d) 16KB
46 bit Virtual addressing system uses 3 level paging. The page table entry is 32 bits. Size of Page Table is equal to 1 page. The processor uses 1 MB, 16 way set associat...
1.2k
views
answered
Jan 15, 2017
8
votes
22
Minimum states in DFA
Number of final states in minimal DFA where $\sum = \{ a,b \}$ $L = \{ w| n_a(w)mod\ 3 \geq n_b(w)mod\ 2\}$
Number of final states in minimal DFA where $\sum = \{ a,b \}$$L = \{ w| n_a(w)mod\ 3 \geq n_b(w)mod\ 2\}$
1.7k
views
answered
Jan 10, 2017
Theory of Computation
theory-of-computation
minimal-state-automata
finite-automata
+
–
1
votes
23
MadeEasy Subject Test: Theory of Computation - Identify Class Language
501
views
answered
Jan 8, 2017
Theory of Computation
made-easy-test-series
theory-of-computation
identify-class-language
+
–
5
votes
24
Gate1993 ECE
A pulse train with a 1 MHz frequency is counted using a 1024 modulus ripple counter using JK flip-flops. The maximum propagation delay for each flip-flop is ________ nsec.
A pulse train with a 1 MHz frequency is counted using a 1024 modulus ripple counter using JK flip-flops. The maximum propagation delay for each flip-flop is ________ nsec...
1.6k
views
answered
Jan 8, 2017
Digital Logic
digital-logic
+
–
6
votes
25
#digital#counter
I have read somewhere that J-K flip-flop used as divide by 2 frequency counter is it true ?? if not how to solve given problem??
I have read somewhere that J-K flip-flop used as divide by 2 frequency counter is it true ??if not how to solve given problem??
914
views
answered
Jan 8, 2017
6
votes
26
MATCHING NUMBER
what is the matching number of $K_{2,3}$ graph.and also explain matching number of $K_{m,n}$(simplification).
what is the matching number of $K_{2,3}$ graph.and also explain matching number of $K_{m,n}$(simplification).
410
views
answered
Dec 31, 2016
Graph Theory
graph-theory
graph-matching
+
–
37
votes
27
Find the number of integral solutions using generating function
Find the number of integral solutions of $\large 2x + y + z = 20$ with $x, y, z >= 0$ ? I tried finding coefficient of $x^{20}$ in $(1 + x^2 + x^3 + ...... + x^{10})(1+ x^2 + .......... + x^{20})^2$, but it gives wrong answer ?
Find the number of integral solutions of $\large 2x + y + z = 20$ with $x, y, z >= 0$ ?I tried finding coefficient of $x^{20}$ in $(1 + x^2 + x^3 + ...... + x^{10})(1+ x^...
9.1k
views
answered
Dec 31, 2016
Combinatory
combinatory
combinational-circuit
generating-functions
+
–
5
votes
28
Recurrance Relation - Recursion Tree
On solving the Recurance T(n) = 3T(n/4) + cn2 I was stuck at summation $\sum_{i=0}^{log_4 n} (\frac{3}{16})^{i} cn^{2}$ Can someone could help ?
On solving the RecuranceT(n) = 3T(n/4) + cn2I was stuck at summation$\sum_{i=0}^{log_4 n} (\frac{3}{16})^{i} cn^{2}$Can someone could help ?
1.2k
views
answered
Dec 31, 2016
Algorithms
algorithms
recurrence-relation
+
–
2
votes
29
Mux output
562
views
answered
Dec 22, 2016
Digital Logic
digital-logic
+
–
6
votes
30
Solve the Recurrence
Solve the Following Recurrence using Back Substitution Master Theorem $T(n)=T(\sqrt{n})+n+c$ Using Master Theorem Using Master Theorem, put n = $2^{m}$ $ T(n)=T(2^{m})= S(m)$ ie $T(\sqrt{n}) = S(\frac{m}{2})$ ... How to proceed further... ?
Solve the Following Recurrence usingBack SubstitutionMaster Theorem$T(n)=T(\sqrt{n})+n+c$ Using Master TheoremUsing Master Theorem,put n = $2^{m}$$ T(n)=T(2^{m})= S(m)$ i...
1.1k
views
answered
Dec 22, 2016
Algorithms
algorithms
recurrence-relation
+
–
Page:
1
2
3
4
5
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register