0% found this document useful (0 votes)
95 views21 pages

Class 8t Complete Worksheets

This document contains a worksheet from an 8th grade Computing class on developing applications. It includes multiple choice and fill-in-the-blank questions about programming concepts like variables, data types, functions, loops, and error handling. It also asks students to define terms like interfaces, IDEs, conditional statements, and the differences between things like public and private variables. The worksheet aims to assess students' understanding of foundational programming topics through questions ranging from naming components to briefly explaining key concepts.

Uploaded by

Fouzia Amin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views21 pages

Class 8t Complete Worksheets

This document contains a worksheet from an 8th grade Computing class on developing applications. It includes multiple choice and fill-in-the-blank questions about programming concepts like variables, data types, functions, loops, and error handling. It also asks students to define terms like interfaces, IDEs, conditional statements, and the differences between things like public and private variables. The worksheet aims to assess students' understanding of foundational programming topics through questions ranging from naming components to briefly explaining key concepts.

Uploaded by

Fouzia Amin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 21

The City School

Class: 8-T Subject: Computing Term-2

NAME:

Developing Applications
Q1: Fill in the blanks.
1. While writing the code, variables are declared with its

2. is a name given to storage area that the programs can manipulate.

3. statements give different results for different inputs.

4. Is a graphical layout of an application.

5. Logical operators return results.

Q2: Choice the correct option.


1. Apple App store is the largest app store with approximately 1.85
million apps.
a) 1st b) 2nd c) 3rd d) 4th
2. _______________ allows a sequence of instructions to be repeated until a certain
condition is reached.
a) Events b) Loops c) Arrays d) Conditional statements
3. ____________ is used to organize codes and wrap up variables, properties and
events.

a) Loops b) Function c) Module d) Event

4. Are user actions like key press, clicks and mouse movement etc.

a) Loops b) Function c) Module d) Event

5. ________ is an essential procedure that helps make a program error free.

a) Error handling b) decision making c) logical reasoning d) None

Q4: Answer the following questions

i) Differentiate between mobile App and Website?

ii) What are the characteristics of good user interface?


Question: Fill in the blanks with suitable words (2 Marks)

1
The City School
1. A variable is a container of data in a computer memory where the computer stores the
different types of data.
2. Logical operators are similar to Boolean expressions that return a Boolean result.

Question: For each of the following, indicate True or False (3 Marks)


1. Private variables are variables that are accessible to the whole program. False
2. IF-THEN-ELSE statement allows you to define instructions to be executed if the
condition is false. True
3. A control is a sequence of instructions that is repeated until a certain condition is reached.
False

Question: Choose the appropriate letters A, B, C and D. (3 Marks)


1. _________ loop is used when we don’t know exactly how many times this loop will run.
A. FOR
B. WHILE
C. DO NEXT
D. IF ELSE
2. The two types of functions in Visual Studio 2010 are________ & ___________.
A. Built-in functions
B. User defined functions
C. Linear functions
D. Both A & B
3. _________ is an essential procedure in Visual Studio 2010 programming that helps make a
program error-free.
A. Error Handling
B. Event Handling
C. Modules
D. Subroutines
Question: Write short answer of the question given below. (2 Marks)
Differentiate between function and sub procedure?
Q1: Answer the following questions:
i) What is a User Interface Design? Write Names of any four characteristics of
it?

2
The City School
The user interface (UI) is the point of human-computer interaction and communication
in a device.
Interface is also a Graphical Layout of an Application. This can include display screens,
keyboards, a mouse and the appearance of a desktop. It is also the way through which a
user interacts with an application or a website. Characteristics of an interface are: Simple,
Responsive, Attractive, Clear, Consistent.
ii) Why designing a Bad user interface is prohibited?

Not only does the bad UI design totally destroy the creativity behind the designers, but
also delivers misunderstanding info to users. All of those will altogether bring users a
sense of confusion, frustration and even anger.
iii) What does term IDE means? Briefly Describe.

An integrated development environment (IDE) is a software application that provides


comprehensive facilities to computer programmers for software development. An IDE
normally consists of at least a source code editor, build automation tools and a debugger.
Some IDEs, such as Visual Studio.
iv) What type of Application/program can be built using Visual Studio?

It is used to Develop Computer Programs as well as many different applications


such as Websites, webapps, Mobile Apps, Web Services, Games etc.
v) What properties Window Allow a user to do? Tell Difference between
Name & text property of a control (Button, Label.).

A property windows allow a programmer to change settings of the control as


per requirement.
Text property is used to change Text of the Controls (Button, label etc.)
Name Property is used to Provide the coding access of a specific control
(Button, label).
vi) What do you know about Controls available in Visual Studio (Visual
Basic)? Name Any Five Controls that you are using in your Program.
Forms controls are the components that gives user interface functionality and are used
in client-side Windows applications. A button/label, radiobox, Textbox are all controls,
which is an interactive component that enables users to communicate with an application.

3
The City School

vii) Why variables are important or what function does the variable have?

A variable is nothing but a name given to a storage area that our programs can manipulate.
Each variable in C#/Visual St has a specific type, which determines the size and layout of
the variable's memory.
viii) Give the Difference between Private and Public Variables?

A public member or a public variable is accessible from anywhere but within a program. A
private Variable is restricted to Specific/certain part of the program; you cannot access it
outside that pat of the program.
ix) What is the difference between Mobile App and Website?

Ans: Reference Page no: 85 (E-Book)


x) What are Data types available in Visual Studio? Write Name of any 4
Datatypes.

A data type is an attribute/Format of data which tells the compiler or interpreter how the
programmer intends to use the data. In simple words it is the type of data (Numeric, String,
Character) in which programmer/user wants to store the data. Different Data types are Integer,
String, Datetime, object, Decimal, Char.
xi) What are conditional Statements and its function?

Decision Making statements are called Conditional Statements. Conditional


statements help you to make a decision based on certain conditions. Computers have
limited intelligence and they cannot make decision on their own unless we program
them to take a decision.
xii) Why conditional Operators are used in a program.
Conditional operators are used to evaluate/refine a condition that's applied to one or
two Boolean expressions. The result of the evaluation is either true or false.
xiii) What is a program?
A program is a specific set of instruction/ordered operation is
designed/made to perform a specific task.
xiv) Define Function and its types. Why we use Functions in
programming?
Function is a group of Related Statement that can be designed to
perform a specific Task and it is a type of procedure that returns a
value to finish its execution. Function Can be called anywhere In the
Program only by Calling Name of the function defined.

xvi) Define Module & Loops?

4
The City School
Ans: (Ref E-Book Page No: 95, 96 (Checkpoints))
xvii) Define an Error. Give brief description about Error Handling &
Synchronous Errors. Ans: (Ref E-Book Page No: 96)
Imp: Let’s Review Page and Checkpoints given in the Chapter all are important,
please Do not rely only on the Worksheet. Go through the book as well while
preparing for Assessments & Exams. Feel Free to ask Question about this if any
during Revision Classes.

Name: ________________________ Class & Section: VIII ______________

5
The City School
Date: _______________________ Total Marks: 20
Q1: Answer the following questions:
i) Define Interface. Write any Four characteristic Of Good User Interface
Design?

________________________________________________________________
________________________________________________________________
________________________________________________________________
ii) What does term IDE means? Briefly Describe.
________________________________________________________________
_______________________________________________________________
________________________________________________________________
iii) What type of Application/program can be built using Visual Studio?

________________________________________________________________
________________________________________________________________
________________________________________________________________
iv) Give the Difference between Name & text Property Of windows Form.

________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
v) What do you know about Controls available in Visual Studio (Visual Basic)?
Name Any Five Controls that you are using in your Program.
________________________________________________________________
________________________________________________________________

6
The City School

vi) Define Variable?

________________________________________________________________
________________________________________________________________
_______________________________________________________________
________________________________________________________________
vii) Differentiate between Public and Public Variables used in Program?

_______________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
____________________________________________________________
viii) What is the difference between Mobile App and Website?

________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
ix) What are different Data types available in Visual Studio? Write Name of
any 4 Datatypes.
________________________________________________________________
________________________________________________________________
________________________________________________________________
x) What do you know about conditional Statement? Why it is necessary in
Program?
_______________________________________________________________
_______________________________________________________________
_______________________________________________________________

7
The City School

Name:________________________ Date: / /2017


Q.1 Circle the correct one option
Circle the correct answers
1. _________________ are the actions or notifications that are used to initiate code
execution.
a. Trigger

b. Programing Language

c. Event

d. None of the above


2. RAD stands for ________________
a. Rapid Access Driver

b. Rapid Application Development

c. Random Access Devise

d. None of the above [1]


3. __________________ is the product obtained when a translator works.
a. Source Code

b. Object Code

c. Translator

d. Compiler

Q.2 Match the Following. Column A Column B


Compiler Artificial Intelligence
Interpreter BASIC
Event Driven Programming Language C++
Fifth Generation Visual Basic
Question 3
1. What is a program? Define Modular Programming.

(4 Marks)
2. Write a note on the following
i. Compiler:

ii. Interpreter:

Developing Applications
Q1: Answer the following questions:

8
The City School
i) What is a User Interface Design? Write Names of any four characteristics of
it?

________________________________________________________________
________________________________________________________________
________________________________________________________________
ii) Why designing a Bad user interface is prohibited?

________________________________________________________________
________________________________________________________________
________________________________________________________________
iii) What does term IDE means? Briefly Describe.

________________________________________________________________
________________________________________________________________
________________________________________________________________
iv) What type of Application/program can be built using Visual Studio?

________________________________________________________________
________________________________________________________________
v) What properties Window Allow a user to do? Tell Difference between
Name & text property of a control(Button, Label..).

________________________________________________________________
________________________________________________________________

9
The City School

vi) What do you know about Controls available in Visual Studio (Visual
Basic)? Name Any Five Controls that you are using in your Program.

________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
vii) Why variables are important or what function does the variable have?
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
viii) Give the Difference between Private and Public Variables? Also write the
Code to Declare Simple, Public, Private Variable.
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
ix) What is the difference between Mobile App and Website ?

________________________________________________________________
________________________________________________________________
________________________________________________________________

10
The City School

x) What are different Data types available in Visual Studio? Write Name of
any 4 Datatypes.

________________________________________________________________
________________________________________________________________
________________________________________________________________
xi) Which statement are called conditional Statements? Write its usage.
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
xii) What do you understand by If, if/Elseif, If/else Decision-Making
Statement? Write Separate concept for each of it.
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
xiii) Why conditional Operators are used in a program. Write their Name and
purpose of each Operator.

________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
xiv) Define Logical Operators. Write their Name and usage.

11
The City School

Programming robots & Single Board Computers (SBC)

Q1: Fill in the Blanks.


1. A program is a specific set of instructions for a computer to perform
2. Python is a high programming language designed to be easy to read and simple to
implement.
3. Indentation refers to the documentation of a code line.
4. A variable is a name given to a storage area that our programs can manipulate
5. A list is just an ordered collection of items.
6. For loop is used for repeating sequence over a provided range.
7. Condition statement is a set of rules performed if a condition is met.
8. A function is a group of related statements that perform a specific task.
9. A bug is a coding error that causes an unexpected defect in a computer program.
10. def keyword is used to define a function in a python language.

Q # 2 :Select True or False.

1. In Python ,you can store your data into variable. True/False


2. You cannot store your data into List.
True/False
3. A List is just an ordered collection of items which can be of any data type.
True/False
4. An Example of List could be
NewList=[10,20,30,”Computing”,12.78]
True/False
5. Del command is not used to delete a list element
True/False
6. To add elements in a List we cannot use the append() method.
True/False
7. The ELIF keyword is python’s way of saying if the previous conditions were not true,
then try this condition.
True/False
8. Conditional statement is not a set of rules performed if a certain condition is met.
True/False
9. Python has the ability to add Comments for the purpose of in code documentation.

True/False

12
The City School
10. A variable is nothing but a name given to a storage area that our program can
manipulate. True/False
11. Python uses indentation to indicate a block of code.
True/False
12. Python is a programming language is popular because of its easy syntax.
True/False
13. Variable name must start with a letter or the underscore. True/False
14. Python allows us to assign values to multiple variable in one line . True/False
15. Python has no command for declaring variable. True/False
16. Comments are used for the purpose of in-code documentation. True/False
17. The else keyword catches anything which isn’t caught by the preceding condition.
True/False
18. Function avoids repetition and makes code reusable.
True/False
19. If program is embedded inside a hardware device it is called firmware.
True/False

Answer the following questions:

ii) What is a single board computer?


A single board computer is a complete computer built on a single circuit board with
microprocessors, input/output, memory and all other features required for a
functional computer.

iii) Is raspberry pi is a SBC? Throw some light on Raspberry pi.


Yes, Raspberry is a small credit card sized single board computer used for variety of
purpose such as experimentation & learning how to program.

iv) How many components raspberry pi have? Write their names.


Ans: 8-Components (Ref E-Book Page No: 103)

v) Explain GPIO. Give Difference between physical and logical labelling


of GPIO?
Ans: GPIO STANDS FOR General purpose Input Output. GPIOS are used to connect
devices to real world, for instance, sensors, LEDs , motors etc. Physical labelling tells
about the numbering of the pin while logical labelling describes real working/purpose of
the pin used.

vi) Which OS is being used in raspberry pi? Briefly describe.

13
The City School
Ans: Raspbian OS is being used in raspberry pi. Raspbian is a Debian (32-bit) operating
system for raspberry pi SBC. Raspbian OS is a highly optimized lightweight desktop
environment.

vii) Define function or Python Functions. What is the advantage of


creating functions in a program?
Ans: (Ref E-Book Page No: 113)

viii) Write a short note on the concept/purpose of following terms:


1. BCM 2. Resistor 3.BreadBoard 4.Jumper Wire
Ans: (Ref E-Book Page No: 114)

ix) Briefly describe the purpose and working of Servo Motor.


Ans: (Ref E-Book Page No: 118)

x) SONAR stand for? What is the and function of Sonar Sensor?

Q-1 Fill in the blanks.


1. In Python a __________________________ is a group of statements that
perform a specific task.
2. SONAR is an acronym for ________________________________________.
3. A ____________ is an electrical device that can push an object with great
precision.
4. _________________ operators refine the statement you are testing for.
5. ___________________ operators are called binary because they require
two operands.
6. __________________________ loop is used for repeating over a sequence,
that is either a ___________ or _________________.
7. ____________________________ if proved true, performs a function or
displays information.
8. GPIO stands for
______________________________________________________________
______.
9. Single board computers have been built using a wide range of
______________________________.
10.A __________________ is a storage placeholder for text and numbers.
Q-2 What is SBC?

14
The City School
Q-3: Write briefly about Raspberry Pi.
Q-4: What is SONAR and Servo Motor. Also write their uses.
Q-6 Write the binary and conditional operators.
Q-7 Write some application where we can use SBCs. (general research)
Q.1 Circle the correct answer for each question.
[10]
i) A computer program is a collection of _____________that performs a specific task
when executed by a computer.
a) Languages b) Instructions c) Statements
ii) IDE is used to develop computer programs, as well as _____________.
a) Websites b) Mobile Apps c) Both A & B
iii) The ____________ panel allows you to define various properties of the currently
selected element on the design view.
a) Properties b) Text Property c) Name property
iv) The ____________ which defines the title of the selected element in our program
design window.
a) Properties b) Text Property c) Name property
v) The Form we have created is initially empty and to make it purposeful we add
elements also called ____________.
a) Objects b) Controls c) Both A & B
vi) __________ shortcut key is used to execute the program in debugging mode.
a) F3 b) F4 c) F5
vii) Every Program needs to do calculations and show results. This is only possible with
the use of ____________.

a) Variables b) Controls c) Constants

viii) ___________is a key word used to declare a new variable in Visual Basic Program.
a) Lib b) Def c) Dim
ix) The variable that cab be accessible by all controls with in the form called
___________.
a) Private variable b) Public Variable c) String Variable

x) ______________ buttons are similar to Radio Buttons, where user can select more
than one item in a group of options.

15
The City School
a) Check Box b) Text Box c) Combo Box

16
The City School

Q.2 Read the following statements and categorize them as True or False.

[10]

S# Statement True / False

i IDE stands for Internal Design Environment.

ii Text Property Window defines the name of the selected


element in our program code window.

iii In Python program, Indentation refers to the spaces at the


beginning of a code line.

iv Radio Button is one of the popular ways of limiting the user


to pick one option.

v Public variable are the variables that are accessible only to


a certain part of the program or code.

vi In Visual Basic / Visual Studio, we can declare a variable by


a key word Dif.

vii The value range of Byte data Type in Visual Basic / Visual
Studio is between 0 through 255.

viii The symbols like = > < used between two variables or
values are called conditional or relational operators.

Decision making statements allow to specify one or more


ix conditions to be executed, if the condition is determined to
be True.

x Logical Operators are similar to Boolean expressions that


return Boolean result.

17
The City School

Q.3 Write the name of the following Visual basic Elements / Controls.
[06]

GUI
Name Definition
Controls

Q.4 Write the Code for the following calculator.


[14]

18
The City School

Visual Studio 2010 Hands-On Practical


TASK-1 : SAY HELLO APP

(after pressing the button)

1. Load Visual Studio 2015.


🡪 Click New Project. 🡪 Windows Form App 🡪 Select Visual Basic (in the
left pane)

2. On Properties Panel

19
The City School
🡪 Select Form 1 🡪 Name Property : Change to “frmMain”
🡪 Text Property : Change to “FirstVBForm”
3. In the View Menu select TOOL BOX
4. Add : Label Control , Button Control (Place both the controls in the Center)
5. On Properties Panel
🡪 Select Button_1 🡪 Name Property: Change to “btnReaction”
🡪 Select Label_1 🡪 Name Property: Change to “lblReaction”
🡪 Select btnReaction 🡪 Text Property: Change to “Say Hello”
6. Double Click on the Button control (btnReaction)
Write the following code
lblReaction.Text = “Hello World, my first app”
7. Run the App, press F5 or click on the play button.
TASK-2 : RESET COUNTER APP

1. Load Visual Studio 2015.


🡪 Click New Project. 🡪 Windows Form App 🡪 Select Visual Basic (in the
left pane)
2. On Properties Panel
🡪 Select Form 1 🡪 Name Property : Change to “frmMain”
🡪 Text Property : Change to “Counter”
3. In the View Menu select TOOL BOX
4. Add : Button Controls (Add and Reset as shown) (as shown in the diagram
above)
5. On Properties Panel
🡪 Select Button_1 🡪 Name Property: Change to “btnAdd”
🡪 Select Button_2 🡪 Name Property: Change to “btnReset”
🡪 Select Label_1 🡪 Name Property: Change to “lblResult”

20
The City School
6. Double Click on the Button control (btnReset)
Write the following code in the ;
● Public Class frmMain or Form1
Public pub As Integer
● Private Sub btnReset_Click
pub = 0

lblResult.Text = pub
● Private Sub btnAdd_Click
pub = pub + 1

blResult.Text = pub

7. Run the App, press F5 or click on the play button.

21

You might also like