0% found this document useful (0 votes)
168 views8 pages

Class 8 Computer Science Assignments

This document contains 8 assignments for a Class 8 Computer Science class covering chapters on Visual Basic and programming languages. The assignments include tasks to design VB forms with buttons and controls to accept user input and display output, write code snippets to perform calculations on user-provided values, and differentiate concepts like compilers vs interpreters. Students are asked to create simple VB applications and write short notes on VB interface elements and programming topics.

Uploaded by

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

Class 8 Computer Science Assignments

This document contains 8 assignments for a Class 8 Computer Science class covering chapters on Visual Basic and programming languages. The assignments include tasks to design VB forms with buttons and controls to accept user input and display output, write code snippets to perform calculations on user-provided values, and differentiate concepts like compilers vs interpreters. Students are asked to create simple VB applications and write short notes on VB interface elements and programming topics.

Uploaded by

B
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
  • Assignment 1 (Week 1)
  • Assignment 2 (Week 2)
  • Assignment 3 (Week 3)
  • Assignment 4 (Week 4)
  • Assignment 5 (Week 5)
  • Assignment 6 (Week 6)
  • Assignment 7 (Week 8)
  • Assignment 8 (Week 10)

DPS – MIS, DOHA- QATAR

CLASS VIII COMPUTER SCIENCE ASSIGNMENT


CHAPTER 2 –STARTING WITH VISUAL BASIC
MONTH- APRIL
ASSIGNMENT: 1 ( WEEK 1)

I. Answer in one word:


a) What is the shortcut key to open project explorer window?
b) Which tab of the VB startup dialog box consists of already saved
projects?
c) What will be the last line of code in any VB program?

II Answer the following:


a) Differentiate between the following Title bar and Tool box
b) Which are the three ways by which the Code Window can be accessed?
c) What is IDE? Why it is called so?

III Write short notes on the following:


a) Form Layout Window
b) Recent Tab in VB startup
c) Project Explorer Window
*******

Page 1 of 8
DPS – MIS, DOHA- QATAR
CLASS VIII COMPUTER SCIENCE ASSIGNMENT
CHAPTER 2 –STARTING WITH VISUAL BASIC
MONTH- APRIL
ASSIGNMENT: 2 (WEEK 2 )

I. Answer in one word:


a) The extension name used for a visual basic project.
b) The shortcut key that is used to run or execute a visual basic program
c) The extension for saving a visual basic form.

II Answer the following:


a) Which are the seven steps to be followed in order to create a simple VB
application?
b) Which are the three ways by which a project can be executed?
c) Differentiate between Blank Form and Form Layout Window.

*******

Page 2 of 8
DPS – MIS, DOHA- QATAR
CLASS VIII COMPUTER SCIENCE ASSIGNMENT
CHAPTER 3 : VISUAL BASIC- INTEGERATED DEVELOPMENT ENVIRONMENT
MONTH- APRIL
ASSIGNMENT: 3 (WEEK 3 )

I. Fill in the blanks:


a) is a graphical control that is used to display text that can’t
be changed directly by the user.
b) property specifies the color of the text.
c) The control is used to display text that may be edited directly
by the user.

II Answer the following:


a) Differentiate between Name and Caption property of Label control.
b) Which are the two ways by which you can add controls to the form?

III Write short notes on the following:


a) Scrollbar property
b) Frame Control
c) Alignment Property

*******

Page 3 of 8
DPS – MIS, DOHA- QATAR
CLASS VIII COMPUTER SCIENCE ASSIGNMENT
CHAPTER 3 : VISUAL BASIC- INTEGERATED DEVELOPMENT ENVIRONMENT
MONTH- APRIL
ASSIGNMENT: 4 (WEEK 4 )

I. Fill in the blanks:


a) When the first time a form is displayed in a project, VB generates an
event known as .
b) statement is used to insert a comment in the program.
c) PRINT statement is used to display the message on the .

II Answer the following:


a) What is meant by Message Box function?
b) Write any two advantages of GUI.

III Write short notes on the following:


a) InputBox function
b) Separators
c) CLS statement
*******

Page 4 of 8
DPS – MIS, DOHA- QATAR
CLASS VIII COMPUTER SCIENCE ASSIGNMENT
CHAPTER 3 : VISUAL BASIC- INTEGERATED DEVELOPMENT ENVIRONMENT
MONTH- MAY
ASSIGNMENT: 5 (WEEK 5 )

Answer the following:

a) Design a visual basic project with a form. Insert two command buttons
on the form and set the appropriate properties for them. On click of the
first Command button a message “YOU CLICKED THE COMMAND
BUTTON” should be displayed and on click of the other the execution
should stop.

b) Design a visual basic project with a form. Then add a command button
with the caption PRODUCT. Write the code to accept two numbers
from the user using two textboxes and display their product in a
message box.

*******

Page 5 of 8
DPS – MIS, DOHA- QATAR
CLASS VIII COMPUTER SCIENCE ASSIGNMENT
CHAPTER 3 : VISUAL BASIC- INTEGERATED DEVELOPMENT ENVIRONMENT
MONTH- MAY
ASSIGNMENT: 6 (WEEK 6 )

Answer the following:

a) Design a visual basic project with a form. Insert a command button on


the form and set the appropriate properties for them. On click of this
Command button accept a number form the user using inputbox and
display the half of that number in a message box.
b) Design a visual basic project with a form. Then add a command button
with the caption Submit. Write the code to accept the name of a person
from the user using a textbox and print the message “How are you
<name> ? ”.

*******

Page 6 of 8
DPS – MIS, DOHA- QATAR
CLASS VIII COMPUTER SCIENCE ASSIGNMENT
CHAPTER 1- INTRODUCTION TO PROGRAMMING LANGUAGES
MONTH- JUNE
ASSIGNMENT: 7 (WEEK 8 )

Answer the following:

a) Make a list of all the High Level Languages ( according to the year they
were introduced).
b) Differentiate between Interpreter and Compiler.
c) Write any 2 advantages of 4GL.

(Note: No assignment is uploaded for week 7 and week 9)

Page 7 of 8
DPS – MIS, DOHA- QATAR
CLASS VIII COMPUTER SCIENCE ASSIGNMENT
CHAPTER 3 : VISUAL BASIC- INTEGERATED DEVELOPMENT ENVIRONMENT
MONTH- JUNE
ASSIGNMENT: 8 (WEEK 10 )

Answer the following:

a) Design a visual basic project with a form. Insert a command button with
the caption SQUARE . On click of this Command button accept a number
form the user using inputbox and display the square of that number in a
textbox.
b) Design a visual basic project with a form. Then add a command button
with the caption Submit. Write the code to accept the name of a person
from the user using a textbox and display the message “ Sorry ,
<name> Registration closed! ” in a message box.

*******

Page 8 of 8

Common questions

Powered by AI

The IDE for Visual Basic integrates several features essential for efficient development, including a form designer for GUI building, a code editor for writing and editing programs, a debugger to track down and fix errors, and project management tools for organizing the application’s structure. Additionally, tools like the toolbox and property windows allow for easy control manipulation and customization. This integration supports streamlined development, enhancing productivity by providing all necessary tools within one platform to manage, edit, test, and build applications effectively.

The 'Blank Form' in Visual Basic serves as the basic canvas on which developers add controls to create the interface of the application. It is where designers build their application visually for the first time. The 'Form Layout Window,' however, acts as a tool for positioning and aligning the form on the user’s screen. While the 'Blank Form' is the foundation for adding components, the 'Form Layout Window' is used to configure the form's final look and placement once the elements are decided, focusing more on run-time appearance and layout management.

The Form Layout Window in Visual Basic plays a crucial role in visualizing how a form will appear when the application is run. It allows developers to design the UI by positioning controls and adjusting form attributes. This window aids in achieving a consistent and organized layout, aligning with design aesthetics and enhancing user experience. It offers a visual guide that helps developers to anticipate how users will interact with their application.

The Code Window in Visual Basic can be accessed in three ways: by double-clicking the object in the form designer, selecting View > Code from the menu, or pressing the F7 key. Each method provides a direct way to access the underlying code for rapid editing and debugging.

Creating a simple application in Visual Basic involves seven typical steps: Start a new project, Design the interface, Set properties for the controls, Write the code, Test and debug the application, Save the project, and Compile the application. Each step is necessary for ensuring a cohesive development process. Starting a new project sets the foundation, designing the interface captures user requirements visually, setting properties customizes behavior and appearance, writing code adds functionality, testing and debugging ensures reliability, saving preserves work, and compiling prepares the application for distribution.

Interpreters and compilers both play crucial roles in program execution but differ significantly in operation. An interpreter processes code line by line, translating each command in real-time, which can be slower but allows for immediate debugging and testing. A compiler translates the entire program into machine code before execution, resulting in faster execution during runtime as the translation is already complete. However, compiling can be time-consuming and doesn’t facilitate quick fixes during development as effectively as interpreting. The choice between them impacts overall development efficiency, with interpreters favoring development flexibility and compilers offering performance optimization.

The 'Name' property of a label control is used to reference the label in the code. It is a unique identifier for the control and is not displayed to the user. In contrast, the 'Caption' property is what the user sees on the form. It is the text displayed on the label control and can be changed to provide information or instructions to the user.

The CLS (Clear Screen) statement in Visual Basic is used to clear the current text or content displayed in the immediate window or form. It resets the environment to a blank state, which can be useful in scenarios where a clean slate is needed to prevent clutter during debugging or as a step before executing a new set of operations. This is particularly useful in iterative testing processes or when displaying results to ensure clarity and focus on the new output without distractions from previous data.

Controls can be added to a form in Visual Basic by using the toolbox or programmatically via code. Dragging a control from the toolbox onto the form allows for quick and easy placement with a visual reference, which is effective for designers who prefer a hands-on approach. Adding controls via code, on the other hand, provides greater flexibility and precision, as controls can be dynamically created during runtime, which is effective for developers focused on creating dynamic, data-driven interfaces.

GUIs offer several advantages over command-line interfaces, particularly in application development. They are more intuitive and user-friendly, allowing users to easily interact with the application through visual elements like buttons, menus, and icons. This reduces the learning curve and leads to greater productivity. GUIs also allow immediate visual feedback and straightforward navigation, making it easier to troubleshoot and manage tasks. Command-line interfaces, while more efficient for complex scripting or tasks, require memorization of commands and can be less accessible for non-technical users.

Page 1 of 8 
 
 
DPS – MIS, DOHA- QATAR 
CLASS VIII COMPUTER SCIENCE ASSIGNMENT 
CHAPTER 2 –STARTING WITH VISUAL BASIC 
MONTH
Page 2 of 8 
 
 
DPS – MIS, DOHA- QATAR 
CLASS VIII COMPUTER SCIENCE ASSIGNMENT 
CHAPTER 2 –STARTING WITH VISUAL BASIC 
MONTH
Page 3 of 8 
 
 
DPS – MIS, DOHA- QATAR 
CLASS VIII COMPUTER SCIENCE ASSIGNMENT 
CHAPTER 3 : VISUAL BASIC- INTEGERATED DEVELO
Page 4 of 8 
 
 
 
DPS – MIS, DOHA- QATAR 
CLASS VIII COMPUTER SCIENCE ASSIGNMENT 
CHAPTER 3 : VISUAL BASIC- INTEGERATED DEVE
Page 5 of 8 
 
 
DPS – MIS, DOHA- QATAR 
CLASS VIII COMPUTER SCIENCE ASSIGNMENT 
CHAPTER 3 : VISUAL BASIC- INTEGERATED DEVELO
Page 6 of 8 
 
 
DPS – MIS, DOHA- QATAR 
CLASS VIII COMPUTER SCIENCE ASSIGNMENT 
CHAPTER 3 : VISUAL BASIC- INTEGERATED DEVELO
Page 7 of 8 
 
 
DPS – MIS, DOHA- QATAR 
CLASS VIII COMPUTER SCIENCE ASSIGNMENT 
CHAPTER 1- INTRODUCTION TO PROGRAMMING LANGU
Page 8 of 8 
 
 
DPS – MIS, DOHA- QATAR 
CLASS VIII COMPUTER SCIENCE ASSIGNMENT 
CHAPTER 3 : VISUAL BASIC- INTEGERATED DEVELO

You might also like