Worksheetsweek 2 assessment(apt,reasoning, c prog)
Total questions: 75
Worksheet time: 38mins
Let A={1,2,3} and B={a,b} . How many relations are possible from A to B?
32
64
16
8
A relation R={(1,2),(2,3),(3,4)} is:
Reflexive
Symmetric
Transitive
None of these
Which of the following is a function?
f={(1,2),(1,3)}
f={(1,2),(2,2),(3,2)}
f={(1,2),(2,3),(2,4)}
f={(1,2),(3,4)}
If f(x)=2x+1 , find f(3) .
5
6
7
8
The domain of the function f(x)=x−21 is:
All real numbers
x>2
x<2
All real numbers except 2
If a function is one-one, then it is:
Injective
Surjective
Bijective
Constant
Number of functions from a set of 3 elements to a set of 2 elements is:
6
8
9
12
If f(x)=x2 , then the function is:
One-one
Onto
Many-one
Bijective
A relation which is reflexive, symmetric, and transitive is called:
Linear relation
Equivalence relation
Identity relation
Universal relation
If f(x)=x+2 and g(x)=2x , find i.
2x+2
x+4
2x+4
x+2
The range of the function f(x)=x2 , where x∈R , is:
All real numbers
Positive real numbers
Non-negative real numbers
Integers
Which of the following relations is symmetric?
i
i
i
None
Simple interest on ₹500 at 10% per annum for 2 years is:
₹50
₹75
₹100
₹150
What is the formula for Simple Interest?
PRT
100PRT
1000PTR
RTP
If ₹1000 is invested at 5% SI for 4 years, what is the interest?
₹200
₹250
₹300
₹400
Amount = ₹1200, Principal = ₹1000. What is the Simple Interest?
₹100
₹150
₹200
₹250
Compound interest is calculated on:
Principal only
Interest only
Principal + previous interest
Simple interest
The formula for amount in compound interest is:
P(1+RT)
Pi
PRT
100PRT
CI on ₹1000 at 10% for 1 year is:
₹100
₹105
₹110
₹120
Difference between CI and SI for 2 years on same principal and rate is:
Zero
Equal to SI
Equal to interest on interest
Double of SI
If the rate of interest is zero, then SI is:
Equal to principal
Zero
Equal to amount
Negative
The compound interest is always _____ than simple interest.
Equal
Less
Greater
Zero
A sum doubles itself in 10 years at SI. Rate of interest is:
5%
10%
15%
20%
If ₹800 amounts to ₹968 in 2 years at CI, rate of interest is:
8%
10%
12%
15%
Which grows faster?
Simple Interest
Compound Interest
Both grow equally
Depends on principal
What will be the output of the following code? int a = 5; if(a > 3) printf("Hello"); else printf("Hi");
Hi
Hello
Error
No output
Which operator is used in C for conditional execution?
:
?
if
&&
What is the output? int x = 10; if(x = 5) printf("True"); else printf("False");
True
False
Error
No output
Which of the following is NOT a valid loop in C?
for
while
repeat-until
do-while
How many times will the loop execute? for(int i=1; i<=5; i++);
5
1
0
Infinite
What is the output? int i=1; while(i<=3) { printf("%d", i); i++; }
123
012
321
Infinite loop
Which loop executes at least once?
for
while
do-while
None
What is the output? int a=10; if(a==10) if(a>5) printf("Yes"); else printf("No");
Yes
No
Error
No output
Which statement is used to exit a loop immediately?
continue
break
exit
stop
What is the output? int i=0; do { printf("%d", i); i++; }while(i<3);
012
123
01
Infinite loop
Which keyword is used in switch to prevent fall-through?
continue
break
default
return
What happens if break is not used in switch?
Error occurs
Only one case executes
All cases execute after match
No case executes
What is the output? int x=2; switch(x) { case 1: printf("One"); case 2: printf("Two"); case 3: printf("Three"); }
Two
TwoThree
OneTwoThree
Error
Which data type is allowed in switch expression?
float
double
int
string
Which loop is best when the number of iterations is known?
while
do-while
for
infinite loop
What is the output? int i; for(i=1; i<=3; i++) printf("%d", i);
123
012
321
Error
What does continue do?
Exits the loop
Skips current iteration
Stops program
Restarts program
What is the output? int a=0; if(a) printf("True"); else printf("False");
True
False
Compilation error
No output
Which of the following is a correct if statement?
if x > 5
if(x > 5)
if(x > 5);
if x = 5
What is the output? int i=5; while(i>0) { printf("%d", i); i--; }
54321
01234
12345
Infinite loop
Which statement transfers control to the beginning of the loop?
break
continue
goto
exit
What is the output? int x=1; switch(x) { case 1: printf("A"); break; default: printf("B"); }
A
B
AB
Error
How many times will this loop execute? for(int i=10; i>=1; i-=3)
3
4
5
Infinite
Which control structure allows multiple conditions?
if
if-else
switch
for
Which is mandatory in every C program?
for loop
switch
main()
if
Choose the synonym of ABUNDANT:
Scarce
Plentiful
Rare
Limited
Choose the synonym of BRIEF:
Short
Long
Deep
Wide
Choose the synonym of ENORMOUS:
Tiny
Huge
Small
Little
Choose the synonym of CALM:
Angry
Peaceful
Nervous
Loud
Choose the synonym of INTELLIGENT:
Clever
Dull
Slow
Weak
Choose the synonym of RAPID:
Slow
Fast
Late
Weak
Choose the synonym of HONEST:
False
Loyal
Truthful
Clever
Choose the synonym of BEGIN:
End
Stop
Start
Finish
Choose the antonym of SUCCESS:
Victory
Progress
Failure
Achievement
Choose the antonym of HOT:
Warm
Cold
Mild
Tepid
Choose the antonym of ANCIENT:
Old
Historic
Modern
Antique
Choose the antonym of GENERATE:
Produce
Create
Destroy
Form
Choose the antonym of HAPPY:
Cheerful
Joyful
Sad
Excited
Choose the antonym of STRONG:
Powerful
Weak
Solid
Firm
Choose the antonym of VICTORY:
Success
Triumph
Defeat
Win
Choose the antonym of OPEN:
Free
Wide
Closed
Clear
Find the next number in the series: 2, 4, 8, 16, —
18
24
32
64
Complete the series: 5, 10, 20, 40, —
45
60
80
100
Find the missing number: 1, 4, 9, 16, —
20
25
30
36
Complete the series: 3, 6, 9, 12, —
14
15
18
21
Find the next term: 2, 6, 12, 20, —
24
30
36
48
Complete the alphabet series: A, C, E, G, —
H
I
J
K
Find the next number: 10, 20, 30, 40, —
45
50
55
60
Complete the series: 1, 1, 2, 3, 5, —
6
7
8
9
Find the missing term: 7, 14, 28, —
35
42
49
56
