Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Materials:
Functions
Recent questions tagged functions
3
votes
1
answer
91
GO Classes Test Series 2024 | Programming | Test 3 | Question: 19
#include<stdio.h> int test(int *a, int *b) { int c = *a-*b; if (c<0) return 0; else return (1 + test(&c, b)); } void main() { int x = 15; int y = 4; int a = test(&x,&y); printf("%d", a); } $2$ $3$ $4$ Run time error since we can not pass the address of local variable c in the function test.
#include<stdio.h int test(int *a, int *b) { int c = *a-*b; if (c<0) return 0; else return (1 + test(&c, b)); } void main() { int x = 15; int y = 4; int a = test(&x,&y); p...
GO Classes
396
views
GO Classes
asked
Apr 30, 2022
Programming in C
goclasses2024-programming-3-weekly-quiz
goclasses
programming
programming-in-c
functions
pointers
parameter-passing
recursion
2-marks
+
–
0
votes
1
answer
92
simplify the following logic functionf(ABC)USING k-MAP f(ABC)=(A+B+C') .(A+B'+C')
simplify the following logic functionf(ABC)USING k-MAP f(ABC)=(A+B+C') .(A+B'+C')
simplify the following logic functionf(ABC)USING k-MAP f(ABC)=(A+B+C') .(A+B'+C')
saba780
952
views
saba780
asked
Apr 26, 2022
Digital Logic
digital-logic
k-map
logic
functions
+
–
5
votes
1
answer
93
GO Classes Test Series 2024 | Discrete Mathematics | Test 2 | Question: 13
The below function is defined from a set of all positive integers to a set of all integers. ... statements is true? It is one to one but not onto It is onto but not one-one It is bijection It is neither One-One nor Onto
The below function is defined from a set of all positive integers to a set of all integers.$f(n) = \left\{\begin{matrix} (n-1)/2\;;& \text{if}\; n \;\text{is odd} \\ -n/2...
GO Classes
385
views
GO Classes
asked
Apr 21, 2022
Set Theory & Algebra
goclasses2024-dm-2-weekly-quiz
goclasses
set-theory&algebra
functions
2-marks
+
–
4
votes
1
answer
94
GO Classes Test Series 2024 | Discrete Mathematics | Test 2 | Question: 22
Let $\text{Z}$ be the set of all integers. Which of these functions from $\text{Z}$ to $\text{Z}$ is not Onto $f(n) = n-1$ $f(n) = n^{2} + 1$ $f(n) = n^{3}$ $f(n) = \left \lfloor \frac{n}{2} \right \rfloor$
Let $\text{Z}$ be the set of all integers. Which of these functions from $\text{Z}$ to $\text{Z}$ is not Onto$f(n) = n-1$$f(n) = n^{2} + 1$$f(n) = n^{3}$$f(n) = \left \lf...
GO Classes
411
views
GO Classes
asked
Apr 21, 2022
Set Theory & Algebra
goclasses2024-dm-2-weekly-quiz
goclasses
set-theory&algebra
functions
multiple-selects
2-marks
+
–
3
votes
1
answer
95
GO Classes Test Series 2024 | Discrete Mathematics | Test 2 | Question: 23
Which of the following statements must be true? $\left \lfloor x \right \rfloor = \left \lceil x \right \rceil$ if and only if $x$ is an integer. $\left \lfloor x \right \rfloor + 1 = \left \lceil x \right \rceil$ if and only ... for all $x,y.$ $-\left \lfloor x \right \rfloor = \left \lceil -x \right \rceil $ for all $x.$
Which of the following statements must be true?$\left \lfloor x \right \rfloor = \left \lceil x \right \rceil$ if and only if $x$ is an integer.$\left \lfloor x \right \r...
GO Classes
306
views
GO Classes
asked
Apr 21, 2022
Set Theory & Algebra
goclasses2024-dm-2-weekly-quiz
goclasses
set-theory&algebra
functions
multiple-selects
1-mark
+
–
3
votes
1
answer
96
GATE Mechanical 2022 Set 2 | GA Question: 3
If $f\left ( x \right ) = 2 \:\ln \left ( \sqrt{e^{x}} \right )$, what is the area bounded by $f\left ( x \right )$ for the interval $\left [ 0,2 \right ]$ on the $x$ – axis? $\frac{1}{2}$ $1$ $2$ $4$
If $f\left ( x \right ) = 2 \:\ln \left ( \sqrt{e^{x}} \right )$, what is the area bounded by $f\left ( x \right )$ for the interval $\left [ 0,2 \right ]$ on the $x$ –...
Arjun
421
views
Arjun
asked
Feb 15, 2022
Quantitative Aptitude
gateme-2022-set2
quantitative-aptitude
functions
area
+
–
1
votes
1
answer
97
GATE Mechanical 2022 Set 2 | GA Question: 8
Consider the following for non-zero positive integers, $p$ and $q$. $f\left ( p, q \right ) = \frac{p\times p\times p\times \cdots\: \cdots\: \cdots \times p \:= \:p^{q}}{q\:{terms}}; f\left ( p, 1 \right )=p$ ... $g\left ( 2,1 \right ) \neq f\left ( 2,1 \right )$ $f\left ( 3,2 \right )> g\left ( 3,2 \right )$
Consider the following for non-zero positive integers, $p$ and $q$.$f\left ( p, q \right ) = \frac{p\times p\times p\times \cdots\: \cdots\: \cdots \times p \:= \:p^{q}}{...
Arjun
508
views
Arjun
asked
Feb 15, 2022
Quantitative Aptitude
gateme-2022-set2
quantitative-aptitude
functions
+
–
13
votes
2
answers
98
GATE CSE 2022 | GA Question: 2
A function $y(x)$ is defined in the interval $[0, 1]$ on the $x - $ ... the curve for the interval $[0, 1]$ on the $x - $ axis? $\frac{5}{6}$ $\frac{6}{5}$ $\frac{13}{6}$ $\frac{6}{13}$
A function $y(x)$ is defined in the interval $[0, 1]$ on the $x – $ axis as$$y(x) = \left\{\begin{matrix} 2& \text{if} & 0 \leq x < \frac{1}{3} \\ 3& \text{if}& \frac{1...
Arjun
6.2k
views
Arjun
asked
Feb 15, 2022
Quantitative Aptitude
gatecse-2022
quantitative-aptitude
functions
area
1-mark
+
–
0
votes
1
answer
99
In my mind
#include<stdio.h> Int main(void){ Int a=printf("%d",printf("%d %d",printf("GATE"),printf("OVERFLOW"))); printf("%d",a); return 0; } What is the reason for different output? Explain ideas.
#include<stdio.h>Int main(void){Int a=printf("%d",printf("%d %d",printf("GATE"),printf("OVERFLOW")));printf("%d",a);return 0;}What is the reason for different output?Expl...
SÀRÁTH_2003
499
views
SÀRÁTH_2003
asked
Jan 7, 2022
Programming in C
programming
programming-in-c
functions
descriptive
+
–
1
votes
1
answer
100
TIFR CSE 2021 | Part A | Question: 5
Let $n, m$ and $k$ be three positive integers such that $n \geq m \geq k$. Let $S$ be a subset of $\left \{ 1, 2,\dots, n \right \}$ of size $k$. Consider sampling a function $f$ uniformly at random from the set of all functions mapping $\left \{ 1,\dots, n \right \}$ ... $1-\frac{k!\binom{n}{k}}{n^{k}}$ $1-\frac{k!\binom{n}{k}}{m^{k}}$
Let $n, m$ and $k$ be three positive integers such that $n \geq m \geq k$. Let $S$ be a subset of $\left \{ 1, 2,\dots, n \right \}$ of size $k$. Consider sampling a func...
soujanyareddy13
595
views
soujanyareddy13
asked
Mar 25, 2021
Set Theory & Algebra
tifr2021
set-theory&algebra
functions
probability
+
–
3
votes
1
answer
101
GATE Civil 2021 Set 1 | GA Question: 9
A function, $\lambda$, is defined by $\lambda \left ( p,q \right )=\left\{\begin{matrix} \left ( p-q \right )^{2}, & \text{if} \:p\geq q, \\ p+q, &\text{if} \: p< q.\end{matrix}\right.$ ... $-1$ $0$ $\frac{16}{3}$ $16$
A function, $\lambda$, is defined by$\lambda \left ( p,q \right )=\left\{\begin{matrix} \left ( p-q \right )^{2}, & \text{if} \:p\geq q, \\ p+q, &\text{if} \: p< q.\end{m...
Arjun
596
views
Arjun
asked
Feb 19, 2021
Quantitative Aptitude
gatecivil-2021-set1
quantitative-aptitude
functions
easy
+
–
24
votes
3
answers
102
GATE CSE 2021 Set 2 | Question: 11
Consider the following sets, where $n \geq 2$: $S_1$: Set of all $n \times n$ matrices with entries from the set $\{ a, b, c\}$ $S_2$: Set of all functions from the set $\{0,1,2, \dots, n^2-1\}$ ... There exists a surjection from $S_1$ to $S_2$ There exists a bijection from $S_1$ to $S_2$ There does not exist an injection from $S_1$ to $S_2$
Consider the following sets, where $n \geq 2$:$S_1$: Set of all $n \times n$ matrices with entries from the set $\{ a, b, c\}$$S_2$: Set of all functions from the set $\{...
Arjun
6.5k
views
Arjun
asked
Feb 18, 2021
Set Theory & Algebra
gatecse-2021-set2
multiple-selects
set-theory&algebra
functions
1-mark
+
–
0
votes
1
answer
103
CMI-2018-DataScience-A: 14
Consider the following functions defined from the interval $(0,1)$ to real numbers. Which of these functions attain their maximum value in the interval $(0,1)?$ $f(x)=\frac{1}{x(1-x)}$ $g(x)=-(x-0.75)^2$ $u(x)=\sin(\frac{\pi x}{2})$ $v(x)=x^2+2x$
Consider the following functions defined from the interval $(0,1)$ to real numbers. Which of these functions attain their maximum value in the interval $(0,1)?$$f(x)=\fra...
soujanyareddy13
531
views
soujanyareddy13
asked
Jan 29, 2021
Others
cmi2018-datascience
functions
discrete-mathematics
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
...
13
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register