Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Salman
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Recent activity by Salman
6
answers
1
GATE CSE 2012 | Question: 35
Suppose a circular queue of capacity $(n −1)$ elements is implemented with an array of $n$ elements. Assume that the insertion and deletion operations are carried out using REAR and FRONT as array index variables, respectively. Initially, $REAR = FRONT = 0$. The conditions to detect ... : $(REAR+1) \mod n == FRONT$ full: $(FRONT+1) \mod n == REAR$ empty: $REAR == FRONT$
Suppose a circular queue of capacity $(n −1)$ elements is implemented with an array of $n$ elements. Assume that the insertion and deletion operations are carried out u...
24.0k
views
commented
Feb 4, 2016
DS
gatecse-2012
data-structures
queue
normal
+
–
6
answers
2
GATE CSE 2004 | Question: 3
A single array $A[1 \ldots \text{MAXSIZE}]$ is used to implement two stacks. The two stacks grow from opposite ends of the array. Variables $top1$ and $top2$ $(top1 < top 2)$ point to the location of the topmost element in each of the stacks. If the space is to ... $(top1 = \text{MAXSIZE} / 2)$ or $(top2 = \text{MAXSIZE})$ $top1 = top2 - 1$
A single array $A[1 \ldots \text{MAXSIZE}]$ is used to implement two stacks. The two stacks grow from opposite ends of the array. Variables $top1$ and $top2$ $(top1 < top...
35.1k
views
commented
Feb 4, 2016
DS
gatecse-2004
data-structures
stack
easy
+
–
6
answers
3
GATE IT 2006 | Question: 50
Which one of the choices given below would be printed when the following program is executed? #include <stdio.h> void swap (int *x, int *y) { static int *temp; temp = x; x = y; y = temp; } void printab () { static int i, a = -3, b = -6; i = 0; while (i <= 4) { if ((i++)%2 == 1 ... $a = 12, b = 9$ $a = 3, b = 6$ $a = 3, b = 6$ $a = 6, b = 3$ $a = 15, b = 12$
Which one of the choices given below would be printed when the following program is executed?#include <stdio.h void swap (int *x, int *y) { static int *temp; temp = x; x ...
25.3k
views
comment edited
Jan 24, 2016
Programming in C
gateit-2006
programming
programming-in-c
normal
parameter-passing
+
–
6
answers
4
GATE IT 2006 | Question: 49
Which one of the choices given below would be printed when the following program is executed ? #include <stdio.h> struct test { int i; char *c; }st[] = {5, "become", 4, "better", 6, "jungle", 8, "ancestor", 7, " ... $\text{etter, u, 6, ungle}$ $\text{cetter, k, 6, jungle}$ $\text{etter, u, 8, ncestor}$
Which one of the choices given below would be printed when the following program is executed ?#include <stdio.h struct test { int i; char *c; }st[] = {5, "become", 4, "be...
26.9k
views
answered
Jan 24, 2016
Programming in C
gateit-2006
programming
programming-in-c
normal
structure
+
–
11
answers
5
GATE CSE 2015 Set 3 | Question: 26
Consider the following C program #include<stdio.h> int main() { static int a[] = {10, 20, 30, 40, 50}; static int *p[] = {a, a+3, a+4, a+1, a+2}; int **ptr = p; ptr++; printf("%d%d", ptr-p, **ptr); } The output of the program is _______.
Consider the following C program#include<stdio.h int main() { static int a[] = {10, 20, 30, 40, 50}; static int *p[] = {a, a+3, a+4, a+1, a+2}; int ptr = p; ptr++; print...
22.3k
views
answered
Jan 23, 2016
Programming in C
gatecse-2015-set3
programming
programming-in-c
normal
numerical-answers
pointers
+
–
5
answers
6
GATE CSE 2014 Set 2 | Question: 45
The value of a $\text{float}$ type variable is represented using the single-precision $\text{32-bit}$ floating point format of $\text{IEEE-754}$ standard that uses $1$ $\text{bit}$ for sign, $\text{8 bits}$ for biased exponent and ... . The representation of $X$ in hexadecimal notation is $\text{C1640000H}$ $\text{416C0000H}$ $\text{41640000H}$ $\text{C16C0000H}$
The value of a $\text{float}$ type variable is represented using the single-precision $\text{32-bit}$ floating point format of $\text{IEEE-754}$ standard that uses $1$ $\...
11.1k
views
commented
Jan 10, 2016
Digital Logic
gatecse-2014-set2
digital-logic
number-representation
normal
ieee-representation
+
–
4
answers
7
GATE2011 AG: GA-9
The fuel consumed by a motorcycle during a journey while traveling at various speeds is indicated in the graph below. The distances covered during four laps of the journey are listed in the table below ... the given data, we can conclude that the fuel consumed per kilometre was least during the lap $P$ $Q$ $R$ $S$
The fuel consumed by a motorcycle during a journey while traveling at various speeds is indicated in the graph below.The distances covered during four laps of the journey...
3.9k
views
commented
Jan 10, 2016
Quantitative Aptitude
general-aptitude
quantitative-aptitude
gate2011-ag
data-interpretation
graphical-data
+
–
1
answer
8
idea of this passage
309
views
answered
Jan 10, 2016
Verbal Aptitude
verbal-aptitude
+
–
1
answer
9
Edge type in Undirected Graphs on Depth First Tree
Assume WHITE vertices that are yet to be discovered, BLACK vertices are finished vertices and GRAY vertices are frontier betweeen WHITE and BLACK in Depth First Search. Now, What are the various edge types like TREE-EDGE and BACK-EDGE possible between ... edge type between WHITE and GRAY type vertices. [ CLRS (3rd Edition) : 22-3:1; Page # 610 ]
Assume WHITE vertices that are yet to be discovered, BLACK vertices are finished vertices and GRAY vertices are frontier betweeen WHITE and BLACK in Depth First Search.No...
559
views
answered
Oct 22, 2015
Algorithms
graph-algorithms
depth-first-search
+
–
4
answers
10
logic
Translate each of these statements into logical expressions using predicates, quantifiers, and logical connectives. a) No one is perfect. b) Not everyone is perfect. c) All your friends are perfect. d) At least one of your friends is perfect.
Translate each of these statements into logical expressionsusing predicates, quantifiers, and logical connectives.a) No one is perfect.b) Not everyone is perfect.c) All y...
12.0k
views
commented
Sep 2, 2015
3
answers
11
GATE CSE 1993 | Question: 18
Show that proposition $C$ is a logical consequence of the formula$A\wedge \left(A \to \left(B \vee C\right)\right) \wedge \left( B \to \neg A\right)$using truth tables.
Show that proposition $C$ is a logical consequence of the formula$$A\wedge \left(A \to \left(B \vee C\right)\right) \wedge \left( B \to \neg A\right)$$using truth tables....
3.1k
views
answered
Sep 1, 2015
Mathematical Logic
gate1993
mathematical-logic
normal
propositional-logic
proof
descriptive
+
–
2
answers
12
maths_mocktest1_12
A. 1 B. 2 C. 3 D. 4
A. 1B. 2C. 3D. 4
826
views
answered
Aug 6, 2015
Calculus
calculus
+
–
4
answers
13
Limits
What is $\lim_{ x \to 0} (1-x)^{\frac{1}{x}}$ ? Also please explain the result?
What is $\lim_{ x \to 0} (1-x)^{\frac{1}{x}}$ ? Also please explain the result?
2.7k
views
commented
Aug 6, 2015
Calculus
calculus
limits
+
–
3
answers
14
limit
limx->0 (cot x)1/logx ? ans: 0(m getting 1/e)
limx->0 (cot x)1/logx ?ans: 0(m getting 1/e)
3.3k
views
answered
Aug 5, 2015
3
answers
15
Calculate the limit
$\lim_{x \to 0} \frac{\cos(x)-\log(1+x)-1+x}{\sin^2x} = ? $ Please explain the steps also
$$\lim_{x \to 0} \frac{\cos(x)-\log(1+x)-1+x}{\sin^2x} = ? $$Please explain the steps also
890
views
commented
Aug 5, 2015
Calculus
calculus
limits
+
–
3
answers
16
calculate limit
$\lim_{x\rightarrow \infty }\left(4^{x}+5^{x}\right)^{1/x}$
$\lim_{x\rightarrow \infty }\left(4^{x}+5^{x}\right)^{1/x}$
829
views
commented
Aug 4, 2015
Calculus
calculus
limits
+
–
3
answers
17
calculate limit
$\lim_{x\rightarrow \frac{\pi}{2}}{( \sin x)}^{\tan x}$
$\lim_{x\rightarrow \frac{\pi}{2}}{( \sin x)}^{\tan x}$
753
views
answered
Aug 3, 2015
Calculus
calculus
limits
+
–
2
answers
18
calculate limit
$\lim_{x\rightarrow \frac{\pi}{4}} (\tan x)^{\tan 2x}$
$\lim_{x\rightarrow \frac{\pi}{4}} (\tan x)^{\tan 2x}$
398
views
answered
Aug 3, 2015
Calculus
calculus
limits
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register