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

Computer Practical Exam Practice Questions

The document provides step-by-step instructions for creating a registration form, applying CSS effects, and building a website page using KompoZer. It also includes Java programs for calculating odd-even numbers and finding simple interest. Each section outlines the necessary actions and properties to be set for successful implementation.

Uploaded by

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

Computer Practical Exam Practice Questions

The document provides step-by-step instructions for creating a registration form, applying CSS effects, and building a website page using KompoZer. It also includes Java programs for calculating odd-even numbers and finding simple interest. Each section outlines the necessary actions and properties to be set for successful implementation.

Uploaded by

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

COMPUTER PRACTICAL

Create a Registration form using HTML in kompozer.


1. Launch KompoZer and create a new page: Open KompoZer and click on "File" then
"New". Select "Blank Page" and set the "Page Type" to "HTML".
2. Create the Form: Click on the "Forms" tab in the KompoZer toolbox and then click on
"Form". Drag the form icon to your page to create the form element.
3. Add Input Elements: From the KompoZer toolbox, click on the "Forms" tab and then
click on the "Text Input" icon. Drag the input element to your form, and repeat this
process to add more input elements, such as text boxes, radio buttons, checkboxes,
etc.
4. Set Form Properties: Right-click on the form and select "Form Properties". In the
"Form Properties" dialog box, set the "Method" to "POST" and the "Action" to the
URL of the script that will process the form data.
5. Add Labels: For each input element, add a label to describe what information should
be entered. To do this, click on the "Text" icon in the KompoZer toolbox and drag it
to the form.
6. Add a Submit Button: From the KompoZer toolbox, click on the "Forms" tab and then
click on the "Submit Button" icon. Drag the submit button to the form and set its
properties to specify the text that will be displayed on the button.
7. Save the Page: Click on "File" then "Save As" and give the page a descriptive name
with the .html file extension.
8. Test the Form: Open the HTML page in a web browser and test the form to ensure
that it is functioning properly.
Perform CSS effect in kompozer.
1. Launch KompoZer: Open KompoZer, create a new HTML page, or open an existing
one in which you want to add CSS effects.
2. Create a CSS Stylesheet: In KompoZer, click on "File" then "New" and select "CSS
Stylesheet". Give the stylesheet a descriptive name and save it in the same directory
as the HTML page.
3. Link the HTML page to the CSS stylesheet: In the HTML page, click on "Tools" then
"Head Properties". In the "Linked Stylesheets" section, click on "Add Style Sheet" and
select the CSS stylesheet you just created.
4. Add CSS Rules: In the CSS stylesheet, add CSS rules to define the styles for the
elements on your HTML page. For example, to change the background color of a
page, add the following rule:

5. Apply the CSS Rules to HTML Elements: To apply the CSS rules to specific HTML
elements, add CSS classes or ids to the elements in the HTML page. For example, to
apply the CSS rule to a specific heading, add the following HTML code:

And add the following CSS rule to the stylesheet:

6. Save the Changes: Save both the HTML page and the CSS stylesheet.
7. Preview the Effects: Open the HTML page in a web browser and preview the effects
to see if they are working as expected. If not, make adjustments to the CSS rules and
repeat the process until you achieve the desired result.
Create a website page in kompozer.
1. Launch KompoZer: Open KompoZer and create a new HTML page.
2. Add a Page Title: In the "Head Properties" section, add a title to the page. This title
will appear in the browser's tab and can be used by search engines to understand the
content of the page.
3. Add Content to the Page: In the main area of the KompoZer window, add content to
the page by using the toolbar to insert text, images, links, tables, and other elements.
4. Create Headings and Paragraphs: Use the "Format" menu to format text as headings
(H1, H2, H3, etc.) or as paragraphs.
5. Add Links: To add a link, select the text or image that you want to use as the link and
click on the "Link" icon in the toolbar. Enter the URL of the page to which you want
to link.
6. Add Images: To add an image, click on the "Image" icon in the toolbar and select the
image file you want to insert.
7. Add Tables: To add a table, click on the "Table" icon in the toolbar and specify the
number of rows and columns you want the table to have.
8. Save the Page: Click on "File" then "Save As" and give the page a descriptive name
with the .html file extension.
9. Preview the Page: Open the HTML page in a web browser and preview the page to
ensure that it is functioning properly and that the content is displayed correctly.
10. Repeat the Process: Repeat these steps to create additional pages for your website,
and use links to connect the pages together.
Write a java program to calculate odd-even numbers.

In this program, the user is prompted to enter a number. The program


then uses the modulus operator (%) to determine if the number is even
or odd. If the result of the modulus operation is 0, the number is even,
and the program prints a message indicating that it is an even number. If
the result of the modulus operation is not 0, the number is odd, and the
program prints a message indicating that it is an odd number.
Write a java program to find simple interest.

In this program, the user is prompted to enter the principal amount,


interest rate, and time period. The program then calculates the simple
interest using the formula interest = principal * rate * time /
100. The result is then printed to the console.

You might also like