0% found this document useful (0 votes)
9 views

Comprehensive Worksheet

..

Uploaded by

tcs373250
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Comprehensive Worksheet

..

Uploaded by

tcs373250
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

The City School

Reinforcement Worksheet
Term II – 2024

Q. Identify the type and meaning of the given operators

Operat Type Meaning


or
>=

XOR

Q. What are synchronous errors? Explain with an


example:
________________________________________________________________

________________________________________________________________

________________________________________________________________

________________________________________________________________

________________________________________________________________

________________________________________________________________

Q. Define Error Handling and its one function.

________________________________________________________________

________________________________________________________________
________________________________________________________________

Q. What are Modules? State two of its main functions.

________________________________________________________________

________________________________________________________________

_______________________________________________________________

Q. Fill in the description of the Mouse Events.

MouseUp:

MouseLea

ve:

Q. Identify which conditional statements/looping


statements will be used for the following scenario:

Lucky Draw lottery:


You win if you enter a value
which is >10 and < 25.
If you win, print Congratulations.
If you lose, print try again.

Grades:
You generate a result that
translates student score to a
corresponding grade (A*, A, B, C,
D, E, U). You have multiple
options here.
Addition:
You add all the even numbers
from 1 till 10.

Multiplication:
You multiply all integers starting
from 1
1*2*3*4…
Till you reach 5000

Q. List any four GUI Controls in Visual Basic.


________________________________________________________________

________________________________________________________________

________________________________________________________________

Q. What are Variables? Differentiate between Public and


Private variable and their uses.

________________________________________________________________

________________________________________________________________

________________________________________________________________

Q. What are Conditional statements? List any three


main types of Conditional Statements.

________________________________________________________________

________________________________________________________________
________________________________________________________________

Q. Differentiate between Conditional and Logical


Operators.

________________________________________________________________

________________________________________________________________

________________________________________________________________

________________________________________________________________

________________________________________________________________

________________________________________________________________

Q. Describe the suitable meaning of each condition


operator.

OPERATOR MEANING
=
>
<
>=
<=
<>

Q. Describe the suitable meaning of each LOGICAL


operator.

OPERATOR MEANING
AND
OR
XOR
NOT

Q. What are looping statements? List loop types.


________________________________________________________________

________________________________________________________________

________________________________________________________________

Q. Differentiate between For…Next Loop and Do…. Loop.

________________________________________________________________

________________________________________________________________

________________________________________________________________

Q. Elaborate Event Handling in your own words. Also,


discuss Mouse Events.

________________________________________________________________

________________________________________________________________

________________________________________________________________

Q. Write the Event with a suitable description.

• Mouse
Down
• Mouse
Enter
• Mouse
Hover
• Mouse
Leave
• Mouse
Move
• Mouse Up
Q. Define Functions and Subroutines.

________________________________________________________________

________________________________________________________________

________________________________________________________________

Q. Explain the purpose of the following control icons in


Visual Basic

Q. Raspberry Pi is a single-board computer. State


advantages of using Raspberry Pi?

________________________________________________________________

________________________________________________________________

________________________________________________________________

Q. GPIO pins are mounted on Raspberry Pi and are


considered as most important component of RPi.
Elaborate the purpose of GPIOs.
________________________________________________________________

________________________________________________________________

________________________________________________________________

Q. Group of students made a smart robotic car, but they

want to make it run without LED, mouse and keyboard.

Explain why they need a bootloader.

________________________________________________________________

________________________________________________________________

________________________________________________________________

Item Definition Answer

1. Button a. Main window


where you add
all controls and
functionality
2. Label b. A variable whose
value does not
change in the
program
3. Text c. It has all the
property controls

4. Name d. It is visible and


property accessible from
within the code
blocks of all
controls
5. Toolbox e. Defines the title
of the element
6. Debugging f. It is visible and
accessible to
only the code
block of a
particular
controls
7. Form g. Mathematical
operations +, -,
*, /

8. Dim h. Defines a name


which can refer
to the selected
element in
program’s code
9. Operators i. Declares a new
variable
10. j. A clickable
Public control
variables

11. k. Test the program


Private F5
variables

12. l. Display
Constants information like
a text field

Q. Write down the output of the following code.

Code Output
NewList [10,20,30,” Computing”]

print (NewList [3])

X=” Python is “

Y=” Awesome”

Z=X+Y

Print(z)

Mylist = [“English”,” Math”, “Urdu”]

Mylist.append = (“Science”)

print (Mylist)

thislist= [“red”,” yellow”,” Green”,


“pink”]

del thislist [2]

print(thislist)

score = 9

print (score)

Q. Differentiate between a Simple computer and a single


board computer.

________________________________________________________________

________________________________________________________________
________________________________________________________________

________________________________________________________________

You might also like