Font size
WorksheetsModeule-I-C
Total questions: 25
Worksheet time: 5mins
What is a Program ?
Group of Statements
Group of Lines
Group of Data
None of the Mentioned
What are the Characteristics of Algorithm ?
Input
Output
Effectiveness
Defectiveness
What is this symbol Notation Indicates ? Ω
BigOh
Omega
Theta
None
What are the Steps in Problem Solving ?
Algorithm
Process
Data
Abstraction
Answer the Code ?
3
4
5
n
What is that Symbol Indicates ?
Input
Condition
Output
Process
How Many Strategies are there for Solving Problem ?
Top - Down
Bottom - UP
Both
None
What are the Notations Belongs to Amortized Analysis
Ο
Ω
θ
ο
Is Algorithm and Pseudocode is Same ( or Not ) ?
Yes
No
What is Analysis ?
Data
Scrutinizing
Analyzing
Data Processing
Find the Output
Eror
Helo
Hello
Error
int a = 10;
print("%d",a);
a
10
Error
Mistake
Find the Case "HelloMr"
Pascal
Camel
Snake
frog
What is an example of iteration in C?
while
do...while
for
foreach
C preprocessors can have compiler specific features.
True
False
None
No
Find the Output
Main Call Its self
Error
No Output
Zero
Find the Output
0
Error
Data
-0
Find the Output
a Address
10
a Address
X Address
10
a Address
a Address
10
X Address
Error
How many number of pointer (*) does C have against a pointer variable declaration?
7
8
2
No Limit
Find the Output
Hello World! 34
Hello World !
34
Compile Time Error
No Output Because y Used two Times as a Variable Name
#include <stdio.h>
int main()
{
int main = 3;
printf("%d", main);
return 0;
}
0
Error
Main
3
#include <stdio.h>
int main()
{
for (int k = 0; k < 10; k++);
return 0;
}
Yes
No
Error
Depends on the C standard implemented by compilers
#include <stdio.h>
void main()
{
int x = 5 * 9 / 3 + 9;
}
3.75
Depends on compiler
24
3
#include <stdio.h>
void main()
{
1 < 2 ? return 1: return 2;
}
1
2
Error
None
#include <stdio.h>
int main()
{
int i = 0;
while (i < 3)
i++;
printf("In while loop\n");
}
2
3
1
4
