0% found this document useful (0 votes)
31 views24 pages

I.T Proj Class 10

The document outlines various types of styles in OpenOffice, including paragraph, character, frame, page, and list styles, along with steps to apply and create custom styles. It also details properties of drawing objects and images, advantages of using templates, and procedures for customizing a Table of Contents, implementing what-if analysis scenarios, sharing spreadsheets, and running macros. Additionally, it provides macro functions for calculating student percentages.

Uploaded by

pratiraikulung
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)
31 views24 pages

I.T Proj Class 10

The document outlines various types of styles in OpenOffice, including paragraph, character, frame, page, and list styles, along with steps to apply and create custom styles. It also details properties of drawing objects and images, advantages of using templates, and procedures for customizing a Table of Contents, implementing what-if analysis scenarios, sharing spreadsheets, and running macros. Additionally, it provides macro functions for calculating student percentages.

Uploaded by

pratiraikulung
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
You are on page 1/ 24

1.

Explain different types of styles and write steps to implement


different types of styles as well as create custom styles and apply
it.

ANS: Types of Styles in OpenOffice are as follows:


a. Paragraph Styles
Apply formatting to entire paragraphs.
 Includes alignment, indentation, line spacing, and text flow options.
b. Character Styles
Apply formatting to individual characters or words within a paragraph.
 Includes font size, font color, bold, italics, and underline.
c. Frame Styles
Control the layout and formatting of text frames, graphic objects, and OLE objects.
 Includes border, spacing, background color, and alignment options.
d. Page Styles
Affect the entire page layout.
 Includes page size, margins, header, footer, background, and number of
columns.
e. List Styles
Control the formatting of bulleted and numbered lists.
 Includes bullet styles, numbering styles, and indentation .

Steps to Apply Pre-defined Styles in OpenOffice:


o Go to Format > Styles and Formatting or press F11.
o Choose the type of style you want from the top of the sidebar
(Paragraph, Character, Frame, Page, or List).
o Select the text, paragraph, or object where you want to apply the
style.
o Double-click the desired style from the list .
Creating a Custom Style:

PAGE 1 OF 24
o Use the tabs to set formatting options for your document objects
(like font, alignment, margins).
o Press F11 or go to Format > Styles and Formatting.
o Choose the appropriate style category based on what you want to
customize(paragraph,character,etc)
o In the document,select the item to save as a style.
o Right-click in the selected style category and choose New.
o In the dialog box, enter a name for your custom style.
o Click OK to save your new style.
Applying the Custom Style:
o Highlight the text or object where you want to apply the style.
o Press F11 again or go to Format > Styles and Formatting.
o Find your custom style and double-click it to apply.

PAGE 2 OF 24
2.Explain all properties of drawing objects and images. Write the
steps to modify, resize, crop and delete images or drawing objects.
ANS: The different properties of drawing objects and images found in the
properties tab are as follows:
a. Graphics:
 Image-Specific Properties
o Brightness: Adjusts the brightness of the image.
o Contrast: Controls the difference between the lightest and darkest
parts of the image.
o Transparency: Makes the image more transparent.
o Color Mode: Changes the color mode of the image (e.g., grayscale,
black and white).
o Gamma: Adjusts the mid-tones of the image for better clarity.
o Crop: Allows you to crop the image to show only a specific portion.
 Fill:
o Color: Choose a fill color for shapes.
o Gradient: Select gradient options for filling.
o Bitmap: Fill the shape with a bitmap image.
o Transparency: Adjust the transparency of the fill.
 Line:
o Color: Change the outline color of shapes.
o Style: Set the style of the outline (solid, dashed, etc.).
o Width: Adjust the thickness of the outline.
b. Position and Size:
 X Position:
o Specify the horizontal position of the object on the page.
 Y Position:
o Specify the vertical position of the object on the page.
 Width:
o Set the width of the object.

PAGE 3 OF 24
 Height:
o Set the height of the object.
c. Wrap
Options for how text wraps around the selected object. Common options include:
 None: Text does not wrap around the object.
 Page Wrap: Text wraps around the object on the page.
 Optimal Page Wrap: Text wraps optimally based on the
object’s shape.
 Through: Text flows over and under the object.
 Before: Text flows on the before the object.
 After: Text flows on the left side of the object.
Modifying Properties of Images/Drawing Objects
o Click on the image or drawing object to select it.
o Right-click on the selected object and choose Format from the
context menu.
o Adjust properties such as position, size, fill, line, shadow, etc., in the
dialog box that appears.
o Make your desired changes and click OK to apply.
Resizing Images/Drawing Objects
o Click on the image or drawing object.
o Small squares (handles) will appear around the object. Click and
drag these handles to resize.
o Hold down the Shift key while dragging a corner handle to
maintain the aspect ratio.
o Right-click the object, choose Position and Size, and enter specific
dimensions in the dialog box.

PAGE 4 OF 24
Cropping Images
o Click on the image you want to crop.
o Right-click on the image and select Crop from the context menu.
o Drag the crop handles that appear around the image to define the
area you want to keep.
o Click OK or press Enter to apply the crop.

PAGE 5 OF 24
Deleting Images/Drawing Objects
o Click on the image or drawing object to select it.
o Press the Delete key on your keyboard.

PAGE 6 OF 24
3.Explain in detail the various advantages of template? Write the
steps to use predefined templates?
ANS: Advantages of Using Templates:
a. Time-Saving:
o Templates reduce the amount of time needed to create documents
from scratch. You can quickly customize a pre-designed template
instead of starting with a blank page.
b. Consistency:
o Using templates helps maintain consistency across multiple
documents. This is particularly useful for branding purposes,
ensuring that all company documents follow the same style guide,
including fonts, colors, and logos.
c. Professional Appearance:
o Templates often come with professional designs and layouts,
enhancing the visual appeal of your documents and presentations.
This can make a significant difference when presenting to clients or
stakeholders.
d. Ease of Use:
o Templates are user-friendly, designed for users of all skill levels.
They often include placeholders for text and images, guiding users
on where to input their content.
e. Flexibility:
o While templates provide a structure, they are also customizable.
Users can modify any aspect of the template to better suit their
specific needs or preferences.
f. Built-in Functionality:
o Many templates, especially for spreadsheets, come with built-in
formulas and calculations, which can simplify data entry and
analysis.
g. Learning Tool:
o Templates can serve as educational resources. By using them, users
can learn about layout design, formatting, and document structure.

PAGE 7 OF 24
h. Standardization:
o Templates help ensure that documents meet specific standards,
which is particularly important for businesses and organizations that
require compliance with particular regulations or guidelines.
i. Easy Collaboration:
o Using standardized templates makes it easier for teams to
collaborate on documents. Team members can quickly understand
the structure and formatting of the document.
Steps to Use Predefined Templates in OpenOffice:
 Launch the OpenOffice application on your computer.
 Click on File in the top menu bar.
 Select New, and then choose Templates.
 The Template Manager window will open, displaying a list of available
templates organized into categories (like Text Documents, Spreadsheets,
Presentations, etc.).
 You can scroll through the list to find a template that suits your needs.
 To see a preview of a template, select it and click on the Preview button.
This will show you how the template looks, allowing you to determine if it
meets your requirements.
 Once you’ve found a template you like, select it and click on the Open
button. This action will create a new document based on the selected
template.
 Edit the document by adding your own text, images, and formatting.
 Replace any placeholder content with your specific information.
 After customizing the template to your liking, save the document by
clicking on File > Save As.
 Choose a file name and location, then click Save.

PAGE 8 OF 24
PAGE 9 OF 24
4.Write the steps to customize Table of Contents?
ANS: Steps to Create and Customize a Table of Contents:
o Launch OpenOffice Writer and open the document you want to
customize.
o Highlight the text that you want to include in the TOC (e.g., chapter
titles or section headings).
o Go to the Styles and Formatting toolbar (you can press F11 to
toggle it).
o Click on the Paragraph Styles icon (the first icon in the Styles and
Formatting window).
o Choose a heading style (like Heading 1, Heading 2, etc.) for the
selected text. Repeat this for all headings you want to include in the
TOC.
o Click on the Insert menu in the top menu bar.
o Select Indexes and Tables, then click on Indexes and Tables....
o TOC Dialog Box: The Indexes and Tables dialog box will appear.
o Title: You can change the title (e.g., "Table of Contents") if desired.
o Type: Ensure that "Table of Contents" is selected in the Type drop-
down menu.
o Click on the Options tab:
o Levels: Specify which heading levels to include in the TOC (e.g., only
Heading 1 and Heading 2).
o Sort Entries: Choose whether to sort entries in alphabetical order.
o Click on the Styles tab to customize the appearance:
o You can adjust the formatting for different heading levels (font
style, size, etc.).
o Once you are satisfied with the settings, click OK to insert the TOC
into your document.

PAGE 10 OF 24
PAGE 11 OF 24
5.Explain scenarios under what-if-analysis tool? Write the steps to
implement scenarios?
ANS: The Scenarios feature within What-If Analysis helps users create and save
different sets of input values, then quickly switch between them to analyse the
results. A scenario is a set of different input values for specific cells that
represent different situations or cases.
Steps to Create Scenarios in OpenOffice Calc:
o Launch OpenOffice Calc and open the spreadsheet where you want
to create scenarios.
o Highlight the cells that you want to vary across different scenarios.
These should be the input cells whose values will change for
different situations.
o Click on the Tools menu at the top.
o From the drop-down, choose Scenarios....
o In the Create Scenario dialog box, provide a meaningful Scenario
Name
o You can add a Description if necessary, to explain the scenario.
o The cells you highlighted earlier should be automatically filled in as
changing cells. These are the ones that will change based on the
scenario.
o Verify that the range shown is correct.
o Once you click OK, you will be asked to provide the new values for
the cells in the scenario. Enter the values for this specific scenario.
o To create more scenarios , repeat the steps given above.
o Each time you create a new scenario, enter different values for the
cells based on that scenario.
o After creating multiple scenarios, you can switch between them.
o To do this, go to the Tools menu, select Scenarios, and choose the
scenario you want to display from the list.
o Alternatively, you can also switch scenarios by using the drop-down
list that appears on the sheet when you create multiple scenarios.

PAGE 12 OF 24
PAGE 13 OF 24
6.What are the advantages of sharing a spreadsheet? Write the
steps to set up a spreadsheet for sharing?
ANS: Advantages of Sharing a Spreadsheet:
Collaboration:
 Multiple users can work on the same spreadsheet, making real-time
updates. This improves teamwork and productivity, especially for projects
that require input from various people.
Centralized Data:
 Sharing ensures that everyone is working with the latest version of the file,
reducing the risk of inconsistencies or outdated information.
Faster Decision-Making:
 Since data is immediately available to all stakeholders, decisions can be
made faster based on updated information.
Improved Efficiency:
 Eliminates the need to email files back and forth, which can create
confusion and lead to versioning issues. It also reduces file duplication.
User Permissions:
 Owners can control the level of access (view or edit) for different
collaborators, ensuring security and data integrity.
Steps to Set Up a Spreadsheet for Sharing:
o Launch OpenOffice Calc and open the spreadsheet you want to
share.
o Make sure that your spreadsheet is ready for sharing (properly
formatted, cleaned data, etc.).
o Click on Tools from the top menu.
o Select Share Document from the drop-down list.
o In the dialog box that appears, check the box that says Share this
document with other users.
o Click OK to confirm.
o OpenOffice Calc will now prompt you to save the document. Save it
in a location where it will be accessible to others

PAGE 14 OF 24
o After enabling sharing, share the file with others through your
preferred method. All users can now open and edit the file
simultaneously.

PAGE 15 OF 24
7.Write down the steps to run a macro? Create macro function to
find percentage of students?
ANS: Steps to Run a Macro in OpenOffice Calc
o Launch OpenOffice Calc and open the spreadsheet where you want
to run the macro.
o Click on the Tools menu at the top.
o From the drop-down, select Macros, then choose Run Macro....
o In the Run Macro dialog, you will see a list of available macros.
o Expand the folders to navigate to the macro you want to run.
o Click on the macro you wish to run to highlight it.
o Click the Run button in the dialog. The macro will execute,
performing the defined actions.

Macro function to find percentage of students:


i. Static Macro to find percentage of students
Sub Main
Dim result As Double
result = ThePercentage()
Dim oSheet As Object
oSheet = ThisComponent.CurrentController.ActiveSheet
oSheet.getCellByPosition(1, 0).setValue(result, 0)

End Sub
Function ThePercentage() As Double
Dim Percentage As Double
Dim oSheet As Object
Dim oCell1 As Object
Dim oCell2 As Object
Dim oCell3 As Object
Dim oCell4 As Object

PAGE 16 OF 24
Dim oCell5 As Object

oSheet = ThisComponent.CurrentController.ActiveSheet
oCell1 = oSheet.getCellByPosition(0, 1)
oCell2 = oSheet.getCellByPosition(0, 2)
oCell3 = oSheet.getCellByPosition(0, 3)
oCell4 = oSheet.getCellByPosition(0, 4)
oCell5 = oSheet.getCellByPosition(0, 5)

Percentage = (oCell1.getValue() + oCell2.getValue() + oCell3.getValue() +


oCell4.getValue() + oCell5.getValue()) / 500*100

ThePercentage = Percentage

End Function

ii. Dynamic Macro to find percentage of students:


Sub Main
Dim result As Double
Dim inputRange As String
Dim resultCell As String
Dim oSheet As Object
Dim scoreCells As Object

inputRange = InputBox("Enter the range of student scores (e.g.,


A2:A6):", "Input Range")

resultCell = InputBox("Enter the cell where you want to display the


result (e.g., B1):", "Result Cell")
oSheet = ThisComponent.CurrentController.ActiveSheet
result = ThePercentage(inputRange)

oSheet.getCellRangeByName(resultCell).setValue(result, 0)

PAGE 17 OF 24
End Sub

Function ThePercentage(inputRange As String) As Double


Dim Percentage As Double
Dim oSheet As Object
Dim scoreCells As Object
Dim total As Double
Dim count As Integer
Dim cell As Object
oSheet = ThisComponent.CurrentController.ActiveSheet
scoreCells = oSheet.getCellRangeByName(inputRange)
total = 0
count = 0
For i = 0 To scoreCells.getRows().getCount() - 1
For j = 0 To scoreCells.getColumns().getCount() - 1
cell = scoreCells.getCellByPosition(j, i)
If IsNumeric(cell.getValue()) Then
total = total + cell.getValue()
count = count + 1
End If
Next j
Next i
If count > 0 Then
Percentage = total / count
Else
Percentage = 0
End If
ThePercentage = Percentage

End Function

PAGE 18 OF 24
PAGE 19 OF 24
8.What is a database? What are the advantages of database? What
is the difference between flat file and relational database?
ANS: A database is an organized collection of structured data that is stored
electronically. It allows users to easily access, manage, update, and retrieve
data. Databases are managed by Database Management Systems (DBMS),
which provide tools for creating, querying, and maintaining the database.
Databases are used across various industries for tasks like managing customer
information, product inventories, financial data, and much more. They ensure that
data is structured, easily accessible, and secure.
Advantages of Using a Database:
Data Organization and Structure:
 Databases organize data in structured formats like tables, rows, and
columns, making it easier to manage, store, and retrieve information in an
orderly manner.
Data Integrity:
 Databases enforce data integrity rules (such as primary keys, foreign
keys, and constraints), ensuring accuracy, consistency, and reliability of the
data. This helps to avoid duplication and errors.
Efficient Data Access:
 Databases use indexing and querying to quickly retrieve large volumes of
data. This improves performance and makes searching, sorting, and
filtering data much faster compared to other storage methods like flat
files.
Data Security:
 User-level access controls ensure that only authorized individuals can
access, modify, or delete specific data. Databases offer various security
features, such as encryption and user authentication, to protect sensitive
information.
Data Sharing and Collaboration:
 Multiple users can access and work on the same database simultaneously,
which improves collaboration within teams and departments. Databases
allow for controlled access, so different users can perform different
operations (viewing, updating, etc.).

PAGE 20 OF 24
Reduced Data Redundancy:
 Databases help eliminate data redundancy by organizing data into
separate tables and applying normalization techniques, reducing
duplicate entries and saving storage space.
Data Consistency:
 Ensures Uniform Data Across Applications: Since the DBMS centralizes the
management of data, updates made by one user or application are
immediately reflected for others, ensuring that everyone works with
consistent, up-to-date information.
Difference between flat file and relational database :
Relational
Flat File Database
Database

Data is stored in a simple, plain-text Data is stored in multiple tables that


format, often as a single table (e.g.CSV, are connected through relationships
Excel). (e.g., SQL-based systems).

Complex structure that allows


Simple structure with no inherent
defining relationships between tables
relationships between data.
(e.g., primary keys, foreign keys).
Low redundancy due to
High redundancy, since data is often
normalization and table
duplicated across records.
relationships.
Data is stored in a structured format
Typically stored in a single file. across multiple tables in a database
management system.
Example : MySQL, PostgreSQL,
Example :CSV file, Excel sheet.
Oracle, Microsoft SQL Server.

9.Consider the following table ‘STUDENT’


Stu_id Rno Name Class Address
2021-7-56 23 Vijay 9 Tanthengchen
2019-4-58 1 Arman 12 Development area
2022-9-60 10 Chetan 11 Lingding
2017-2-62 6 Sandhya 9 Lingding

PAGE 21 OF 24
Answer the following questions:
i. Sql query to display Stu_id, Name, Class who stays in
‘Linding’
ANS: SELECT Stu_id, Name, Class
FROM STUDENT
WHERE Address = 'Lingding';
ii. Sql query to insert another detail
(2015-1-14,14,Janet,10,Development Area) inside STUDENT
table
ANS: INSERT INTO STUDENT (Stu_id, Rno, Name, Class,
Address)
VALUES ('2015-1-14', 14, 'Janet', 10, 'Development Area');
iii. Which column can be considered as primary key and which
one as alternate keys
ANS: Primary Key: Stu_id
Alternate Key: Rno

PAGE 22 OF 24
10.Write SQL query to create EMPLOYEE and DETAILS table with following
attributes:
EMPLOYEE
Eid integer primary key,
Ename varchar size of 20 should not accept NULL,
Edesig varchar size of 20 DEFAULT value ‘MANAGER’,
Edept varchar size of 20 DEFAULT value ‘ADMIN’

DETAILS
Did integer primary key,
DState varchar size of 10 DEFAULT value ‘DELHI’
DCity varchar size of 10 DEFAULT value ‘DELHI’
DAddress varchar size of 20 should not accept NULL,
Eid integer foreign key to Eid of EMPLOYEE table

ANS: TO CREATE EMPLOYEE TABLE:


CREATE TABLE EMPLOYEE (
Eid INT PRIMARY KEY,
Ename VARCHAR(20) NOT NULL,
Edesig VARCHAR(20) DEFAULT 'MANAGER',
Edept VARCHAR(20) DEFAULT 'ADMIN' );
desc employee;

TO CREATE DETAILS TABLE:


CREATE TABLE DETAILS (
Did INT PRIMARY KEY,
DState VARCHAR(10) DEFAULT 'DELHI',
DCity VARCHAR(10) DEFAULT 'DELHI',
DAddress VARCHAR(20) NOT NULL,

PAGE 23 OF 24
Eid INT,
CONSTRAINT fk_employee FOREIGN KEY (Eid) REFERENCES
EMPLOYEE(Eid)
);

PAGE 24 OF 24

You might also like