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 saxena0612
2
votes
81
UPSC prelim test
A bag contains 20 balls. 8 balls are green, 7 are white and 5 are red. What is the minimum number of balls that must be picked up from the bag blind-folded (without replacing any of it) to be assured of picking atleast one ball of each colour? a) 15 b) 16 c) 17 d)18
A bag contains 20 balls. 8 balls are green, 7 are white and 5 are red. What is the minimum number of balls that must be picked up from the bag blind-folded (without repla...
2.7k
views
answered
Aug 14, 2017
Combinatory
pigeonhole-principle
discrete-mathematics
+
–
0
votes
82
Stack life
Let S be a stack size of 4>=1 and it is initially empty.Suppose we push the numbers 1,2,3,4 and then perform 4 pop operations.Let one push operation takes 5ns; one pop operation takes 5ns; the time between the end of one such stack operation and start of next operation is 2ns. ... ) from the stack.The average stack life of an element of this stack is........................(in ns).
Let S be a stack size of 4>=1 and it is initially empty.Suppose we push the numbers 1,2,3,4 and then perform 4 pop operations.Let one push operation takes 5ns; one pop op...
964
views
answered
Aug 8, 2017
Programming in C
data-structures
stack
+
–
0
votes
83
explain the output please.
#include <stdio.h> #include <string.h> void fun(char *arr) { int i; unsigned int n = sizeof(arr); printf("n = %d\n", n); for (i=0; i<n; i++) printf("%c ", arr[i]); } // Driver program int main() { char arr[] = {'k', 'h', 'u', 's', 'h', 'a', 'l'}; fun(arr); return 0; }
#include <stdio.h>#include <string.h>void fun(char *arr){int i;unsigned int n = sizeof(arr);printf("n = %d\n", n);for (i=0; i<n; i++) printf("%c ", arr[i]);}// Driver pro...
1.6k
views
answered
Aug 6, 2017
Programming in C
programming-in-c
+
–
0
votes
84
check this :)
can anyone tell me difference between dense and sparse matrix :))
can anyone tell me difference between dense and sparse matrix :))
439
views
answered
Aug 5, 2017
1
votes
85
Morris Mano exercise 1.6
The solution to the quadratic equation x^2-11x+22=0 are x=3 and x=6. What is the base of the numbers?
The solution to the quadratic equationx^2-11x+22=0 are x=3 and x=6. What is the base of the numbers?
6.7k
views
answered
Aug 3, 2017
3
votes
86
Probability
A box contains 4 red balls and 6 black balls .Three balls are selected randomly from the box one after another without replacement .The probability that the selected set contains one red ball and two black ball is A)1/20 B) 1/12 C) 3/10 D)1/2
A box contains 4 red balls and 6 black balls .Three balls are selected randomly from the box one after another without replacement .The probability that the selected set ...
2.3k
views
answered
Aug 2, 2017
Mathematical Logic
probability
engineering-mathematics
discrete-mathematics
+
–
1
votes
87
Probability
Consider the experiment of throwing a die, if a multiple of 3 comes up, throw the die again and if any other number comes, toss a coin. Find the conditional probability of the event ‘the coin shows a tail’, given that ‘at least one die shows a 3’
Consider the experiment of throwing a die, if a multiple of 3 comes up, throw thedie again and if any other number comes, toss a coin. Find the conditional probabilityof ...
572
views
answered
Aug 2, 2017
1
votes
88
SELF MADE
10 distinct accident occurs in a week.What is the probability that all accidents occured on the same day ?
10 distinct accident occurs in a week.What is the probability that all accidents occured on the same day ?
504
views
answered
Aug 2, 2017
0
votes
89
Asymptotic time complexity
If f(n)=O(g(n)). && g(n) != O(f(n)) g(n) = O(h(n)). && h(n) = O(g(n)) Check following statement are true/false? 1. f(n)+h(n)=theta(g(n)) 2. f(n)*h(n)=theta(g(n)*h(n)) 3. g(n)*f(n)=big omega(h(n)*f(n)) 4. h(n)+g(n) = O(f(n))
If f(n)=O(g(n)). && g(n) != O(f(n))g(n) = O(h(n)). && h(n) = O(g(n))Check following statement are true/false?1. f(n)+h(n)=theta(g(n))2. f(n)*h(n)=theta(g(n)*h(n))3. g...
548
views
answered
Aug 2, 2017
Algorithms
algorithms
asymptotic-notation
+
–
1
votes
90
Kenneth Rosen Edition 6th Exercise 7.4 Example 2 (Page No. 489)
Hi, following is a question from Kenneth H. Rosen : Find the smallest relation containing the relation R ={(a, b) | a>b} that is both reflexive and symmetric? The online solution given to the above problem ... closure(which should be reflexive and symmetric) of the given relation? Can someone please help me understand this question?
Hi, following is a question from Kenneth H. Rosen :Find the smallest relation containing the relation R ={(a, b) | a>b} that is both reflexive and symmetric?The online s...
938
views
answered
Aug 2, 2017
Set Theory & Algebra
kenneth-rosen
discrete-mathematics
set-theory&algebra
set-theory
+
–
1
votes
91
Algo cormen Time complexity
T(n)= C+T(n-1), if n>1 = d, if n≤ 1 What is tme complexity?
T(n)= C+T(n-1), if n>1= d, if n≤ 1 What is tme complexity?
400
views
answered
Aug 1, 2017
Algorithms
recurrence-relation
cormen
+
–
1
votes
92
bitwise shift operator
Please tell the output ! With explanation.. #include<stdio.h> int main() { printf("%d", 2<<2>>2); printf("\n%d", 2>>2<<2<<(1<<1)); return 0; }
Please tell the output ! With explanation..#include<stdio.h>int main(){ printf("%d", 2<<2>>2); printf("\n%d", 2>>2<<2<<(1<<1)); return 0;}
4.1k
views
answered
Jul 31, 2017
5
votes
93
Seldon Ross
How many 5 digit numbers can be formed from the integers 1,2......9 if no digit can appear more than twice?
How many 5 digit numbers can be formed from the integers 1,2......9 if no digit can appear more than twice?
860
views
answered
Jul 30, 2017
Combinatory
combinatory
+
–
3
votes
94
input-Output
main ( ) { int a = 2, b, c; a* = b = c = 4; a = b = c; printf (“%d”, a); a = = (b = c); printf (“%d”, a); } What will be the output? Not able to understand !!
main ( ){int a = 2, b, c;a* = b = c = 4;a = b = c;printf (“%d”, a);a = = (b = c);printf (“%d”, a);}What will be the output?Not able to understand !!
736
views
answered
Jul 29, 2017
Programming in C
programming-in-c
output
+
–
0
votes
95
One to one function
Following is the way of checking the one to one function or Can i use bi implication in between these?If not,then why?
Following is the way of checking the one to one functionorCan i use bi implication in between these?If not,then why?
793
views
answered
Jul 27, 2017
Mathematical Logic
functions
+
–
3
votes
96
Pointer Casting
Analyze what is happening and why? int *ptr=(int*)0X12341230; int *ptr2=((int*)(((char*)ptr)+1)); char *ptr=(char*) 0X12341230; void *ptr2=ptr+1;
Analyze what is happening and why?int *ptr=(int*)0X12341230; int *ptr2=((int*)(((char*)ptr)+1));char *ptr=(char*) 0X12341230; void *ptr2=ptr+1;
418
views
answered
Jul 27, 2017
Programming in C
programming-in-c
programming
pointers
+
–
1
votes
97
algorithm
A binary search algorithm is implemented using recurrsion then what is the space and time complexity?
A binary search algorithm is implemented using recurrsionthen what is the space and time complexity?
415
views
answered
Jul 26, 2017
Algorithms
binary-search
recursion
space-complexity
time-complexity
+
–
0
votes
98
basic C doubt
What is difference between declaration and definition ...in c ? please explain with examples
What is difference between declaration and definition ...in c ?please explain with examples
351
views
answered
Jul 24, 2017
1
votes
99
C programme (OUTpUT ??)
Please tell the output with explanation! #include<stdio.h> int main() { int a,b; printf("%d ",12); printf("%d ",143); printf("%d ",scanf("%d%d",&a,&b)); }
Please tell the output with explanation!#include<stdio.h>int main(){int a,b;printf("%d ",12);printf("%d ",143);printf("%d ",scanf("%d%d",&a,&b));}
447
views
answered
Jul 18, 2017
0
votes
100
Testbook testseries
521
views
answered
Jul 10, 2017
Page:
« prev
1
2
3
4
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register