WorksheetsPSCP Quiz - sec A
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
Which one of the following statement is the most appropriate?
a)
Pseudo code is basically a diagrammatic representation of the algorithm. Whereas in flowchart normal English language is translated into the programming languages to be worked on.
b)
Flowchart is diagrammatic representation of the algorithm. Pseudo code is just another name of algorithm.
c)
Pseudo code is another name of programming. Whereas in flowchart is diagrammatic representation of algorithm.
d)
Flowchart is basically a diagrammatic representation of the algorithm. Whereas in pseudo code normal English language is translated into the programming languages to be worked on.
2.
Which of the following is not a C variable?
a)
Count123
b)
Count_123
c)
Count@123
d)
X_123_Count
3.
A function
a)
is a block of statements to perform some specific task
b)
is a fundamental modular unit to perform some task
c)
has a name and can be used multiple times
d)
All the options are true
4.
The execution of any C program is
a)
Sequential
b)
Parallel
c)
Multi-threading
d)
None of these options are true
5.
Syntax error occurs when
a)
The rules of grammar of the programming language is violated
b)
The statements in the program have no meaning
c)
The program gives wrong or undesired output
d)
Some illegal operation (e.g. divide by zero) is performed
6.
If integer needs two bytes of storage, then the minimum value of a signed integer in C would be
a)
-65535
b)
0
c)
-32,767
d)
-32,768
7.
a)
a=a-b; b=a-b; a=a+b;
b)
a=a%b; b=a+b; a=a/b;
c)
a=a+b; b=a-b; a=a-b;
d)
a=b; b=a-b; a=a-b;
8.
What is the purpose of the "if-else" statement in C?
a)
To execute a block of code repeatedly.
b)
To declare variables and constants.
c)
To test a condition and execute different code based on the result.
d)
To perform mathematical calculations.
9.
Which of the following is true about nested "if-else" statements?
a)
They are not allowed in C.
b)
The "else" part is mandatory for every "if" statement.
c)
They allow you to test multiple conditions and execute different blocks of code based on the results.
d)
Nested "if-else" statements are only allowed up to two levels deep.
10.
If multiple conditions are used in a single "if" statement then the testing of those conditions are done
a)
From Right to Left
b)
From Left to right
c)
Randomly
d)
None of these options are true
100 %
