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 air1
1
votes
1
Calculation
#how to calulate this my results is not coming correct #??
#how to calulate this my results is not coming correct #??
230
views
answered
Jan 21, 2017
2
votes
2
MADE EASY TEST SERIES
What is the output of the following program?
What is the output of the following program?
420
views
answered
Jan 21, 2017
5
votes
3
Testbook Test Series 2017: Calculus - Functions
The function defined for positive integers by $F\left ( 1 \right )=1 F\left ( 2 \right )=1 F\left ( 3 \right )=-1$ and by identites $F\left ( 2k \right )=F\left ( k \right ), F\left ( 2k+1 \right )=F\left ( k \right ) for\; k>=2$ ... is___ ??
The function defined for positive integers by$F\left ( 1 \right )=1 F\left ( 2 \right )=1 F\left ( 3 \right )=-1$and by identites$F\left ( 2k \right )=F\left ( k \right )...
989
views
answered
Jan 16, 2017
Calculus
testbook-test-series
engineering-mathematics
calculus
functions
+
–
41
votes
4
GATE CSE 2015 Set 3 | Question: 5
The number of $4$ digit numbers having their digits in non-decreasing order (from left to right) constructed by using the digits belonging to the set $\{1, 2, 3\}$ is ________.
The number of $4$ digit numbers having their digits in non-decreasing order (from left to right) constructed by using the digits belonging to the set $\{1, 2, 3\}$ is ___...
15.6k
views
answered
Jan 14, 2017
Combinatory
gatecse-2015-set3
combinatory
normal
numerical-answers
+
–
3
votes
5
Probability
2 friends Alice and Bob have found an unfair coin,It has 72% chance of coming up heads.Alice and Bob plays a game with this coin.If coin comes up head then tails,Alice wins.If it's reverse(tails,then heas),Bob wins.And if neither of those two things happens,the game restarts and continues untill there is a winner What is Bob's probability of winning?
2 friends Alice and Bob have found an unfair coin,It has 72% chance of coming up heads.Alice and Bob plays a game with this coin.If coin comes up head then tails,Alice wi...
1.9k
views
answered
Jan 12, 2017
Mathematical Logic
probability
engineering-mathematics
+
–
9
votes
6
test series counting
The number of pairs of set (X, Y) are there that satisfy the condition X, Y ⊆ {1, 2, 3, 4, 5, 6} and X ∩ Y = Φ ________.
The number of pairs of set (X, Y) are there that satisfy the condition X, Y ⊆ {1, 2, 3,4, 5, 6} and X ∩ Y = Φ ________.
740
views
answered
Jan 3, 2017
Combinatory
counting
combinatory
+
–
2
votes
7
Test Series
Assume that A be an array of 16 elements. What is the difference between maximum number of inversion and minimum number of inversion for the array with 16 elements?
Assume that A be an array of 16 elements. What is the difference between maximum number of inversion and minimum number of inversion for the array with 16 elements?
850
views
answered
Dec 22, 2016
Algorithms
algorithms
test-series
maximum-minimum
array
+
–
3
votes
8
Testbook
In how many ways 10 different books can be distributed among there students A, B and C such that A must be given at least 1 book?
In how many ways 10 different books can be distributed among there students A, B and C such that A must be given at least 1 book?
657
views
answered
Dec 21, 2016
3
votes
9
C programming
#include <stdio.h> #define PRINT(i, limit) while (i < limit) \ { \ printf("GeeksQuiz "); \ i++; \ } \ int main() { int i = 0; PRINT(i, 3); return 0; } // Output: GeeksQuiz GeeksQuiz GeeksQuiz
#include <stdio.h #define PRINT(i, limit) while (i < limit) \ { \ printf("GeeksQuiz "); \ ...
526
views
answered
Dec 20, 2016
7
votes
10
Expected value
in C language rand() returns a random integer number. Following is a function definition. int f() { return (rand() & 1) ? 1:0; } Then what will be the expected value of count ? count = 0; for(i=1;i<=n;i++) { if(f() && f()) { count++; } } & is bitwise AND && is logical AND and assume required seed has been initialized.
in C language rand() returns a random integer number. Following is a function definition.int f() { return (rand() & 1) ? 1:0; }Then what will be the expected value of co...
664
views
answered
Dec 18, 2016
Probability
expectation
probability
programming-in-c
+
–
3
votes
11
Probability
Let there be a string of 10 bits generated uniformly at random (each bit could be 0 or 1 with equal probability). What is the expected number of appearances of a substring 011 in this string?
Let there be a string of 10 bits generated uniformly at random (each bit could be 0 or 1 with equal probability). What is the expected number of appearances of a substrin...
717
views
answered
Nov 17, 2016
Probability
probability
expectation
+
–
5
votes
12
connected components
679
views
answered
Nov 13, 2016
Programming in C
graph-theory
data-structures
+
–
0
votes
13
Graph
consider G is an undirected simple graph in which
consider G is an undirected simple graph in which
421
views
answered
Nov 12, 2016
Graph Theory
graph-theory
graph-connectivity
+
–
2
votes
14
Binary Search Tree
Given a binary search tree and a number ‘x’. What is the best time complexity to find the sum of two numbers in an array is equal to given number x?
Given a binary search tree and a number ‘x’. What is the best time complexity to find the sum of two numbers in an array is equal to given number x?
481
views
answered
Nov 9, 2016
DS
time-complexity
binary-search-tree
+
–
15
votes
15
GATE CSE 1987 | Question: 1-xxi
If $a, b,$ and $c$ are constants, which of the following is a linear inequality? $ax+bcy=0$ $ax^{2}+cy^{2}=21$ $abx+a^{2}y \geq 15$ $xy+ax \geq 20$
If $a, b,$ and $c$ are constants, which of the following is a linear inequality?$ax+bcy=0$$ax^{2}+cy^{2}=21$$abx+a^{2}y \geq 15$$xy+ax \geq 20$
4.0k
views
answered
Nov 8, 2016
Linear Algebra
gate1987
linear-algebra
inequality
out-of-gate-syllabus
+
–
1
votes
16
Programming
In the following C program fragment, j, k, n and TwoLog_n are integer variables, and A is an array of integers. The variable n is initialized to an integer ≥ 3, and TwoLog_n is initialized to the value of $2^*\lceil \log_2(n) \rceil$ for (k = 3; k <= n; k++ ... ;, j); Can someone go step by step and say me what is happening here? [All a[j] will get !=0 value here,rt?] Plz explain
In the following C program fragment, j, k, n and TwoLog_n are integer variables, and A is an array of integers. The variable n is initialized to an integer ≥ 3, and Two...
685
views
answered
Nov 8, 2016
Programming in C
programming
programming-in-c
+
–
145
votes
17
GATE CSE 2016 Set 1 | Question: 39
Let $G$ be a complete undirected graph on $4$ vertices, having $6$ edges with weights being $1, 2, 3, 4, 5,$ and $6$. The maximum possible weight that a minimum weight spanning tree of $G$ can have is __________
Let $G$ be a complete undirected graph on $4$ vertices, having $6$ edges with weights being $1, 2, 3, 4, 5,$ and $6$. The maximum possible weight that a minimum weight s...
35.4k
views
answered
Nov 8, 2016
Algorithms
gatecse-2016-set1
algorithms
spanning-tree
normal
numerical-answers
+
–
0
votes
18
C-Programming Basics
What is the output of the following C-program? Please provide a sound explanation too. #include<stdio.h> #define f(x) x*x+x main() { int x; x=f(8)*f(5); printf("%d",x); } A)266 B)269 C)2160 D)216
What is the output of the following C-program?Please provide a sound explanation too. #include<stdio.h #define f(x) x*x+x main() { int x; x=f(8)*f(5); printf(...
695
views
answered
Sep 17, 2016
Programming in C
programming-in-c
+
–
1
votes
19
c_programming
What will be the output of the program? #include<stdio.h> int main() { const c = -11; const int d = 34; printf("%d, %d\n", c, d); return 0; } A. Error B. -11, 34 C. 11, 34 D. None of these is it const c = -11; correct definition?
What will be the output of the program?#include<stdio.h int main() { const c = -11; const int d = 34; printf("%d, %d\n", c, d); return 0; } A. Error B. -1...
971
views
answered
Sep 9, 2016
Programming in C
const
+
–
0
votes
20
#algo
488
views
answered
Sep 6, 2016
Algorithms
algorithms
time-complexity
sorting
test-series
+
–
2
votes
21
Self-Doubt
char buffer[6]=”hello”; char *prt1=buffer -1; /* undefined behavior */ char *ptr2 = buffer +5; /*Ok, pointing to the ‘\0’ inside the array */ char *ptr3 = buffer +6; /* OK, pointing to just beyond */ char *ptr4 = buffer +7; /* undefined behavior */ Please clear last two line.. and why 2nd last is not undefined behavior.
char buffer[6]=”hello”; char *prt1=buffer -1; /* undefined behavior */ char *ptr2 = buffer +5; /*Ok, pointing to the ‘\0’ inside the array */ char *ptr3 = buffer ...
767
views
answered
Sep 4, 2016
Programming in C
programming-in-c
+
–
1
votes
22
#Deragement How many ways we put letter
How many ways we can put 5 letters L1 ,L2, L3, L4 ,L5 in 5 envelope e1, e2, e3, e4, e5 (at 1 letter per envelope) so that At most 1 letter is correctly placed At least 1 Letter is wrongly placed
How many ways we can put 5 letters L1 ,L2, L3, L4 ,L5 in 5 envelope e1, e2, e3, e4, e5 (at 1 letter per envelope) so thatAt most 1 letter is correctly placedAt least 1 L...
663
views
answered
Aug 30, 2016
Mathematical Logic
combinatory
+
–
3
votes
23
Permutation
Given a integer N greater than zero. How many sequences of 1's and 2's are there such that sum of the numbers in the sequence = N ? (not necessary that every sequence must contain both 1 and 2 ) example : for N = 2 ; 11,2 => ans = 2 sequences of 1's and 2's for N = 3 ; 11,12,21 => ans = 3 sequences of 1's and 2's
Given a integer N greater than zero.How many sequences of 1's and 2's are there such that sum of the numbers in the sequence = N ?(not necessary that every sequence must ...
694
views
answered
Aug 29, 2016
Combinatory
combinatory
generating-functions
recurrence-relation
+
–
0
votes
24
In this question the answer given is option (A) how it will come ?? Explain??
307
views
answered
Aug 28, 2016
Algorithms
algorithms
asymptotic-notation
time-complexity
test-series
+
–
1
votes
25
Is 1.02e+4 is a token in C program...??
477
views
answered
Aug 28, 2016
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
1
votes
26
gatebook_dsa
463
views
answered
Aug 28, 2016
0
votes
27
gatebook_dsa
291
views
answered
Aug 28, 2016
6
votes
28
#digital ?? Number System?? someone explain???
Find equivalent decimal value for (E3)16 Ans given :-227 explain someone ??
Find equivalent decimal value for (E3)16Ans given :-227 explain someone ??
269
views
answered
Aug 27, 2016
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register