Monday, February 28, 2022

DBMS Short Questions and Answers [SEE Computer Science]

 1.     Which data type is used to store numeric characters or special symbols in MS-Access? -Text

2.     Which view is used to modify a table in MS-Access? - Design view.

3.     Which data type is used to store logical data in table? - Yes/No

4.     Write any two methods of creating table in MS Access. -Design View and Using Wizard

5.     What is the caption in the table structure of MS-Access? 

-Caption is a field property which displays an alternate name for the field to make the field name more explanatory. It can contain up to 2048 characters.

6.     Which data type is suitable to store photographs of students in MS-Access? - OLE Object

7.     List the four objects of the MS-Access database. – Table, Query, Form and Report

8.     Mention the name of two views of the table in MS-Access. – Design view and Datasheet View

9.     Define validation rule.

-Validation rule is a field property which enables to limit values that can be accepted into a field.

10.  What is the default field size of short text data type in MS-Access? -255 characters

11.  What is the maximum character you can use for creating a field name in MS-Access? -64 characters

12.  What is the extension of the MS-Access database file? - .mdb

13.  Define validation text. 

-Validation text is a field property which allows type text to be displayed if the user input value is prohibited by the validation rule.

14.  Which type of query is used to calculate the total marks of students in MS-Access? – Select Query

15.  In which case the Memo field type is suitable in MS-Access? 

-         If you required to keep more than 255 characters

16.  What is the memory space used by the auto-number data type in MS-Access? – 4 bytes

17.  What are the uses of reports in MS-Access? 

-to print documents according to user specifications of the summarize information through queries or tables.

18.  Which data type is suitable to store the salary of employees in MS-Access? - Currency

19.  Differentiate data and information. 

Data can be numbers, letters or symbols representing facts and figures which may or may not give any sense. E.g.: Ram, student, 20, etc.

Information is an organized collection of related data, which gives a complete sense.

“Ram is a student. He is 20 years old.”, is information that gives a complete sense.

 

20.  What is the memory space used by the Currency data type in MS-Access? – 8 bytes

21.  Mention any four data types available in MS-Access. – Text, Memo, Currency, Date/Time

22.  Define field properties. 

-Field properties describe the characteristics and behavior of data added to that field

2.1 Database Management System [SEE Computer Science 2078]

 

2.1 Database Management System

Data [SEE 2073] [SLC 2064] [SLC 2070] [[SLC 2065 S] [SLC 2069 S]

Data can be numbers, letters or symbols representing facts and figures which may or may not give any sense. E.g.: Ram, student, 20, etc.

Information [SLC 2070]

Information is an organized collection of related data, which gives a complete sense.

 “Ram is a student. He is 20 years old.”, is information that gives a complete sense.

Database [SEE 2074] [SEE 2073] [SEE 2073 U] [SLC 2072] [SEE 2071 S] [SLC 2064] [SLC 2065]

A database is an organized collection of related data and information that can be used for different purpose so that it can easily be accessed, managed, and updated.

E.g. Dictionary, Marks Ledger, Telephone Directory etc.

DBMS (Database Management System) [SEE 2075 U] [SEE 2074 U] [SLC 2066] [SLC 2067]

Database management system (DBMS) is a computerized system that stores data process them and provide information in an organized form. E.g.: MS-Access, Oracle, Fox pro, Dbase etc.
Features of DBMS  [SEE 2075] [SLC 2071]

a)      It reduces data redundancy which means duplication of data.

b)     It makes data searching easy and fast.

c)      Large volume of data can be stored and updated easily.

d)     It provides high security of data as well as maintains accurate database.

RDBMS (Relational Database Management System) [SQE 2074]

RDBMS is a database management system that is based on the relation model in which data is stored in the form of tables and the relationship among the data is also stored in the form of tables.
E.g.: SQL, MS-Access, Oracle, etc.

MS-Access

MS-Access is RDBMS software developed by Microsoft Corporation which is used to collect, store and manage information in multiple tables.

Features of MS-Access

a)      It provides the flexible ways to add, edit, delete and display the related data.

b)     Graphical user interface made it easy to use

Objects of MS-Access [SEE 2074 U] [SLC 2071]

a) Table

b) Form                 

c) Query    

d) Report
Table

Table is an object of Ms-Access that stores large volume of data in the form of rows and columns.
The different ways to create table are:
i) Design view
ii) Using wizard

Importance of table

a)      Different properties of a field can be set in a table.

b)     It provides options for primary key which helps to make data consistent.

Record [SEE 2075 S2]

Record is a collection of multiple related fields which contains information about single items in a database. Record is complete set of information.  E.g.: Ram Chabahil 4468790

Field [SEE 2075 S2]

A column in a table is called field which contains information about a certain type for all records. Field is a small unit of information. E.g.: Name, Address, Telephone

Primary key [SEE 2075] [SEE 2073] [SEE 2071 S] [SLC 2067] [MM 2076] [PMT 2075K]

A primary key is the field that uniquely identifies each record in a database so that there will not be repetition of data. It does not allow duplicate data and null value.

 

Importance of Primary Key [SEE 2073] [SLC 2069 S] [MM 2076]

a)       To reduce and control duplication of record in a table.

b)     To set the relationship between tables.

Composite key

The group of primary key that consists of two or more attributes is called composite key.

Foreign Key

Foreign key is a unique field or combination of fields in linked table whose value matches with a primary key in another table.

Data Redundancy [SEE 2074]

Data redundancy means repetition of same piece of data in a database in more than one location. Data redundancy can be controlled in MS-Access by  normalization of database.

Data type [SEE 2075 S2] [SEE 2074] [SEE 2073] [SLC 2072] [SLC 2064] [SLC 2066] [SLC 2070]

Data type is an attribute for a field that determines what type of data it can contain.

Any four data types of MS-Access are:
i) Text
ii) Number
iii) Memo
iv) Currency

While designing table structure which data types are suitable to store information about teacher’s name, address, salary and date of birth. [SLC 2065] [SLC 2068 S]
Teacher’s name - Text
Address – Text
Salary – Currency
Date of birth – Date/Time
Identify a record, field and value from the following table structure. [SQE 2074]

Roll        Name               Marks

1             Kopila                 87

2             Rabin Rana         56  

Ans: Record = 1  Kopila  87, 2     Prabin Rana    56

Field = Roll, Name, Marks

Value = 87, 56

What happens when we enter text in a numeric field?
Ans: If we enter text in a numeric field then it displays the errors.
Text

It is used for storing text or combination of text and numbers. It can store up to 255 characters.

Memo

It is used for storing lengthy text and numbers. It can store up to 65,535 characters.

Field properties

The four types of field properties of MS-Access are:
i) Caption               ii) Format                     iii) Validation rule                     iv) Input mask

 

Caption
Caption is a field property which displays an alternate name for the field to make the field name more explanatory. It can contain up to 2048 characters.

Validation rule:

A field property which enables to limit values that can be accepted into a field is known as validation rule.

Validation text

A field property which allows type text to be displayed if the user input value is prohibited by the validation rule is known as validation text.

Indexing

Indexing is one of the important properties of database that speed up searching and storing of records using on the field.

 

Relationship

Relationship is an association among several entities (table). Its types are:
i)One to one relationship
ii)One to many relationship
iii)Many to many relationship

Sorting [SEE 2073 U] [SLC 2068]
Sorting is the process of arranging the record in ascending or descending order according to a given field or fields. Sorted data is easier to handle than unsorted data. Sorting helps to find specific information quickly.

Filtering

Filtering is an option that selects the required records and displays the result.
Query [SEE 2075 U] [SEE 2075 S2] [SLC 2072] [SLC 2065] [SLC 2069] [SEE 2066 S] [SLC 2068 S]

Query is an object of Ms-Access that is used to view, retrieve, change and analyze records from a table or multiple linked tables based on specified condition. It is the question asked to database.

The different ways to create query are:
i) Design view
ii) Using wizard

The different types of query are:
i) Select query
ii) Action query
In action query, we have update query, append query, delete query and make-table query.

Select query

A select query is a query which is used to select and display the relevant data from the database.

Action query

Action query is a query which makes changes to many records in just one operation.

Update query

Update query is a type of action query which is used to change one or more field values in many records at once.

Append query

Append query is a type of action query which adds a group of records in one or more tables to the end od records.

Delete Query

A delete query is a type of action query that removes a record or group of records from one or more tables according to the specific condition or criteria.

Make Table Query

A make-table query is a type of action query which creates a new table from all or part of the data in one or more tables.

Advantages of query [SLC 2065]

a)      We can filter, perform calculations and summarize data.

b)     Large volume of records can be updated or deleted at a same time.

Form [SEE 2073 U] [SLC 2064] [SLC 2066] [SLC 2068] [SLC 2065 S] [SLC 2069 S] [SQE 2075K]

Form is an object of Ms-Access which provides graphical interface to view, modify and add records.

The different ways to create form are:
i) Design view
ii) Using wizard

Importance of form [SEE 2075] [SLC 2064,  2066,  2065 S,  2070 S

i. We can view a complete record in specific format

ii. We can edit record easily at a time.

Report [SEE 2074 U] [SEE 2071 S] [SLC 2070] [SLC 2067 S]

Report is one of the MS-Access database objects used to present information in an effective and organized format that is ready for printing. It is generated from tables or queries.

The methods of creating report are:
i) Using design view
ii) Using report wizard

Why is Report created? / Importance of report [SEE 2071 S] [SLC 2070] [SLC 2067 S] [SEE 2075 U] [SLC 2067]

-to print documents according to user specifications of the summarize information through queries or tables.

 

Friday, February 18, 2022

SEE Computer Science [Find Output, Debug and Analytical - 1]

SEE 2075

Re-write the given program after correcting the bugs:

DECLARE FUNCTION reverse$ (N$)

INPUT "Any String"; N$

X$ = reverse$(N$)

PRINT N$

END

FUNCTION reverse (N$)

L = LEN$(N$)

FOR X = L To 1 STEP - 1

A$ = MID$ (N$,X,1)

B$ = B$+A$

NEXT X

B$ = reverse$ (N$)

END FUNCTION


Write the output of the following program:

DECLARE SUB series ( )

CALL series

END

SUB series

X = 1

FOR K = 1 TO 4

PRINT X;

X = X + K

NEXT K

END SUB


Study the following program and answer the given questions:

DECLARE SUB SUM (N)

N = 5

CALL SUM (N)

END

SUB SUM (N)

FOR X = 1 TO N

S = S + X

NEXT X

PRINT S

END SUB


In the above program how many times does the FOR ........ NEXT

loop executes ?

Write the name of the procedure used in the above program.


SEE  2075 [State 2]

Write the output of the given program :

DECLARE FUNCTION SQD(N)

CLS

S = 0

FOR L = 1 TO 3

READ NUM

S = S +SQD (NUM)

NEXT L

PRINT " Sum" ; S

DATA 2,4,6

END

FUNCTION SQD (N)

SQD = N12

END FUNCTION

Study the following program and answer the given questions:

DECLARE SUB TRIM (W$)

CLS

INPUT "Enter word" ; WO$

CALL TRIM (WO$)

END

SUB TRIM (WO$)

FOR I = 1 TO LEN (W$)

PRINT LEFT$ (W$, I)

NEXT I

END SUB


What will be the maximum value of I if input string is "SEE" in the

above program?

List the real parameter used in the above program.

Thursday, February 10, 2022

Number System [4 Marks] [SEE Questions Collections]

 Lets Practice. Day 2 - Number System [4 Marks] [SEE Questions Collections]

[SLC 2065]

i) (223)8  into decimal

ii) (CA3)16 into binary

i) 11×11

ii) Divide 1110 by 11

[SLC 2065 S]

i) (756)8 into binary

ii) (1011011011)2 into hexadecimal

(11011x110)-11101

111100÷1000

[SLC 2066]

i) (101)10 into binary

ii)(78)8 into decimal

10101-1011

110*11

[SLC 2066 S]

i) (524)10 into Octal

ii) (31A)16­ into Binary

1011x101

1010-111+101

[SLC 2067]

i) (AC3)16 into decimal

ii) (110010)2 into octal

11*11-101

Divide 1010 by 10

[SLC 2067 S]

i) (7AF)16 into binary

ii) (1101101)2 into octal

11*11+11

110÷10

[SLC 2068]

i) (108)10 into binary

ii) (173)8 into binary

111*11

1010-10+11

[SLC 2068 S]

i) (168)10 into binary

ii) (1011)2 into decimal

1011+1101

110x11

[SLC 2069]

i) (684)10 into octal

ii) (101011)2 into decimal

1011×11

Divide 100101 by 110

[SLC 2069 S]

i) (442)8 into decimal

ii) (AB)16 into binary

101 x 10

divide 1101 by 111

[SLC 2070]

i) (BED)16 into binary

ii) (1010111)2 into octal

1010 × 10

10101 ÷ 11

[SLC 2070 S]

(209)10-(x)2

ii (537)8-(x)2

101 x 111

110111-1011

[SLC 2071]

(108)10 into binary

ii) (765)8 into decimal

111×11

Divide 1101 by 11

[SLC 2071 S]

(74)8 to decimal

(FAC)16 into binary

111×11

1 0 1 – 1 1

[SLC 2072]

(i) (208)10 into Binary

(104)8 into decimal

1011 + 1101

110 x 11

[SEE 2073]

(BAD)16 into Binary

(1111001)2 into octal

11 x 10 + 11

110 ¸10

[SEE 2073 U]

(364)8 into decimal

(1101010)2 into octal

1011 x 101

100101 ÷ 101

[SLC 2074]

(523)8 into Binary

(2074)10 into hexadecimal

110 x 101

111010 ¸110

[SEE 2074 U]

(CCA)16 into decimal

(479)10 into octal

(1010) x (111)

(10011) ÷ 10

[SEE 2075 U]

(546)8 into decimal

(1011100111)2 into Hexadecimal

1011 × 101

100101 ¸ 110

[SEE 2075]

(217)10 into Binary

(39C)16 into Decimal

1011 × 11

110111 – 11001

[SEE 2075 S2]

(FA)16 into Binary

(420)10 into octal

111 x 10

1101 ÷ 101