Digital Learning

Thursday, January 4, 2024

Computer-Science Class-8 Exercise-9(2023-24):

Computer Science
Class-VIII
Chapter-9 More on Visual Basic

A. Tick the correct answer:
1.______________ allows programmers to create windows applications in a very short time.
a. Visual basic            b. visual programmer            c. visual drive        d. visual maker
Answer: Visual Basic
2. _______________ control is used to add pictures in a form.
a. shape                        b. image                                     c. color                     d. size
Answer: Image
3. The key properties used in shape control are name, _____________, fill color and fill style.
a. shape                        b. image                                     c. color                     d. size
Answer: Shape
4. Every variable has an associated data type such as string________________, etc. to specify the type of data to be stored.
a. operator                   b. statement                             c. integer                 d. indicator
Answer: Integer
5. _____________ are special symbols that are used to perfom calculations, make comparisons and check logical conditions in a program.
a. applications             b. variables                              c. statements         d. operators
Answer: Operators
6. ________________ operators compare the values and return the result as true or false.
a. arithmetical             b. relational                              c. logical                 d. none of these
Answer: Relational

B. Fill in the blanks:
1. Visual basic is the most popular_______________language in the world.
Answer: Programming
2. Variables refer to a _________________ location used to stored data temporarily.
Answer: Memory
3. _______________ operators are used to compare two values.
Answer: Relational
4. __________________ in a program are executed in a sequence.
Answer: Statement
5. For next statement used a __________________ that keeps on counting the number of execution.
Answer: Counter


C. Write true or false:
1. Control structures are used to control the execution of a program.
Answer: T
2. Logical operators are used to combine two or more conditions.
Answer: T
3. Variables are used to store data permanently.
Answer: F
4. Every variable has a unique name which is used to identify it i the program.
Answer: T
5. To add different shapes in a form, shape control is used.
Answer: T

D. Answer the following questions in short.
1. What does RAD stand for?
Answer: RAD stand for Rapid Application Development.
2. How is fill color useful in shape control?
Answer: It is used to specify the colour of the shape.
3. How is image control useful?
Answer: Image control is used to add pictures in a form.
4. What are variables?
Answer: Variable is an area reserved in the memory to store values of a specific data type.
5. What is the use of statements?
Answer: A statement in visual basic is a complete instruction.

E. Answer the following questions in detail.
1. Give the difference between image control and shape control.
Answer: Image control is used to add pictures in a form.
Shape control is used to add different shapes like circle, rectangle, square, oval etc.

2. What are events?
Answer: An event is a signal that informs an application that something important has occurred.

3. How will you add an image in a form? 
Answer: Image control is used to add pictures in a form. When we add this control to our form, it doesn't display any image. To specify the image for this control, its picture property is used.

4. What are operators? Describe any two.
Answer: Operators are the special symbols that are used to perform calculations, make comparisons and check logical conditions in a program.
* Arithmetical operators: The operators that has been used for arithmetic operations are arithmetical operators.
* Relational operators: Relational operators are used to compare two values.

5. What is Do while statement? Give syntax.
Answer: It is used to repeatedly execute a set of statements till the specified condition remains true. It stops executing the statements, as the condition became false.



No comments:

Post a Comment