SECTION B (SHORT QUESTIONS ANSWERS)
Note: Answer any EIGHT (8) questions from this section. All questions carry equal marks.
Q2: Write down the advantage of Algorithm.
OR What do you mean by Reserved words in C++ and give any three example of it?
Q3: Differentiate between Stack and Queue.
OR Write a program using a while loop to generate the following output: 1 2 3 4 5
Q4: Define the purpose of Integrated Development Environment (IDE)?
OR Write down the differences between Low level language and High level language?
OR Differentiate between Source code and Object code?
Q5: Write the output of the following program statements:
int a = 7, b = 5;
if(a > 5)
cout << a + b << "Yes";
else
cout << a - b << "No";
Q6: OR Differentiate between Basic gate and Universal gate.
OR Define the following: i) Script ii) Sprite iii) Backdrop
Distinguish between Declaring a variable and Initializing a variable.
OR Differentiate between a Constant and Variable.
OR Explain the purpose of Truth table.
Q7: Write a C++ program to calculate the Sum of three numbers.
OR Write a Basic structure of C++. (Any Three)
OR What is the use of the Costume Tab in Scratch?
Q8: Explain the Stage Preview Window in the scratch editor.
OR Define Strings in C++.
OR Differentiate between Assignment (=) operator and Equal to (==) operator.
Q9: Draw the Logic circuit for the given Boolean expression:
X = (A.B) + (Ā + B̄)
OR Elaborate the purpose of any three of the following C++ language statements: break, continue, goto, return
OR Write an Algorithm to find the average of three numbers.
Q10: Differentiate between a Compiler and an Interpreter.
OR Write a program to print “PAKISTAN” five times using for loop.
OR What is the difference between Online Scratch and Offline Scratch.
Q11: Classify the following variable names as Correct or Incorrect:
#a, s.a, A_1, Name, 6B, int
OR Simplify the following boolean expression:
Z = AB + A(B + C) + B(B + C)
Q12: State the purpose of any Three of the following blocks used in Scratch:
Looks, Control, Events, Motion, Sensing
OR Differentiate between a Local variable and a Global variable.
Q13: Construct the truth table for three input AND gate.
OR Differentiate between Pre-defined function and User-defined function.
OR Write the difference between NAND gate and NOR gate.
Q14: Write the use of any three of the following Escape Sequences:
\r, \t, \n, \a
OR What is the purpose of default statement in C++.
OR Draw the different symbol of Flowchart with name and description (any three).
SECTION C (DESCRIPTIVE ANSWER QUESTIONS)
Note: Attempt any Four (04) questions from this section. All questions carry equal marks.
Q15: Discuss any THREE of the following basic steps involved in problem solving process:
Define the problem, Generate alternative solution, Evaluate and select an alternative, Implement and follow up on the solution
OR What is Function Declaration and Function Definition?
Q16: Explain the types of Logical operators with examples.
OR How do you define an Error? Discuss the different types of errors in programming.
Q17: Discuss Non-Linear Data Structure with its types.
OR Explain AND gate and OR gate with symbols and truth table.
Q18: List the differences among for, while and do while loop.
OR Discuss all Relational Operators in C++.
Q19: Write the Type, Keyword, Size and Range of C++ data types.
OR Explain Arithmetic Assignment operators with examples.
Q20: Elaborate the types of Selection Control statement?
OR Define a Flowchart and draw a flowchart that takes three numbers as input, calculate Sum and Percentage, if percentage is above 70 then print “well done”, otherwise “work hard”.
Note:
sum = x + y + z
Percent = sum / 300 * 100
What do you feel about this post?

Like

Love

Happy

Haha

Sad






