TN Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1

Question 1.
Define word length.
Answer:
Word length refers to the number of bits processed by a Computer’s CPU. A word length can have 8 bits, 16 bits, 32 bits and 64 bits (Present Computers use 32 bits or 64 bits).

Question 2.
Define byte.
Answer:
A collection of 8 bits is called Byte. A byte is considered as the basic unit of measuring the memory size in the computer.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 3.
What is a bit?
Answer:
A bit is the short form of Binary digit which can be ‘0’ or ‘ 1 ’. It is the basic unit of data in computers.

Question 4.
What is Decimal Number System?
Answer:
It consists of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (10 digits). It is the oldest and most popular number system used in our day-to-day life. In the positional number system, each decimal digit is weighted relative to its position in the number. It means that each digit in the number is multiplied by 10 raised to a power corresponding to that digit’s position.

Question 5.
What is meant by Octal Number System?
Answer:
Octal number system uses digits 0, 1, 2, 3, 4, 5, 6 and 7 (8 digits). Each octal digit has its own positional value or weight as a power of 8.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 6.
Convert (547)<sub>8</sub> to its decimal equivalent?
Answer:
The Octal sequence (547)<sub>8</sub> has the decimal equivalent:
(547)8 = 5 × 82 + 4 × 81 + 7 × 80
= 5 × 64 + 4 × 8 + 7 × 1
= 320 + 32 + 7 = (359)10

Question 7.
(11.011)2 convert into decimal number.
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 1

= 3 + (0 × 0.5 + 1 × 0.25 + 1 × 0.125)
= 3 + 0 + 0.25 + 0.125 = (3.375)10

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 8.
(6213)8 convert into binary number.
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 2

Question 9.
What is a character set?
Answer:
In general, 26 uppercase letters, 26 lowercase letters, 0 to 9 digits and special characters are used in a computer is called character set. All these character set are denoted through numbers only.

Question 10.
Convert (65)10 into its equivalent binary number.
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 3

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 11.
How will you convert decimal to octal? Give example.
Answer:
To convert Decimal to Octal, “Repeated Division by 8” method can be used. Here, we have to divide the given number by 8.
Eg: Convert (65)10 into its equivalent Octal Number.

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 4

Question 12.
Write octal numbers and their binary equivalent.
Answer:

Octal Binary Equivalent
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 13.
In what ways the numbers are represented in computers?
Answer:
The numbers are represented in computers in different ways:
(i) Signed Magnitude representation.
(ii) 1 ’s Complement.
(iii) 2’s Complement.

Question 14.
Convert (11010110)2 into octal equivalent.
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 5

Question 15.
Convert the following binary numbers to decimal
(i) 11101,
(ii) 1011010.
Answer:
(i) 11101

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 6

(ii) 1011010

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 7

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 16.
Convert (3EF)16 to decimal.
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 8

Question 17.
Convert (111011)2 into its equivalent decimal number.
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 9

Question 18.
Write short note on hexadecimal number system.
Answer:
A hexadecimal number is represented using base 16. Hexadecimal or Hex numbers are used as a shorthand form of binary sequence. This system is used to represent data in a more compact manner. Since 16 symbols are used, 0 to F, the notation is called hexadecimal. The first 10 symbols are the same as in the decimal system, 0 to 9 and the remaining 6 symbols are taken from the first 6 letters of the alphabet sequence, A to F, where A represents 10, B is 11, C is 12, D is 13, E is 14 and F is 15.
Eg: The hexadecimal sequence (25)16 has the decimal equivalent:
(25)<sub>16</sub> = 2 × 16<sup>1</sup> + 5 × 16<sup>0</sup>
= 32 + 5 = (37)<sub>10</sub>

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 19.
Write the hierarchy of data representation.
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 10

Question 20.
Write the steps for binary to decimal conversion.
Answer:
To convert Binary to Decimal we can use
positional notation method.
Step 1: Write down the Binary digits and list the powers of 2 from right to left (Positional Notation)
Step 2: For each positional notation written for the digit, now write the equivalent weight.
Step 3: Multiply each digit with its corresponding weight.
Step 4: Add all the values.

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 11

Question 21.
How will you convert binary to octal?
Answer:
Step 1: Group the given binary number into 3 bits from right to left.
Step 2: You can add preceding 0 to make a group of 3 bits if the left most group has less than 3 bits.
Step 3: Convert equivalent octal value using “2’s power positional weight method”.
Eg: Convert (11010110)2 to its Octal equivalent.

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 12

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 13

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 22.
Write the steps for converting binary to hexadecimal.
Answer:
Step 1: Group the given number into 4 bits from right to left.
Step 2: You can add preceding 0’s to make a group of 4 bits if the left most group has less than 4 bits.
Step 3: Convert equivalent Hexadecimal value using “2’s power positional weight method”.
Eg: Convert (111 1010110)2 to Hexadecimal.

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 14

[Note: 0’s are added to the left most group to make it a group of 4 bits]

Question 23.
Write the steps for octal to decimal conversion.
Answer:
To convert octal to decimal, we can use positional notation method.
(i) Write down the octal digits and list the powers of 8 from right to left(Positional Notation).
(ii) For each positional notation of the digit write the equivalent weight.
(iii) Multiply each digit with its corresponding weight.
(iv) Add all the values.
Eg: Convert (1265)8 to equivalent Decimal number.

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 15

(1265)8 = 512 × 1 + 64 × 2 + 8 × 6 + 1 × 5
= 512 + 128+ 18 + 5
(1265)8 = (693)10

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 24.
Write the steps for converting hexadecimal to decimal.
Answer:
To convert Hexadecimal to Decimal we canuse positional notation method.
(i) Write down the Hexadecimal digits and list the powers of 16 from right to left (Positional Notation).
(ii) For each positional notation written for the. digit, now write the equivalent weight.
(iii) Multiply each digit with its corresponding weight.
(iv) Add all the values to get one final value.
Eg: Convert (25F)16 into its equivalent Decimal number.

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 16

(25F)16 = 2 × 256 + 5 × 16 + 15 × 1
= 512 + 80 + 15
(25F)16 = (607)10

Question 25.
Write short note on signed magnitude representation.
Answer:
The value of the whole numbers can be determined by the sign used before it. If the number has ‘+‘ sign or no sign it will be considered as positive. If the number has ‘—‘ sign it will be considered as negative.
Eg: +43 or 43 is a positive number.
– 43 is a negative number.

In signed binary representation, the left most bit is considered as sign bit. If this bit is O, it is a positive number and if it is 1, it is a negative number. Therefore a signed binary number has 8 bits, only 7 bits used for storing values (magnitude) and the 1 bit is used for sign.
+ 43 is represented in memory as follows:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 17

– 43 is represented in memory as follows:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 18

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 26.
Write 2’s complement procedure with example.
Answer:
The 2’s complement method for negative number is as follows:
(i) Invert all the bits in the binary sequence
(i.e., change every 0 to 1 and every 1 to 0 i.e.,1‘s complement).
(ii) Add I to the result to the Least Significant Bit (LSB).
Eg: 2’s Complement represent of (-24)10
Binary equivalent of +24 = 11000
8bit format = 00011000
1’s complement = 11100111
Add 1 to LSB = +1
2’s complement of -24 = 11101000

Question 27.
Write short note unicode.
Answer:
Unicode is used in most of the modem computers. The popular coding scheme after ASCII is Unicode. ASCII can represent only 256 characters. ‘English and European Languages alone can be handled by ASCII.
Languages like Tamil, Malayalam, Kannada and Telugu could not be represented by ASCII. Hence, the Unicode was generated to handle all the coding system of Universal languages. Unicode is 16 bit code and can handle 65536 characters.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 28.
Give the steps to convert fractional binary to decimal equivalent with example.
Answer:
Step 1:
Convert integral part of Binary to Decimal equivalent using positional notation method.

Step 2:
To convert, the fractional part of binary to its decimal equivalent.

Step 2.1:
Write down the Binary digits in the fractional part.

Step 2.2:
For all the digits write powers of 2 from left to right starting from 2-1, 2-2, 2-3, ………….2-n, now write the equivalent weight.

Step 2.3:
Multiply each digit with its corresponding weight.

Step 2.4:
Add all the values which you obtained in Step 2.3.

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 19

Step 3:
To get final answer write the integral part (after conversion), followed by a decimal point(.) and the answer arrived at

Step 2.4.
Eg: Convert the given Binaxy number(11.011)2 into its decimal equivalent Integer part
(11)2 = 3.

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 20

3 + (0 × 0.5 + 1 × 0.25 + 1 × 0.125) = 3.375
3 + 0.75 = 3.75
(11.011)2 = (3.375)10

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 29.
Explain in detail the different encoding systems used for computer.
Answer:
There are several encoding systems used for computer. They are –
(i)Binary Coded Decimal (BCD):
It is 26 bit encoding system. It can handle 26 = 64 characters only. This encoding system is not in the practice right now.

(ii)American Standard Code for information Interchange (ASCII):
This is the most popular encoding system recognized by United States. Most of the computers use this system. This encoding system can handle English characters only. This can handle 2<sup>7</sup> bit which means 128 characters. Here each character has individual number.

The new edition (version) ASCII – 8, has 2<sup>8</sup> bits and can handle 256 characters represented from 0 to 255 unique umbers.

The ASCII code equivalent to the uppercase letter ‘A’ is 65. The binary representation of ASCII (7 bit) value is 1000001. Also 01000001 in ASCII-8 bit.

(iii)Extended Binary Coded Decimal Interchange Code (EBCDIC):
This is similar to ASCII Code with 8 bit representation. This coding system is formulated by International Business Machine(IBM). The coding system can handle 256 characters. The input code in ASCII can be converted to EBCDIC system and vice – versa.

(iv)Indian Standard Code for Information Interchange (ISCII):
ISCII is the system of handling the character of Indian local languages. This is a 8-bit coding system and can handle 256 (2<sup>8</sup>) characters. It is formulated by the department of Electronics in India in the year 1986- 88 and recognized by Bureau of Indian Standards (BIS). Now this coding system is integrated with Unicode.

(v) Unicode:
This coding system is used in most of the modem computers. The popular coding scheme after ASCII is Unicode. ASCII can represent only 256 characters. Therefore English and European Languages alone can be
handled by ASCII. Languages like Tamil, Malayalam, Kannada and Telugu could not be represented by ASCII. Hence, the Unicode was generated to handle all the coding system of Universal languages. This is 16 bit code and can handle 65536 characters.

Question 30.
Identify the number system for the following numbers.
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 21

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 31.
State whether the following numbers are valid or not. If invalid, give reason.
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 22

Question 32.
Convert the following Decimal numbers to its equivalent Binary, Octal, Hexadecimal.
(i) 1920,
(ii) 255,
(iii) 126.
Answer:
(i) 1920

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 23

(ii) 255

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 24

(iii) 126

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 25

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 33.
Convert the given Binary number into its equivalent Decimal, Octal and Hexadecimal number.
(i) 101110101, (ii) 1011010, (iii) 101011111.

(i) 101110101 into Decimal number
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 26

(ii) 1011010 to Decimal
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 27

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 28

(iii) 101011111 to Decimal
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 29

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 34.
Convert the foltowing Octal numbers into Binary numbers.
(a) 472, (b) 145, (c) 347, (d) 6247, (e) 645.

(a) 472
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 30

(b) 145
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 31

(c) 347
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 32

(d) 6247
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 33

(e) 645
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 34

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 35.
Convert the following Hexadecimal numbers to Binary numbers:
(a) A6, (b) BE, (c) 9BC8, (d) BC9.

(a) A6
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 35

(b) BE
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 36

(c) 9BC8
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 37

(d) BC9
Answer:
B → 11 C → 12

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 38

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 36.
Write the l’s complement number and 2’s complement number for the following decimal numbers:
(a) 22 (b) -13 (c) -65 (d) -46

(a) – 22 → 101102
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 39

(b) -13 → 1101
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 40

(c) -65 → 1000001
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 41

(d) -46 → 1011102
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 42

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 37.
Perform the following binary computations:
(a) 1010 + 1510
(b) – 1210 + 510
(c) 1410 – 1210
(d) (-2)10 – (- 610).

(a) 1010 + 1510
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 43

(b) – 1210 + 510
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 44

(c) 1410 – 1210
Answer:
14 = 1110 = 00001110
– 12 = 1100 = 00001100

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 45

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 46

[The final carry bit is lost because it cannot be accommodated in the 8 – bit register]

(d) (-2)10 – (- 610)
Answer:
-2 = 10
8 bit from = 00000010
1’s complement = 11111101

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 47

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 38.
What is data?
Answer:
The term data comes from the word datum, which means a raw fact. The data is a fact about people, places or some objects.
Eg: Let ‘Name’, ‘Age’, ‘Class’, ‘Marks’ and ‘Subject’ be some defined variables. Assign a value to each of these variables.
Name = Rajesh
Age = 16
Class = XI
Mark = 65
Subject = Computer Science
Here, the values assigned to the five different variables are called data.

Question 39.
Write the l’s complement procedure.
Answer:
Step 1: Convert the given Decimal number into Binary
Step 2: Check if the binary number contains 8 bits , if less add 0 at the left most bit, to make it as 8 bits.
Step 3: Invert all bits (i.e.,s Change 1 as 0 and 0 as 1)

Question 40.
Convert (46)10 into Binary number.
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 48

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 41.
We cannot find l’s complement for (28)10. State reason.
Answer:
1 ’s complement representation is an easier approach to represent signed numbers. This is for negative numbers only. This (28)10 this whole numbers cannot be determined by negative number because the number whose MSB is 1.

Question 42.
List the encoding systems for characters in memory.
Answer:
There are several encoding systems used for computer. They are
(i) BCD: Binary Coded Decimal.
(ii) EBCDIC: Extended Binary Coded Decimal Interchange Code.
(iii) ASCII: American Standard Code for Information Interchange.
(iv) Unicode
(v) ISCII: Indian Standard Code for Information Interchange.

Question 43.
What is radix of a number system? Give example.
Answer:
A numbering system is a way of representing numbers. The most commonly used numbering system in real life is Decimal number system. Other number systems are Binary, Octal, Hexadecimal number system. Each number system is uniquely identified by its base value or radix. Radix or base is the count of number of digits in each number system. Radix or base is the general idea behind positional numbering system.
Eg:(123)10, (547)8, (1001)2, (25)16.
In this, 10, 8, 2, 16 are radix or base value.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 44.
Write note on binary number system.
Answer:
There are only two digits in the Binary system, 0 and 1. The numbers in the binary system are represented to the base 2 and the positional multipliers are the powers of 2. The left most bit in the binary number is called as the Most Significant Bit (MSB) and it has the largest positional weight. The right most bit is the Least Significant Bit (LSB) and has the smallest positional weight.

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 49

Eg: The binary sequence (1101)2 has the decimal equivalent:
(1101)2 = 1 × 23 + 1 × 22 + 0 × 21 + 1 × 20
= 8 + 4 + 0 + 1 =(13)10

Question 45.
Convert (150)10 into Binary, then convert that Binary number to Octal.
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 50

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 51

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 46.
Write short note on ISCII.
Answer:
ISCII is the system of handling the character of Indian local languages. This is a 8-bit coding system. So it can handle 256 (28) characters. This system is formulated by the department of Electronics in India in the year 1986-88 and recognized by Bureau of Indian Standards (BIS). Now this coding system is integrated with Unicode.

Question 47.
Add: (i)-2210 + 1510;
(ii) 2010 + 2510.

(i) -2210 + 1510
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 52

(ii) 20 + 25
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 53

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 48.
(a) Write the procedure to convert fractional Decimal to Binary.
(b) Convert (98.46)10 to Binary.
Answer:
(a) The method of repeated multiplication by 2 has to be used to convert such kind of decimal fractions.
The steps involved in the method of repeated multiplication by 2:

Step 1: Multiply the decimal fraction by 2 and note the integer part. The integer part is either 0 or 1.
Step 2: Discard the integer part of the previous product. Multiply the fractional part of the previous product by 2. Repeat Step 1 until the same fraction repeats or terminates (0).
Step 3: The resulting integer part forms a sequence of 0s and Is that become the binary equivalent of decimal fraction.
Step 4: The final answer is to be written from first integer part obtained till the last integer part obtained.

(b) (98.46)10
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 54

Question 49.
Find 1’s Complement and 2’s Complement for the following Decimal number: (a) – 98,
(b) -135.
(a) – 98
Answer:
First, convert given decimal number into binary.

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 55

Binary number = 11000102
Second, check binary number as 8 bits, If less add 0 as the left most bit, 01100010
Third, Invert all bits (change 1 as 0 and 0 as 1) 1 ’s complement for 10011101.
2’s complement:
Binary equivalent of + 98 = 1100010
8 bit format = 01100010
1 ’s complement = 10011101
Add 1 to LSB = 1
10011110
2’s complement of – 98 = 100111102

(b) – 135
Answer:
First, convert given decimal number into Binary.

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 56

Second, check binary number as 8 bits, If less add 0 at the left most bit. It has 8 bits, 10000111.
Third, Invert all bits (change 1 as 0 and 0 as 1) 1 ’s complement for 01111000.

2’s complement:
Binary equivalent of + 135 = 10000111
8 bit format = 10000111
1 ’s complement = 01111000
Add 1 to LSB = 1
01111001
2’s complement of- 135 = 011110012

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 50.
(a) Add 11010102+ 1011012
(b) Subtract 11010112 – 1110102

(a) Add 11010102+ 1011012
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 57

(b) Subtract 11010112 – 1110102
Answer:

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 58

11010112 – 1110102

TN State Board 11th Computer Science Important Questions Chapter 2 Number Systems Part 1 59

11010112 – 1110102 = 1100012

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Choose the correct answer:

Question 1.
A bit is the short form of:
(a) binary data
(b) binary digit
(c) binary decimal
(d) big digit
Answer:
(b) binary digit

Question 2.
A ________ is a collection of 4 bits.
(a) bit
(b) byte
(c) nibble
(d) word length
Answer:
(c) nibble

Question 3.
A collection of 8 bits is called:
(a) bit
(b) byte
(c) word length
(d) nibble
Answer:
(b) byte

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 4.
2^40 is referred as:
(a) mega
(b) giga
(c) peta
(d) tera
Answer:
(d) tera

Question 5.
2^70 is referred as:
(a) peta
(b) exa
(c) zetta
(d) yotta
Answer:
(c) zetta

Question 6.
1024 GB is referred as :
(a) kilo byte
(b) mega byte
(c) giga byte
(d) tera byte
Answer:
(d) tera byte

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 7.
____________ are used to represent characters in a text.
(a) Bits
(b) Bytes
(c) Nibble
(d) Wordlength
Answer:
(b) Bytes

Question 8.
The ASCII value for blank space is:
(a) 32
(b) 91
(c) 48
(d) 65
Answer:
(a) 32

Question 9.
The ASCII value for numeric 0 is:
(a) 32
(b) 97
(c) 48
(d) 65
Answer:
(c) 48

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 10.
Each number system is uniquely identified by its:
(a) decimal value
(b) binary value
(c) base value or radix
(d) octal value
Answer:
(c) base value or radix

Question 11.
The range of ASCII values for lower case alphabets is from:
(a) 97 to 122
(b) 65 to 90
(c) 98 to 122
(d) 97 to 123
Answer:
(a) 97 to 122

Question 12.
The range of ASCII values for upper case alphabets is from:
(a) 97 to 122
(b) 65 to 90
(c) 66 to 90
(d) 65 to 97
Answer:
(b) 65 to 90

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 13.
The expansion of MSB is:
(a) Most Significant Bit
(b) Most Signed Bit
(c) Must Significant Bit
(d) Must Signed Bit
Answer:
(a) Most Significant Bit

Question 14.
The expansion of LSB is:
(a) Lower Significant Bit
(b) Least Significant Bit
(c) Lower Signed Bit
(d) Least Signed Bit
Answer:
(b) Least Significant Bit

Question 15.
Radix of octal number is:
(a) 2
(b) 10
(c) 16
(d) 8
Answer:
(d) 8

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 16.
The binary sequence (1101)2 has the decimal equivalent:
(a) (25)10
(b) (15)10
(c) (17)10
(d) (13)10
Answer:
(d) (13)10

Question 17.
In hexadecimal C represents:
(a) 11
(b) 10
(c) 12
(d) 15
Answer:
(c) 12

Question 18.
The simplest method to represent negative binary numbers is called:
(a) signed magnitude
(b) unsigned magnitude
(c) magnitude bit
(d) unmagnitude bit
Answer:
(a) signed magnitude

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 19.
EBDIC coding system can handle characters.
(a) 64
(b) 255
(c) 256
(d) 128
Answer:
(c) 256

Question 20.
The most commonly used coding scheme is the:
(a) Binary Coded Decimal
(b) Extended Binary Coded Decimal Interchange Code
(c) Indian Standard Code for Information Interchange
(d) American Standard Code for Information Interchange
Answer:
(d) American Standard Code for Information Interchange

Question 21.
Which is the basic unit of measuring the memory size in the computer?
(a) bit
(b) byte
(c) nibble
(d) word length
Answer:
(b) byte

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 22.
What is the most commonly used numbering system in real life?
(a) Binary
(b) Octal
(c) Decimal
(d) Hexadecimal
Answer:
(c) Decimal

Question 23.
Which of the following is octal number?
(a) 1101
(b) 1178
(c) 778
(d) 8005
Answer:
(a) 1101

Question 24.
Which of the following is not a binary number?
(a) 2101
(b) 1000
(c) 1111
(d) 1001
Answer:
(a) 2101

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 25.
Which of the following is a Hexadecimal number?
(a) 1234
(b) ABCD
(c) 1001
(d) All the above
Answer:
(d) All the above

Question 26.
Unicode is a ______ bit code.
(a) 8
(b) 16
(c) 32
(d) 64
Answer:
(b) 16

Question 27.
What is the 1 ’s complement for (-24)10?
(a) 00011000
(b) 11100111
(c) 11110011
(d) 11100001
Answer:
(b) 11100111

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 28.
Who formulated ASCII coding system?
(a) Microsoft
(b) Oracle
(c) IBM
(d) SVN
Answer:
(c) IBM

Question 29.
What is the ASCII value of A in decimal number?
(a) 65
(b) 66
(c) 67
(d) 68
Answer:
(a) 65

Question 30.
ISCII coding system is formulated by:
(a) Electronics in India
(b) IBM
(c) Oracle corporation
(d) Sun micro systems
Answer:
(a) Electronics in India

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 31.
Which coding system is used in most of the modern computers?
(a) ASCII
(b) BCD
(c) ISCII
(d) Unicode
Answer:
(d) Unicode

Question 32.
Unicode scheme is denoted by:
(a) Binary numbers
(b) Octal numbers
(c) Hexadecimal numbers
(d) Decimal numbers
Answer:
(c) Hexadecimal numbers

Question 33.
What is the ASCII value of a in decimal number?
(a) 95
(b) 96
(c) 97
(d) 98
Answer:
(c) 97

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 34.
What is the ASCII value of * symbol in Hexadecimal number?
(a) 2B
(b) 2A
(c) 2C
(d) 2D
Answer:
(b) 2A

Question 35.
What is the ASCII value of @ symbol in octal number?
(a) 111
(b) 571
(c) 100
(d) 123
Answer:
(c) 100

Question 36.
Unicode can handle characters.
(a) 65536
(b) 75536
(c) 66535
(d) 85536
Answer:
(a) 65536

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 37.
BCD can handle _______ characters only.
(a) 65
(b) 75
(c) 64
(d) 94
Answer:
(c) 64

Question 38.
ASCII can handle characters.
(a) 365
(b) 128
(c) 256
(d) 255
Answer:
(b) 128

Question 39.
________ can handle all the coding system of universal languages.
(a) Unicode
(b) ISCII
(c) EBCDIC
(d) BCD
Answer:
(a) Unicode

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 40.
Choose the odd man out:
(a) Bit
(b) Byte
(c) Nibble
(d) IBM
Answer:
(d) IBM

Question 41.
Choose the odd man out:
(a) Octal variable
(b) Logical variable
(c) Binary valued variable
(d) Boolean variable
Answer:
(a) Octal variable

Question 42.
Match the following:

(i) (1010)2 (a) Octal
(ii) (989)16 (b) Binary
(iii) (750)8 (c) Decimal
(iv) (926)10 (d) Hexadecimal

(a) (i) – (d); (ii) – (a); (iii) – (b); (iv) – (c)
(b) (i) – (b); (ii) – (d); (iii) – (a); (iv) – (c)
(c) (i) – (b); (ii) – (a); (iii) – (d); (iv) – (c)
(d) (i) – (d); (ii) – (b); (iii) – (a); (iv) – (c)
Answer:
(b) (i) – (b); (ii) – (d); (iii) – (a); (iv) – (c)

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 43.
Match the following:

Hexadecimal

 Binary

(i) A (a) 1101
(ii) B (b) 1010
(iii) D (c) 1110
(iv) E (d) 1011

(a) (i) – (d); (ii) – (b); (iii) – (a); (iv) – (c)
(b) (i) – (c); (ii) – (d); (iii) – (a); (iv) – (b)
(c) (i) – (b); (ii) – (d); (iii) – (a); (iv) – (c)
(d) (i) – (b); (ii) – (a); (iii) – (d); (iv) – (c)
Answer:
(c) (i) – (b); (ii) – (d); (iii) – (a); (iv) – (c)

Question 44.
Match the following:

(i) BCD (a) 0 – 15
(ii) EBCDIC (b) 65536 characters
(in) Unicode (c) 256 characters
(iv) Hexadecimal (d) 64 characters

(a) (i) – (d); (ii) – (c); (iii) – (b); (iv) – (a)
(b) (i) – (d); (ii) – (a); (iii) – (b); (iv) – (c)
(c) (i) – (a); (ii) – (b); (iii) – (d); (iv) – (c)
(d) (i) – (c); (ii) – (a); (iii) – (d); (iv) – (b)
Answer:
(a) (i) – (d); (ii) – (c); (iii) – (b); (iv) – (a)

Question 45.
Choose the correct pair.

Column – I

 Column – II

(a) 2 011
(b) 4 100
(c) 5 110
(d) 7 010

Answer:
(b)

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 46.
Choose the incorrect pair.

Column – I

 Column – II

(a) Kilo byte 2^10
(b) Mega byte 2^20
(c) Peta byte 2^50
(d) Exa 2^70

Answer:
(d)

Question 47.
Assertion (A):
The computer can understand only Machine language.
Reason (R):
The Machine language is 0 and 1.
(a) Both A and R are true, and R is the correct explanation for A.
(b) Both A and R are true, but R is not the correct explanation for A.
(c) A is true, but R is false.
(d) A is false, but R is true.
Answer:
(a) Both A and R are true, and R is the correct explanation for A.

Question 48.
Assertion (A):
A numbering system is a way of representing numbers.
Reason (R):
The most commonly used numbering system in real life is Binary number system.
(a) Both A and R are true, and R is the correct explanation for A.
(b) Both A and R are true, but R is not the correct explanation for A.
(c) A is true, but R is false.
(d) A is false, but R is true.
Answer:
(c) A is true, but R is false.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 49.
Assertion (A):
The popular coding scheme after ASCII is Unicode.
Reason (R):
The Unicode was generated to handle all the coding system of universal language.
(a) Both A and R are true, and R is the correct explanation for A.
(b) Both A and R are true, but R is not the correct explanation for A
(c) A is true, but R is false.
(d) A is false, but R is true.
Answer:
(a) Both A and R are true, and R is the correct explanation for A.

Question 50.
A collection of 8 bits is called:
(a) bit
(b) byte
(c) word length
(d) nibble
Answer:
(b) byte

Question 51.
The ASCII value for numeric 0 is:
(a) 32
(b) 97
(c) 48
(d) 65
Answer:
(c) 48

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 52.
The expansion of LSB is:
(a) Lower Significant Bit
(b) Least Significant Bit
(c) Lower Significant Bit
(d) Least Signed Bit
Answer:
(b) Least Significant Bit

Question 53.
Which refers to the number of bits processed by a computer’s CPU?
(a) Byte
(b) Nibble
(c) Word length
(d) Bit
Answer:
(c) Word length

Question 54.
How many bytes does 1 KiloByte contain?
(a) 1000
(b) 8
(c) 4
(d) 1024
Answer:
(d) 1024

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 55.
Expansion for ASCII:
(a) American School Code for Information Interchange
(b) American Standard Code for Information Interchange
(c) All Standard Code for Information Interchange
(d) American Society Code for Information Interchange
Answer:
(b) American Standard Code for Information Interchange

Question 56.
2^50 is referred as:
(a) kilo
(b) tera
(c) peta
(d) zetta
Answer:
(c) peta

Question 57.
How many characters can be handled in Binary Coded Decimal System?
(a) 64
(b) 255
(c) 256
(d) 128
Answer:
(a) 64

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 58.
For 11012 what is the Hexadecimal equivalent?
(a) F
(b) E
(c) D
(d) B
Answer:
(c) D

Question 59.
What is the 1 ’s complement of 00100110?
(a) 00100110
(b) 11011001
(c) 11010001
(d) 00101001
Answer:
(b) 11011001

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 2 Number Systems Part 1

Question 60.
Which amongst this is not an Octal number?
(a) 645
(b) 234
(c) 876
(d) 123
Answer:
(c) 876

TN Board 11th Computer Science Important Questions

TN Board 11th Computer Science Important Questions Chapter 1 Introduction to Computers

TN State Board 11th Computer Science Important Questions Chapter 1 Introduction to Computers

Question 1.
What are Registers?
Answer:
Registers are the high speed temporary storage locations in the CPU. Although the number of registers varies from computer to computer, there are some registers which are common to all computers.

Question 2.
What type of challenges are frequently involved in natural language processing (NLP)?
Answer:
Speech Recognition, Natural Language Understanding and Natural Language Generation.

Question 3.
What is the function of Robotics?
Answer:
Robotics deals with the design, construction, operation and use of robots, as well as computer systems for their control, sensory feedback and processing.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 4.
What is Data?
Answer:
Data is defined as an unprocessed collection of raw facts, suitable for communication, interpretation or processing.
Eg: 134, 16 ‘Kavitha’, ‘C’ are data.

Question 5.
What is Information?
Answer:
Information is a collection of facts from which conclusions may be drawn. Data is the raw facts that is processed to give meaningful, ordered or structured information. Eg: Kavitha is 16 years old. This information is about Kavitha and conveys some meaning. This conversion of data into information is called data processing.

Question 6.
Write the different types of mouse.
Answer:
The different types of mouse are: Mechanical Mouse, Optical, Laser Mouse, Air Mouse, 3D Mouse, Tactile Mouse, Ergonomic Mouse and Gaming Mouse.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 7.
What is Track Ball?
Answer:
Track ball is similar to the upside-down design of the mouse. The user moves the ball directly, while the device itself remains stationary. The user spins the ball in various directions to navigate the screen movements.

Question 8.
Mention the uses of scanner.
Answer:
Scanners are used to enter the information directly into the computer’s memory. This device works like a Xerox machine. It converts any type of printed or written information including photographs into a digital format, which can be manipulated by the computer.

Question 9.
What is the use of plotters?
Answer:
Plotter is an output device that is used to produce graphical output on papers. It uses single color or multi color pens to draw pictures.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 10.
How printers are categorized?
Answer:
Printers are used to print the information on papers. They are divided into two main categories:
(i) Impact Printers.
(ii) Non-Impact Printers.

Question 11.
Name the types of Booting process?
Answer:
Booting process is of two types:
(i) Cold Booting.
(ii) Warm Booting.

Question 12.
What is meant by Cold Booting?
Answer:
When the system starts from initial state i.e., it is switched on, we call it Cold Booting or Hard Booting. When the user presses the Power button, the instructions are read from the ROM to initiate the booting process.

Question 13.
What is meant by Warm Booting?
Answer:
When the system restarts or when Reset button is pressed, we call it Warm Booting or Soft Booting. The system does not start from initial state and so all diagnostic tests need not be carried out in this case. There are chances of data loss and system damage as the data might not have been stored properly.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 14.
Write the performance of a Retinal Scanner?
Answer:
It performs a retinal scan which is a biometric technique that uses unique patterns on a person’s retinal blood vessels.

Question 15.
What is meant by Abacus?
Answer:
It is the first calculating device which led to an extremely high speed calculating devices.

Question 16.
What is a Artificial Neural Networks?
Answer:
It is one of the most dramatic changes in the sixth generation and will be the explosive growth of wide area networking. Natural Language Processing (NLP) is a component of Artificial Intelligence (AI).

Question 17.
What is developed using Deep Learning Neural Networks?
Answer:
Optical Character Recognition (Optical Grapheme Recognition) engine for the Indus scripts has been developed using Deep Learning Neural Networks (a sub-field of Artificial Intelligence).

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 18.
What is mean by hardware?
Answer:
It is the physical component of a computer like motherboard, memory devices, monitor, keyboard etc.

Question 19.
What is known as IPO cycle?
Answer:
Task given to a computer follows an Input- Process-Output cycle (IPO cycle). It needs certain input, processes that input and produces the desired output.

Question 20.
What are the different types of keys available in the keyboard?
Answer:
Different set ofkeys available in the keyboard: Character keys, modifier keys, system and GUI keys, enter and editing keys, function keys, navigation keys, numeric keypad and lock keys.

Question 21.
What are the different actions using mouse?
Answer:
Move, click, double click, right click, drag and drop are the actions using mouse.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 22.
What is meant by booting?
Answer:
When the computer is switched on, the post will be executed and check if the devices are connected properly and ready to operate. If these devices are ready, then the BIOS gets executed. This process is called booting.

Question 23.
What is called bootstrap loader?
Answer:
After the booting process is over, a program called bootstrap loader transfers OS from hard disk into main memory. The OS will load and get executed. This is called bootstrap loader.

Question 24.
What is known as punched cards?
Answer:
Punch cards are paper cards containing several punched or perforated holes that were punched by hand or machine to represent data. They are also known as Hollerith cards.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 25.
What is meant by machine language?
Answer:
It is a collection of binary digits or bits that the computer reads and interprets.

Question 26.
What is meant by High level language?
Answer:
It is a computer programming language that isn’t limited by the computer, designed for a specific job, and is easier to understand.

Question 27.
What is meant by Nano technology?
Answer:
Nano technology is an engineering, science, and technology that develops machines or • works with one atom or one molecule that is 100 nanometers or smaller.

Question 28.
What is meant by bioengineering?
Answer:
It is a discipline that applies engineering principles of design and analysis to biological systems and biomedical technologies.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 29.
What is a mouse?
Answer:
Mouse (wired/wireless) is a pointing device used to control the movement of the cursor on the display screen. It can be used to select icons, menus, command buttons or activate something on a computer. Some mouse actions are move, click, double click, right click, drag and drop.

Question 30.
What are the variety of mouse available?
Answer:
Mechanical Mouse, Optical and Laser Mouse, Air Mouse, 3D Mouse, Tactile Mouse, Pucks, Ergonomic Mouse and Gaming Mouse are the available mouses. Among all Mechanical and Optical and Laser mouse is very familiar.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 31.
What are the two types of printers? Give example.
Answer:
Printers are used to print the information on papers. They are divided into two main categories:
(i) Impact Printers and
(ii) Non Impact printers

(i) Impact Printers:
These printers print with striking of – hammers or pins on ribbon. These printers can print on multi-part (using carbon papers) by using mechanical pressure. Eg: Dot Matrix printers and Line matrix printers are impact printers.

(ii) Non-Impact Printers:
These printers do not use striking mechanism for printing. They use electrostatic and laser technology. Quality and speed of these printers is better than Impact printers. Eg: Laser printers and Inkjet printers are hon-impact printers.

Question 32.
What is the classification of memory?
Answer:
The Memory Unit is of two kinds which are primary memory and secondary memory. The primary memory is used to temporarily store the programs and data when the instructions are ready to execute.Eg: RAM
The secondary memory is used to permanently store the data. Eg: Hard disk, CD-ROM.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 33.
What is boot sequence? (or) Write the process of Booting.
Answer:
An Operating System (OS) is a basic software that makes the computer to work. When a computer is switched on, there is no information in its RAM. At the same time, in ROM, the pre-written program called POST (Power on Self Test) will be executed first. This program checks if the devices like RAM, keyboard, etc., are connected properly and ready to operate. If these devices are ready, then the BIOS (Basic Input Output System) gets executed. This process is called Booting. Thereafter, a program called “Bootstrap Loader” transfers OS from hard disk into main memory. Now the OS gets
loaded (Windows/Linux, etc.,) and will get executed.
Booting process is of two types:
(i) Cold Booting
(ii) Warm Booting.

Question 34.
Write short notes on sixth generation computers.
Answer:
In the Sixth Generation, computers could be defined as the era of intelligent computers, based on Artificial Neural Networks. One of the most dramatic changes in the sixth generation will be the explosive growth of Wide Area Networking. Natural Language Processing (NLP) is a component of Artificial Intelligence (AI). It provides the ability to develop the computer program to understand human language.

Question 35.
Write the mechanism for mechanical mouse.
Answer:
(i) A small ball is kept inside and touches the pad through a hole at the bottom of the mouse.
(ii) When the mouse is moved, the ball rolls.
(iii) This movement of the ball is converted into signals and sent to the computer.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 36.
Write the function of keyboard.
Answer:
Keyboard (wired / wireless, virtual) is the most common input device used today. The individual keys for letters, numbers and special characters are collectively known as character keys. This keyboard layout is derived from the keyboard of original typewriter. The data and instructions are given as input to the computer by typing on the keyboard.

Apart from alphabet and numeric keys, it also has Function keys for performing different functions. There are different set of keys available in the keyboard such as character keys, modifier keys, system and GUI keys, enter and editing keys, function keys, navigation keys, numeric keypad and lock keys.

Question 37.
Write short notes on
(i) Optical character reader
(ii) Voice input system.
Answer:
(i) Optical Character Reader:
It is a device which detects characters printed or written on a paper with OCR, a user can scan a page from a book. The Computer will recognize the characters in the page as letters and punctuation marks and stores. The Scanned document can be edited using a word processor.

(ii) Voice Input System:
Microphone serves as a voice input device. It captures the voice data and send it to the Computer. Using the microphone along with speech recognition software can offer a completely new approach to input information into the Computer.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 38.
Expand the following:
(i) POST
(ii) BIOS
(iii) NLP.
Answer:
(i) POST: Power On Self Test.
(ii) BIOS: Basic Input Output System.
(iii) NLP: Natural Language Processing.

Question 39.
How the touch screen allows the user to interact with computer?
Answer:
A touch screen is a display device that allows the user to interact with a computer by using the finger. It can be quite useful as an alternative to a mouse or keyboard for navigating a Graphical User Interface (GUI).

Touch screens are used on a wide variety of devices such as computers, laptops, monitors, smart phones, tablets, cash registers and information kiosks. Some touch screens use a grid of infrared beams to sense the presence of a finger instead of utilizing touch-sensitive input.

Question 40.
What is the use of Fingerprint Scanner?
Answer:
Fingerprint Scanner is a fingerprint recognition device used for computer security, equipped with the fingerprint recognition feature that uses biometric technology. Fingerprint Reader / Scanner is a very safe and convenient device for security instead of using passwords, which is vulnerable to fraud and is hard to remember.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 41.
Write about the light pen.
Answer:
A light pen is a pointing device shaped like a pen and is connected to a monitor. The tip of the light pen contains a light-sensitive element which detects the light from the screen enabling the computer to identify the location of the pen on the screen. Light pens have the advantage of ‘drawing’ directly onto the screen, but this becomes hard to use, and is also not accurate.

Question 42.
What is hardware and software?
Answer:
Hardware is the physical component of a computer like motherboard, memory devices, monitor, keyboard etc. Software is the set of programs or instructions.

Question 43.
Give the use of speakers.
Answer:
Speakers produce voice output (audio). Using speaker along with speech synthesize software, the computer can provide voice output. This has become very common in places like airlines, schools, banks, railway stations, etc.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 44.
List a few commonly used Input devices and explain them briefly.
Answer:
The most commonly used Input devices are:
(i) Keyboard: For answer refer Page 18, Q.No. 8.
(ii) Mouse: For answer refer Page 17, Q.No. 1.
(iii) Scanner: For answer refer Page 15, Q.No. 8.
(iv) Barcode Readers: A Bar code is a pattern printed in lines of different thickness. The Bar code reader scans the information on the bar codes and transmits to the Computer for further processing. The system gives fast and error free entry of information into the computer.
(v) Digital camera: It captures images / videos directly in the digital form. It uses a CCD (Charge Coupled Device) electronic chip. When light falls on the chip through the lens, It converts light rays into digital format.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 45.
Write the commonly used output devices and explain them briefly.
Answer:
The most commonly used output devices are
(i) Monitor,
(ii) Printers.
(i) Monitor:
For answer refer Page 5,
Q.No. 8.

(ii)Printers:
Printers are used to print the information on papers. Printers are divided into two main categories.
Printers

TN State Board 11th Computer Science Important Questions Chapter 1 Introduction to Computers 1

(a) Impact Printers:
For answer refer Page 4, Q.No. 6.

(b) Non-Impact Printers:
These printers donot use striking mechanism for printing. They use electrostatic or laser technology. Quality and speed of these printers are better than Impact printers. Eg: Laser printers and Inkjet printers are non-impact printers.

Thermal Printers:
It is a digital printing process which produces a printed image by selectively heating coated thermochromic paper or thermal paper as it is commonly known, when the paper passes over the thermal print head. The coating turns black in the areas where it is heated, producing an image. Two colour direct thermal printers can print both black and an additional colour (often red) by applying heat at two different temperature.

Laser Printers:
Laser printers mostly work with similar technology used by photocopiers. It makes a laser beam scan back and forth across a drum inside the printer, building up a pattern. It can produce very good quality of graphic images. One of the chief characteristics of laser printer is their resolution – how many Dots per inch(DPI). The available resolution range around 1200 dpi. Approximately it can print 100 pages per minute(PPM).

Inkjet Printers: For answer refer Page 7, Q.No. 3 (I).

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 46.
Explain the types of mouse.
Answer:

TN State Board 11th Computer Science Important Questions Chapter 1 Introduction to Computers 2

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 47.
Explain the classification of computers.
Answer:
The computer systems can be classified on the following basis:
(i) On the basis of size.
(ii) On the basis of functionality.
(iii) On the basis of data handling.
Classification on the basis of size:
Super computers:
The super computer is a computers are the most high performing system. The actual performance of a super
computer is measured in FLOPS [Floating point Operations Per Second] instead of MIPS [Million Instruction Per Second]. All of the world’s fastest 500 supercomputers run Linux-based operating systems.

Super computers are used for intensive computation tasks in various fields, including weather forecasting, climate research, oil and gas exploration, molecular modeling and physical simulations. Eg: PARAM, Jaguar, roadrunner.

Main frame computers:
These are commonly called as big iron, they are usually used by big organisations for bulk data processing such as statistics, census data processing, transaction processing and are widely used as the servers. Eg: IBMZ series, system Z9 and system Z10 servers.

Minicomputer:
Computer that is smaller, less expensive and less powerful than mainframe or supercomputer, but more expensive and more powerful than a personal computer. Minicomputers are used for scientific and engineering computations, business transaction processing, file handling and database management. Eg: Person laptop, PC etc.

Micro computers:
A microcomputer is a computer with a central processing unit (CPU) as a microprocessor. Designed for individual use, a microcomputer is small than a mainframe or a minicomputer. It includes a microprocessor, memory and minimal I/O circuitry mounted on a single printed circuit board. Eg: Tablets, Smart watches.

Classification on the basis of functionality:
Servers:
Servers are nothing but dedicated computers which are set up to offer some services to the clients. Eg: Security server, database server.
Workstation:
Those are the computers designed to primarily to be used by single user at a time. They are the ones which we use for our day to day personal / commercial / work.

Information Appliances:
They are the portable devices which are designed to perform a limited set of tasks like basic calculations, playing multimedia, browsing internet etc. They are generally referred as the mobile devices.

Embedded computers:
They are the computing devices which are used in other machines to serve limited set of requirements.

Classification on the basis of data handling:

Analog computer:
An analog computer is a computer which is used to process analog data. Analog computers store data in a continuous form of physical quantities and perform calculations with the help of measures. Example of such data are pressure, temperature, voltage, speed and weight. Real-time operation and simultaneous computation is possible with the help of analog computers.

Digital computer:
A computer that performs calculations and logical operations with quantities represented as digits, usually in the binary number system of “0” and “1” computer capable of solving problems by processing information in discrete form.

Hybrid computer: A computer that processes both analog and digital data, Hybrid computer is a digital computer that accepts analog signals, converts them to digital and processes them in digital form.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 48.
Give the details of motherboard names, RAM capacity used in the years 1993, 1995, 2005, 2008, 2016.
Answer:
1993 – Intel develops PPGA for setting chipset to mother board. Plastic pin grid array was developed by intel in 1993. It is assisted in Integrated circuit packaging 4 MB RAM capacity used.

1995 – Intel releases new mother board ATX form factor. This motherboard including new dimensions and layout. Improving, space and interchange ability of parts, it solved many issues faced by system builders. 8 MB RAM capacity used.

2005 – Intel introduces balanced technology extended. Intel’s concept to redesign the ATX case was short lived mainly because compatible components where limited as well as it not being able to accept energy efficient components. 2 GB RAM is used.

2008 – TheT Mobile ITX, VIAS mobile – ITX is the world smallest complaint mother board
form factor. Just 60 MM by 60 MM. 4 GB RAM is used.

2016 – Intel 100 series motherboard has been superseded by the 200 series with the advent of the 7th generation Kaby Lake CPUs. 16 GB RAM is used.

Question 49.
Mention two new input and output devices that are not given in this chapter.
Answer:
Input devices:
(i) Joystick:
Joystick is also a pointing device, which is used to move the cursor position on a monitor screen. It is a stick having a spherical ball as its both lower and upper ends. The function of the joystick is similar to that of a mouse. It is mainly used in computer Aided Designing (CAD) and playing computer games.

(ii) Digitizer:
Digitizer is an input device which converts analog information into digital form. It can convert a signal from the television or camera into a series of numbers that could be stored in a computer. It is also known as graphics tablet. It is used for five works of drawing and image manipulation applications.

(iii) Optical Mark Reader (OMR):
OMR is a special type of optical scanner used to recognize the type of mark made by pen or pencil. It is specially used for checking the answer sheets of examinations having multiple choice questions.

(iv) MIDI keyboard:
MIDI keyboard is the most uses keyboard for composing the songs. Generally, the piano is used with a computer to compose the song with the use of USB or MIDI cable.

Output devices:
(i) Speech generating device:
SGD is an output device that assists speech impaired individuals to communicate. Speech – generating devices also find use with children who are suspected of having speech deficiencies.

(ii) Film recorder:
A film recorder is a graphical output device for transferring digital images to photographic film.

(iii) Computer Output Microfilm (COM):
Computer Output Microfilm is a system that converts stored data directly to microfilm. A high speed recorder transfers machine readable digital data on to human-readable microfilm using laser technology and a processor, which develops the microfilm after it is exposed to the light source.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 50.
What is a computer?
Answer:
“A Computer is an electronic device that takes raw data (unprocessed) as an input from the user and processes it under the control of a set of instructions (called program), produces a result (output) and saves ¡t for future use.”

Question 51.
Distinguish between data and information.
Answer:

Data

 Information

An unprocessed collection of raw facts, suitable for communication, interpretation or processing. A collection of facts from which conclusions may be drawn.
Data is individual unit and doesn’t carry any meaning. Information is the product and group of data collectively carry a logical meaning.
Eg: 134, 16, ‘Kavitha’, ‘C’ are data. This will not give any meaningful message. Eg: Kavitha is 16 years old.

Question 52.
What are the components of a CPU?
Answer:
Control Unit, Arithmetic and Logic Unit (ALU) and Memory Unit are the three components of a CPU.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 53.
What is the function of an ALU?
Answer:
In CPU, ALU performs various computing functions on data. The ALU performs arithmetic operations such as addition, subtraction, multiplication, division and logical operations. Such as AND, OR, NOT. The result of an operation is stored in internal memory of CPU. The logical operations of ALU promote the decision-making ability of a computer.

Question 54.
Write the functions of control unit.
Answer:
Controls the flow of data between the CPU, memory and I/O devices. Controls the entire operation of a computer.

Question 55.
What is the function of memory?
Answer:
The basic function of computer memory is essential to store data. The memory unit is of two types:- Primary memory and Secondary memory. The Primary Memory (main memory) is volatile, i.e., the content is lost when the power supply is switched off.
Eg: the Random Access Memory (RAM). The Secondary memory is non-volatile. The content is available even after the power supply is switched off.
Eg: Hard disk, CD-ROM and DVD ROM.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 56.
Differentiate Input and output unit.
Answer:

Input unit

 Output unit

Input unit is used to feed data to the computer, initially which can be stored in the memory unit for further processing. An output unit is any hardware component that conveys information in users understandable form.
Eg: Keyboard, Mouse, etc. Eg: Printer, Plotter etc.

Question 57.
Distinguish Primary and Secondary memory.
Answer:

Primary memory Secondary memory
It is used to temporarily store the programs and data when the instructions are ready to execute. It is used to store the data permanently.
It is a volatile memory i.e., the content is Lost when the power supply is switched off. It is a non volatile memory i.e., the content is available even after the power supply is switched off.
It is also known as main memory. It is also known as auxiliary memory.
Eg: Random Access Memory (RAM) Eg: Hard disk, CD ROM and DVD ROM.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 58.
What are the characteristics of a computer?
Answer:
The general characteristics of computers are speed, memory capacity, accuracy, diligence, representativeness, reliability, endurance and versatility.

Question 59.
Write the applications of computer.
Answer:
The applications of computers are business, education, marketing,banking, insurance, communication, health care, military, engineering design, entertainments, advertisement.

Question 60.
What is an input device? Give two examples.
Answer:
The input device is the component through which data and instructions are provided to the computer. Eg: Keyboard and mouse.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 61.
Name any three output devices.
Answer:
The output device is the component which delivers the data and informtion proceed by the CPU. Eg: Monitor, printers, speaker.

Question 62.
Differentiate optical and Laser mouse.
Answer:

Optical Mouse

 Laser Mouse

It uses LED lights to track the movements. It uses laser to track the movements.
It has three buttons. It has as many as 12 buttons and can be programmed by user.
It is less sensitive towards surface. It is highly sensitive and able to work on any hard surface.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 63.
Write short note on impact printer.
Answer:
Impact printers print with striking of hammers or pins on ribbon. They can print on multi-part (using carbon papers) by using mechanical pressure. Eg: Dot Matrix printers and Line matrix printers.

TN State Board 11th Computer Science Important Questions Chapter 1 Introduction to Computers 3

A Dot matrix printer prints using a fixed number of pins or wires. Each dot is produced by a tiny metal rod, also called a “wire” or “pin”, which works by the power of a tiny electromagnet or solenoid, either directly or through a set of small levers. It generally prints one line of text at a time. The printing speed of these printers varies from 30 to 1550 CPS (Character Per Second).

Line matrix printers use a fixed print head for printing. It prints a page-wide line of dots, but it builds up a line of text by printing lines of dots. They are capable of printing much more than 1000 Lines Per Minute, resulting in thousands of pages per hour. These printers also uses mechanical pressure to print on multi-part (using carbon papers).

Question 64.
Write the characteristics of sixth generation.
Answer:
(i) Parallel and Distributed computing.
(ii) Computers have become smarter, faster and smaller.
(iii) Development of robotics.
(iv) Natural Language Processing.
(v) Development of Voice Recognition Software.

Question 65.
Write the significant features of monitor.
Answer:
Monitor is the most commonly used output device to display the information. It looks like a TV. Pictures on a monitor are formed with picture elements called Pixels. Monitors may either be Monochrome which display text or images in Black and White or can be color, which display results in multiple colors.

There are many types of monitors available such as CRT (Cathode Ray Tube), LCD (Liquid Crystal Display) and LED (Light Emitting Diodes). The monitor works with the VGA (Video Graphics Array) card. The video graphics card helps the keyboard to communicate with the screen. It acts as an interface between the computer and display monitor. Usually the recent motherboards incorporate built-in video card.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 66.
Explain the basic components of a computer with a neat diagram.
Answer:
The computer is the combination of hardware and software. Hardware is the physical
component of a computer like motherboard, memory devices, monitor, keyboard etc., Software is the set of programs or instructions. Both hardware and software together make the computer system function.

TN State Board 11th Computer Science Important Questions Chapter 1 Introduction to Computers 4

Input unit:
It is used to feed any form of data to the computer, which can be stored in the memory unit for further processing. Eg: Keyboard, mouse etc.

Central processing unit (CPU):
It is the major component which interprets and executes software instructions. It also control the operation of all other components such as memory, input and output units. It accepts binary data as input, process the data according to the instructions and provide the result as output. The CPU has three components which are Control unit, Arithmetic and logic unit (ALU) and Internal Memory.

(i) Arithmetic and Logic Unit:
In CPU, ALU performs various computing functions data. The ALU performs arithmetic operations such as addition, subtraction, multiplication, division and logical operations. The result of an operation is stored in internal memory of CPU. The logical operations of ALU promote the decision-making ability of a computer.

(ii) Control Unit:
It controls the flow of data between the CPU, memory and I/O devices. It also controls the entire operation of a computer. memory (or) main memory, often referred to simply as memory is the only one directly accessible to the CPU.

Output Unit:
Any hardware component that conveys information to users in an understandable form. Eg: Monitor, Printer etc.

Memory Unit:
The Memory Unit is of two types:- Primary memory and Secondary memory. The primary memory is used to temporarily store the programs and data when the instructions are ready to execute. The secondary memory is used to store the data permanently.

(i) The Primary Memory (main memory) is volatile, the content is lost when the power supply is switched off. Random Access Memory (RAM).
(ii) The Secondary memory is non-volatile, the content is available even after the power supply is switched off. Eg: Hard disk, CD-ROM and DVD ROM.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 67.
Discuss the various generations of computers.
Answer:

TN State Board 11th Computer Science Important Questions Chapter 1 Introduction to Computers 5

TN State Board 11th Computer Science Important Questions Chapter 1 Introduction to Computers 6

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 68.
Explain the following:
(i) Inkjet Printer
(ii) Multimedia projector
(iii) Bar code / QR code Reader.
Answer:
(i) Inkjet Printer:
It uses colour cartridges which combine Magenta, Yellow and Cyan inks to create color tones. A black cartridge is also used for monochrome output. They work by spraying ionised ink at a sheet of paper. The speed of it generally range from 1-20 PPM (Page Per Minute).

They use the technology of firing ink by heating it so that it explodes towards the paper in bubbles or by using piezoelectricity in which tiny electric currents controlled by electronic circuits are used inside the printer to spread ink in jet speed. An Inkjet printer can spread millions of dots of ink at the’ paper every single second.

(ii) Multimedia projector:
They are used to produce computer output on a big screen. These are used to display presentations in meeting halls or in classrooms.

(iii) Bar code / QR code Reader:
A Bar code is a pattern printed in lines of different thickness. Scans the information on the bar codes and transmits to the computer for further processing. The system gives fast and error free entry of information into the computer.

(iv) QR (Quick response) Code:
The QR code is the two dimension bar code which can be read by a camera and processed to interpret the image.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Choose the correct answer:

Question 1.
_______ is the father of computer.
(a) John Napier
(b) William Oughtred
(c) Blaise Pascal
(d) Charles Babbage
Answer:
(d) Charles Babbage

Question 2.
The expansion of ALU is:
(a) Arithmetic Logic Unit
(b) Arithmetic Long Unit
(c) Arithmetic Law Unit
(d) Arithmetic Logo Unit
Answer:
(a) Arithmetic Logic Unit

Question 3.
The first generation was in the year:
(a) 1942-1955
(b) 1955-1964
(c) 1964-1975
(d) 1975 – present
Answer:
(a) 1942-1955

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 4.
The first generation computers used:
(a) assembly language
(b) machine language
(c) high level language
(d) word processor language
Answer:
(b) machine language

Question 5.
__________ used in second generation computers.
(a) Punched cards
(b) Plotter
(c) Printers
(d) Keyboard
Answer:
(a) Punched cards

Question 6.
Second generation computers used:
(a) vacuum tube
(b) transistor
(c) integrated circuit
(d) micro processor
Answer:
(b) transistor

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 7.
Batch processing and multi programming operating system were used in:
(a) first generation
(b) second generation
(c) third generation
(d) fourth generation
Answer:
(b) second generation

Question 8.
The second generation was in the year:
(a) 1942-1955
(b) 1955-1964
(c) 1964-1975
(d) 1975-1980
Answer:
(b) 1955-1964

Question 9.
Third generation computers used:
(a) vacuum tube
(b) transistor
(c) integrated circuit
(d) microprocessor
Answer:
(c) integrated circuit

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 10.
The third generation was in the year:
(a) 1955 – 1964
(b) 1964 – 1975
(c) 1975 – 1980
(d) 1942 – 1955
Answer:
(b) 1964 – 1975

Question 11.
High level language appeared in:
(a) first generation
(b) second generation
(c) third generation
(d) fourth generation
Answer:
(c) third generation

Question 12.
Fourth generation computers used:
(a) vacuum tube
(b) transistor
(c) integrated circuit
(d) microprocessor
Answer:
(d) microprocessor

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 13.
Portable computers were introduced in _______ generation.
(a) first
(b) second
(c) third
(d) fourth
Answer:
(d) fourth

Question 14.
Fourth generation computers was in the year:
(a) 1942-1955
(b) 1955-1964
(c) 1964-1975
(d) 1975-1980
Answer:
(d) 1975-1980

Question 15.
Microcomputer series such as IBM and APPLE developed in __________ generation.
(a) first
(b) second
(c) third
(d) fourth
Answer:
(d) fourth

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 16.
Fifth generation was in the year:
(a) 1980-1990
(b) 1955-1964
(c) 1980 – present
(d) 1942-1955
Answer:
(c) 1980 – present

Question 17.
Computers can recognize images and graphs in:
(a) first generation
(b) second generation
(c) fourth generation
(d) fifth generation
Answer:
(d) fifth generation

Question 18.
Introduction of Artificial intelligence is in generation.
(a) sixth
(b) third
(c) fourth
(d) fifth
Answer:
(d) fifth

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 19.
__________ is in the sixth generation.
(a) Introduction of portable computers
(b) Introduction of artificial intelligence
(c) Development of robotics
(d) Introduction of word processors
Answer:
(c) Development of robotics

Question 20.
Sixth generation computers are:
(a) batch processing
(b) parallel processing
(c) natural language processing
(d) natural networks
Answer:
(c) natural language processing

Question 21.
Voice Recognition is in the generation.
(a) sixth
(b) fourth
(c) fifth
(d) third
Answer:
(a) sixth

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 22.
____________ is the ability of a computer program to understand human language.
(a) NLP
(b) CPU
(c) ANN
(d) AI
Answer:
(a) NLP

Question 23.
______ is a component of artificial intelligence.
(a) CPU
(b) ANN
(c) NLP
(d) ALU
Answer:
(c) NLP

Question 24.
_______ deals with the design, construction, operation and use of robots.
(a) NLP
(b) Robotics
(c) AI
(d) ANN
Answer:
(b) Robotics

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 25.
___________ is the study and application of extremely small things.
(a) Nanotechnology
(b) ANN
(c) Natural language processing
(d) Bio Engineering
Answer:
(a) Nanotechnology

Question 26.
________ involves the ability to see and to control individual atoms and molecules.
(a) Robotics
(b) Artificial neural networks
(c) Nanotechnology
(d) NLP
Answer:
(c) Nanotechnology

Question 27.
_________ applies engineering principles of design and analysis to biological systems and biomedical technologies.
(a) Nanotechnology
(b) Robotics
(c) Bio-engineering
(d) NLP
Answer:
(c) Bio-engineering.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 28.
__________ is the term used for rawfacts and figures.
(a) Data
(b) Information
(c) Mother board
(d) Data processing
Answer:
(a) Data

Question 29.
Data represented in useful and meaningful form is:
(a) data processing
(b) information
(c) data
(d) information set
Answer:
(b) information

Question 30.
The conversion of data into information is called:
(a) computer
(b) information
(c) data processing
(d) software
Answer:
(c) data processing

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 31.
The computer is the combination of:
(a) hardware and software
(b) mother board and memory devices
(c) monitor and keyboard
(d) monitor and CPU
Answer:
(a) hardware and software

Question 32.
_________ is the physical components of a computer.
(a) Software
(b) Hardware
(c) Mouse
(d) CPU
Answer:
(b) Hardware

Question 33.
________ is the set of programs or instructions.
(a) Hardware
(b) Software
(c) Input – Process – Output
(d) Data
Answer:
(b) Software

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 34.
Every task given to a computer follows an:
(a) instruction
(b) input – process – output cycle
(c) data
(d) process cycle
Answer:
(b) input – process – output cycle

Question 35.
_________ holds the data and instructions during the processing.
(a) Input unit
(b) Memory unit
(c) Output unit
(d) Storage unit
Answer:
(b) Memory unit

Question 36.
_________ is the component through which data and instructions are provided to the computer.
(a) Input device
(b) Output device
(c) Memory unit
(d) Storage device
Answer:
(a) Input device

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 37.
_______ is the heart of the computer.
(a) Memory
(b) Software
(c) Storage devices
(d) CPU
Answer:
(d) CPU

Question 38.
The is the component which delivers the data and information processed by the CPU.
(a) memory storage device
(b) input device
(c) CPU
(d) output device
Answer:
(d) output device

Question 39.
The expansion of CPU is:
(a) Central Processing Unit
(b) Central Prefix Unit
(c) Central Power Unit
(d) Central Printer Unit
Answer:
(a) Central Processing Unit

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 40.
__________ is the logical machine which interprets and executes software instructions.
(a) CPU
(b) Mother Board
(c) Input Device
(d) Storage Device
Answer:
(a) CPU

Question 41.
The CPU has units.
(a) four
(b) five
(c) two
(d) three
Answer:
(d) three

Question 42.
The performs arithmetic operations.
(a) ALU
(b) CPU
(c) control unit
(d) memory unit
Answer:
(a) ALU

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 43.
The operations of ALU promote the decision making ability of a computer.
(a) arithmetic
(b) logical
(c) comparison
(d) text
Answer:
(b) logical

Question 44.
The _______ unit controls the flow of data between the CPU, memory and I/O devices.
(a) memory
(b) ALU
(c) CPU
(d) control
Answer:
(d) control

Question 45.
The memory unit is of kinds.
(a) three
(b) four
(c) five
(d) two
Answer:
(d) two

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 46.
________ memory is used to temporarily store the programs and data.
(a) Primary
(b) Secondary
(c) PROM
(d) EPROM
Answer:
(a) Primary

Question 47.
___________ is the most common input device used today.
(a) Keyboard
(b) Mouse
(c) Scanner
(d) Light Pen
Answer:
(a) Keyboard

Question 48.
________ is a pointing device used to control the movement of the cursor on the display screen.
(a) Keyboard
(b) Scanner
(c) Trackball
(d) Mouse
Answer:
(d) Mouse

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 49.
________ are used to enter information directly into the computer’s memory.
(a) Mouse
(b) Keyboard
(c) Scanner
(d) Trackball
Answer:
(c) Scanner

Question 50.
__________ used for computer security equipped with the fingerprint recognition.
(a) Fingerprint scanner
(b) Retinal scanner
(c) Optical character reader
(d) Touch screen
Answer:
(a) Fingerprint scanner

Question 51.
___________ uses the unique patterns on a person’s retinal blood vessels.
(a) Scanners
(b) Finger print scanner
(c) Barcode reader
(d) Retinal scanner
Answer:
(d) Retinal scanner

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 52.
______ is an input device which is used to draw lines or figures on a computer screen.
(a) OCR
(b) Light pen
(c) Mouse
(d) Keyboard
Answer:
(b) Light pen

Question 53.
__________ is a device which detects alpha numeric characters printed or written on a paper.
(a) Optical Character Reader
(b) Light Pen
(c) Scanner
(d) Bar code Reader
Answer:
(a) Optical Character Reader

Question 54.
_______ reads bar codes and converts them into electric pulses to be processed by a computer.
(a) Scanner
(b) Track Ball
(c) Mouse
(d) Bar Code Reader
Answer:
(d) Bar Code Reader

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 55.
A ________ converts human speech into electrical signals.
(a) digital camera
(b) touch screen
(c) microphone
(d) keyboard
Answer:
(c) microphone

Question 56.
_________ captures images and videos directly into the digital form.
(a) Microphone
(b) Light pen
(c) Touch screen
(d) Digital camera
Answer:
(d) Digital camera

Question 57.
__________ is a display device that allows the uses to interact with a computer by using the finger.
(a) Microphone
(b) Light pen
(c) Touch screen
(d) Digital camera
Answer:
(c) Touch screen

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 58.
__________ is a device for signalling by hand.
(a) Keyer
(b) Microphone
(c) Touchscreen
(d) Scanner
Answer:
(a) Keyer

Question 59.
_________ is the most commonly used output device to display the information.
(a) Printer
(b) Monitor
(c) Plotter
(d) Keyer
Answer:
(b) Monitor

Question 60.
______ is used to produce graphical output on papers.
(a) Printers
(b) Plotters
(c) Monitor
(d) Scanners
Answer:
(b) Plotters

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 61.
_________ are used to print the information on papers.
(a) Plotters
(b) Monitor
(c) Printers
(d) Scanners
Answer:
(c) Printers

Question 62.
Printers are divided into _______ main categories.
(a) three
(b) two
(c) four
(d) five
Answer:
(b) two

Question 63.
The printing speed of serial dot matrix printers varies from:
(a) 50 to 1000 cps
(b) 100 to 1000 cps
(c) 40 to 1550 cps
(d) 30 to 1550 cps
Answer:
(d) 30 to 1550 cps

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 64.
Line printers are capable of printing _______ lines per minute.
(a) more .than 500
(b) more than 800
(c) more than 100
(d) more than 1000
Answer:
(d) more than 1000

Question 65.
_________ produces voice output.
(a) Printer
(b) Projector
(c) Speakers
(d) Plotters
Answer:
(c) Speakers

Question 66.
________ is used to produce computer output
on a big screen.
(a) Monitor
(b) Multimedia projector
(c) Speakers
(d) Plotters
Answer:
(b) Multimedia projector

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 67.
Booting process is of ________ types.
(a) two
(b) three
(c) four
(d) five
Answer:
(a) two

Question 68.
Cold Booting is also called as:
(a) hard booting
(b) soft booting
(c) rough booting
(d) fast booting
Answer:
(a) hard booting

Question 69.
___________ transfers from hard disk into main memory.
(a) Assembler
(b) Complier
(c) Bootstrap loader
(d) Loader
Answer:
(c) Bootstrap loader

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 70.
When was Analytical Engine invented?
(a) 1835
(b) 1836
(c) 1837
(d) 1838
Answer:
(c) 1837

Question 71.
Who invented the Analytical Engine?
(a) John Napier
(b) William Oughtred
(c) Charles Babbage
(d) Blaise Pascal
Answer:
(c) Charles Babbage

Question 72.
Which is the first calculating machine?
(a) Abacus
(b) Analytical Engine
(c) Napier bones
(d) ENLAC
Answer:
(a) Abacus

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 73.
Which of the following is first digital computer?
(a) ENIAC
(b) ED VAC
(c) UNIVAC – 1
(d) UNIVAC -1108
Answer:
(a) ENIAC

Question 74.
Who invented ENIAC?
(a) J. Presper Eckert
(b) John Mauchly
(c) Both (a) and (b)
(d) John Napier
Answer:
(c) Both (a) and (b)

Question 75.
Which one of the following is known as subfield of AI?
(a) Deep Learning Neural Networks
(b) Optical Character Recognition
(c) Optical Grapheme Recognition
(d) Artificial Natural Network
Answer:
(a) Deep Learning Neural Networks

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 76.
How many Indus scripts are available in the Indus valley civilization artifact system?
(a) 414
(b) 415
(c) 416
(d) 417
Answer:
(d) 417

Question 77.
What is called a set of Instructions given to the computer?
(a) Hardware
(b) Program
(c) Output
(d) Input
Answer:
(b) Program

Question 78.
(a) Richard Lyon
(b) Steve Krish
(c) Telefunken
(d) John Mauchly
Answer:
(c) Telefunken

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 79.
Which of the following is a non-volatile memory?
(a) ROM
(b) RAM
(c) CDROM
(d) DVD
Answer:
(c) CDROM

Question 80.
In which type of mouse a small ball is kept inside and touches the pad?
(a) Mechanical mouse
(b) Optical mouse
(c) Laser mouse
(d) Air mouse
Answer:
(a) Mechanical mouse

Question 81.
How many buttons are there in an optical mouse?
(a) 1
(b) 2
(c) 3
(d) 4
Answer:
(c) 3

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 82.
Who invented and developed the mouse?
(a) Douglas Engelbart
(b) William Oughtred
(c) Douglas Einestein
(d) John Napier
Answer:
(a) Douglas Engelbart

Question 83.
Which one of the device works like a xerox machine?
(a) OCR
(b) Barcode
(c) Scanner
(d) QR code Reader
Answer:
(c) Scanner

Question 84.
Which one of the device uses biometric technology?
(a) Fingerprint scanner
(b) Track ball
(c) Retinal scanner
(d) Both (a) and (c)
Answer:
(d) Both (a) and (c)

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 85.
Which device has upside-down design of the mouse?
(a) Mouse
(b) Scanner
(c) Track ball
(d) Light pen
Answer:
(c) Track ball

Question 86.
Which device is a pointing device shaped like a pen?
(a) Track ball
(b) Light pen
(c) Scanner
(d) OCR
Answer:
(b) Light pen

Question 87.
Which device is used for fast and error free entry of information into the computer?
(a) Bar code
(b) OCR
(c) Scanner
(d) Camera
Answer:
(a) Bar code

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 88.
Which system can be read by a camera and processed to interpret the image?
(a) QR code
(b) OCR
(c) Scanner
(d) Track ball
Answer:
(a) QR code

Question 89.
Which system serves as voice input device?
(a) QR code
(b) OCR
(c) Bar code
(d) Microphone
Answer:
(d) Microphone

Question 90.
Which device captures images or videos directly in the digital form?
(a) Bar code
(b) Digital camera
(c) OCR
(d) Scanner
Answer:
(b) Digital camera

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 91.
Which device can be used as an alternate to input for navigating a GUI?
(a) Bar code
(b) Digital camera
(c) OCR
(d) Touch screen
Answer:
(d) Touch screen

Question 92.
Which input device has a large number of switches?
(a) OCR
(b) Camera
(c) Keyer
(d) Touch screen
Answer:
(c) Keyer

Question 93.
Which card act as a interface between the computer and display monitor?
(a) Video graphics card
(b) CRT
(c) LCD
(d) Keyer
Answer:
(a) Video graphics card

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 94.
Which is the first computer monitor was part of the xerox?
(a) Alto computer
(b) Micro computer
(c) Mini computer
(d) Super computer
Answer:
(a) Alto computer

Question 95.
Which printer prints using a fixed number of pins or wires?
(a) Plotter
(b) Dot matrix printer
(c) Line printer
(d) Laser printer
Answer:
(b) Dot matrix printer

Question 96.
Which printer prints one line of text at a time?
(a) Dot matrix printer
(b) Plotter
(c) Line printer
(d) Laser printer
Answer:
(a) Dot matrix printer

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 97.
What type of printers uses a fixed print head for printing page-wide line of dots?
(a) Line Matrix Printer
(b) Plotter
(c) Laser Printer
(d) Inkjet Printer
Answer:
(a) Line Matrix Printer

Question 98.
What type of printers work with similar technology used by photocopiers?
(a) Line Printer
(b) Laser Printer
(c) Dot Matrix Printer
(d) Plotter
Answer:
(b) Laser Printer

Question 99.
How many Dot Per Inch (DPI) resolution available in Laser Printer?
(a) 1000 dpi
(b) 1100 dpi
(c) 1200 dpi
(d) 1300 dpi
Answer:
(c) 1200 dpi

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 100.
Which printer works by spraying ionised ink at a sheet of paper?
(a) Line printer
(b) Laser printer
(c) Inkjet printer
(d) Dot matrix printer
Answer:
(c) Inkjet printer

Question 101.
What is the speed of Inkjet printer in Page Per Minute (PPM)?
(a) 1 – 10 PPM
(b) 1 – 12 PPM
(c) 1 15 PPM
(d) 1 – 20 PPM
Answer:
(d) 1 – 20 PPM

Question 102.
Which printer use the technology of firing ink by heating?
(a) Inkjet printer
(b) Line printer
(c) Laser printer
(d) Dot matrix printer
Answer:
(a) Inkjet printer

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 103.
Which device can provide voice output and using speech synthesize software?
(a) Laser printer
(b) Speakers
(c) Monitor
(d) Keyer
Answer:
(b) Speakers

Question 104.
What is the basic software that makes the computer to work?
(a) Operating system
(b) Application software
(c) Hardware
(d) Assembly language
Answer:
(a) Operating system

Question 105.
The computer devices connected properly and ready to the BIOS gets executed. This process is called:
(a) compiling
(b) booting
(c) starting
(d) shutdown
Answer:
(b) booting

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 106.
Pre-written program in the ROM memory is called:
(a) POST
(b) BIOS
(c) OS
(d) Compiler
Answer:
(a) POST

Question 107.
Expand BIOS:
(a) Based Input Output System
(b) Basic Input Output System
(c) Before Input Output System
(d) Behind Input Output System
Answer:
(b) Basic Input Output System

Question 108.
When the system starts from initial state that is switched on, it is called:
(a) Booting
(b) Cold booting
(c) Warm booting
(d) Boot strap
Answer:
(b) Cold booting

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 109.
Who invented the different versions of optical mouse?
(a) Richard Lyon
(b) Steve Krish
(c) Both (a) and (b)
(d) John Maunchly
Answer:
(c) Both (a) and (b)

Question 110.
The warm booting also known as:
(a) cold booting
(b) soft booting
(c) compiling
(d) boot strap
Answer:
(b) soft booting

Question 111.
Mechanical mouse was introduced in the year:
(a) 02/10/1968
(b) 02/10/1978
(c) 10/02/1998
(d) 10/02/1968
Answer:
(a) 02/10/1968

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 112.
Which company introduced the mechanical mouse?
(a) German
(b) American
(c) Indian
(d) Britain
Answer:
(a) German

Question 113.
Which year optical mouse was introduced?
(a) 1998
(b) 1988
(c) 1996
(d) 1976
Answer:
(b) 1988

Question 114.
Match the following:

(a) Pointing device (i) Barcode Reader
(b) Error free entry (ii) Video graphics card
(c) Voice input device (iii) Light pen
(d) Interface (iv) Microphone

(a) (ii), (iii), (iv), (i)
(b) (iii), (iv), (i), (ii)
(c) (iii), (i), (iv), (ii)
(d) (i), (ii), (iii), (iv)
Answer:
(c) (iii), (i), (iv), (ii)

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 115.
Match the following:

(i) First Generation(a) Integrated circuits
(ii) Second Generation(b) Vacuum tubes
(iii) Third Genenration(c) Micro processor
(iv) Fourth Generation(d) Transistors

(a) (i) – (c); (ii) – (d); (iii) – (a); (iv) – (b)
(b) (i) – (b); (ii) – (c); (iii) – (d); (iv) – (a)
(c) (i) – (b); (ii) – (d); (iii) – (a); (iv) – (c)
(d) (i) – (d); (ii) – (a); (iii) – (b); (iv) – (c)
Answer:
(c) (i) – (b); (ii) – (d); (iii) – (a); (iv) – (c)

Question 116.
Match the following:

(i) Analytical Engine (a) Richard Lyon and Steve Krish
(ii) ENIAC (b) Charles Babbage
(iii) Mechanical Mouse (c) J.Presper Eckert and John Mauchly
(iv) Optical Mouse (d) Telefunken

(a) (i) – (d); (ii) – (b); (iii) – (a); (iv) – (c)
(b) (i) – (b); (ii) – (c); (iii) – (d); (iv) – (a)
(c) (i) – (a); (ii) – (c); (iii) – (b); (iv) – (d)
(d) (i) – (b); (ii) – (d); (iii) – (c); (iv) – (a)
Answer:
(b) (i) – (b); (ii) – (c); (iii) – (d); (iv) – (a)

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 117.
Choose the odd man out:
(a) Plotter
(b) Digital camera
(c) Track Ball
(d) Light Pen
Answer:
(a) Plotter

Question 118.
Choose the odd man out:
(a) Laser printer
(b) Inkjet printer
(c) Thermal printer
(d) Dot matrix printer
Answer:
(d) Dot matrix printer

Question 119.
Choose the incorrect pair.

Column – I

 Column – II

(a) Keyboard Most common input device
(b) Bar code Reader A barcode is a pattern printed in lines of different thickness.
(c) Light Pen Pointing device
(d) Retinal scanner Similar to the upside – down design of the mouse.

Answer:
(d)

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 120.
Choose the correct pair.

Column – I

 Column – II

(a) First Generation EDVAC
(b) Second Generation UNIVAC 1
(c) Third Generation IBM 1620
(d) Fourth Generation Honeywell 6000 series

(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true, but R is not the correct explanation for A.
(c) A is true, but R is false.
(d) A is false, but R is true.
Answer:
(a) Both A and R are true and R is the correct explanation for A.

Question 121.
Assertion (A):
In the Sixth Generation, computers could be defined as the era of intelligent computers, based on Artificial Neural Networks.
Reason (R):
It provides the ability to develop the computer program to understand human language.
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true, but R is not the correct explanation for A.
(c) A is true, but R is false.
(d) A is false, but R is true.
Answer:
(a) Both A and R are true and R is the correct explanation for A.

Question 122.
Assertion (A):
The term ‘Computer’ is derived from the word ‘Datum’ which means to calculate.
Reason (R):
The person who performs calculation is called as computer.
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true, but R is not the correct explanation for A.
(c) A is true, but R is false.
(d) A is false, but R is true.
Answer:
(d) A is false, but R is true.

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 123.
Assertion (A):
A touch screen is a display device that allows the user to interact with a computer by using the finger.
Reason (R):
It captures images/videos directly in the digital form.
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true, but R is not the correct explanation for A.
(c) A is true, but R is false.
(d) A is false, but R is true.
Answer:
(b) Both A and R are true, but R is not the correct explanation for A.

Question 124.
First generation computers used:
(a) vacuum tubes
(b) transistors
(c) integrated circuits
(d) microprocessors
Answer:
(a) vacuum tubes

Question 125.
Name the volatile memory:
(a) ROM
(b) PROM
(c) RAM
(d) EPROM
Answer:
(c) RAM

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 126.
Identify the output device:
(a) keyboard
(b) memory
(c) monitor
(d) mouse
Answer:
(c) monitor

Question 127.
Identify the input device:
(a) printer
(b) mouse
(c) plotter
(d) projector
Answer:
(b) mouse

Question 128.
_____ output device is used for printing building plan, flex board, etc.
(a) Thermal printer
(b) Plotter
(c) Dot matrix
(d) Inkjet printer
Answer:
(b) Plotter

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 129.
Which one of the following is used to in ATM machines:
(a) touch screen
(b) speaker
(c) monitor
(d) printer
Answer:
(a) touch screen

Question 130.
When a system restarts which type of booting is used?
(a) Warm booting
(b) Cold booting
(c) Touch boot
(d) Real boot
Answer:
(a) Warm booting

Question 131.
Expand POST:
(a) Post on self Test
(b) Power on Software Test
(c) Power on Self Test
(d) Power on Self Text
Answer:
(c) Power on Self Test

Samacheer Kalvi TN State Board 11th Computer Applications Important Questions Chapter 1 Introduction to Computers

Question 132.
Which one of the following is the main memory?
(a) ROM
(b) RAM
(c) Flash drive
(d) Hard disk
Answer:
(b) RAM

Question 133.
Which generation of computer used IC’s?
(a) First
(b) Second
(c) Third
(d) Fourth
Answer:
(c) Third

TN Board 11th Computer Science Important Questions

TN Board 12th Computer Science Important Questions Chapter 10 Python Classes and Objects

TN State Board 12th Computer Science Important Questions Chapter 10 Python Classes and Objects

Question 1.
What is a public variable in python?
Answer:

  1. The variables which are defined inside the class is public by default.
  2. These variables can be accessed anywhere is the program using dot operator.

Question 2.
What is private variable in python?
Answer:
A variable prefixed with double underscore becomes in nature. These variables can be accessed only within the class.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 3.
Explain class methods using python.
Answer:

  1. Python class function or method is very similar to ordinary function with a small difference that, the class method must have the first argument names as self.
  2. No need to pass a value for this argument when we call the method.
  3. Python provides its value automatically. Even if a method takes no arguments.

Question 4.
Write a program to check if the given number j is odd or even using class.
Answer:
class Odd Even:
even = 0 #class varaiable
def check(self,.num):
if num%2==0:
print(num,“ is Even number”)
else.
print(num,“ is Odd number”)
n=Odd_Even()
x = int(input(“Enter a value: ”))
n.check(x)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 5.
Write a program, to calculate area and circumference of a circle.
Answer:
class Circle:
pi=3.14
def_init_(self,radius):
self.radius=radius
def area(self):
return Circle.pi*(self.radius**2)
def circumference(self):
return 2*Circle.pi*self.radius
r = int(input(“Enter Radius: ”))
C = Circle(r)
print(“The Area =”,C.area( )) ,
print(“The Circumference =”,
C.circumference( ))

Question 6.
What is class?
Answer:

  • In python, a class is defined by using the keyword class.
  • Every class has unique name followed by a colon (:).
    Eg: class student:

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 7.
What is instantiation?
Answer:
When a class is created, next we should create an object or instance of that class. The process of creating object is called as class instantiation.

Question 8.
What is the output of the following program?
Answer:
class Sample:
_num=10
def disp(self):
print(self._num)
S=Sample( )
S.disp( )
print(S._num)
Output:
10
10

Question 9.
How will you create constructor in Python?
Answer:

  1. In python, there is special function called ‘init’ which act as a constructor.
  2. It must begin and end with double underscore.
  3. It is executed automatically when the object is created.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 10.
What is the purpose of Destructor?
Answer:

  1. Destructor is just opposite to constructor.
  2. It is also a special method gets executed automatically when an object exit from the scope.
  3. In python, _del_( ) method is used as destructor.

Question 11.
What are class members? How do you define it?
Answer:
(i) Any class member that is class variable or method (function) can be accessed by using object with a dot (.) operator.
(ii) Class variable and methods are together known as member of the class. The class members should be accessed. Though objects or instance of class.
The syntax is
object_name.class_member
Eg: stud name.Nam
In the above example, the name of the class is stud_name. Nam is called variable as class variable or member variable of the class.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 12.
Write a class with two private class variables and print the sum using a method.
Answer:
A variable prefixed with double underscore becomes private in nature. These variables can be accessed only within the class.
Eg:
Class student:
def_init_(self m, m1, m2):
self, m1 = m1
self._m2 = m2
In this example, there are two private class variables ml and m2 are declared, ml and m2 are added and display the sum values.
defdisplsy (self):
sum = student.ml+student.m2
print (“sum=”, self.sum)

Question 13.
Find the error in the following program to get the given output?
Answer:
class Fruits:
def_init_(self, fl, f2):
self.f1=f1
self.f2=f2
def display(self):
print(“Fruit 1 = %s, Fruit 2 = %s” %(self.fl, self.f2))
F = Fruits (‘Apple’, ‘Mango’)
del F.dispiay
F.display( )
Output:
Fruit 1 = Apple, Fruit 2 = Mango
Errors:
(i) Space between def and _init not allowed. (Correct statement is def_init_(self,f1,f2)
(ii) Space not allowed between Fruit and 1.
(iii) Space not allowed between Fruit and 2.
(iv) Space not allowed between Fruits and open bracket.
(v) del statement should not be allowed here.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 14.
What is the output of the following program?
Answer:
class Greeting:
def_init_(self, name):
self._name = name
def display(self):
print(“Good Morning”, self._name)
obj=Greeting(‘Bindu Madhavan’)
obj.display( )
Output:
Good morning Bindumadhavan.

Question 15.
How do define constructor and destructor in Python?
Answer:
(i) In python, there is a special function called ‘init’ which act as a constructor.
(ii) It must begin and end with double under j score.
(iii) This constructor function can be defined with or without arguments. This method is used initialize the class variables.
Eg:
class sample:
def _init_(self, num)
This example class sample has only a constructor with one argument named as num.
Destructor is also a special method gets executed automatically when an object exit from the scope. It is. just opposite to constructor.
In python, _del_() method is used as destructor.
Eg:
class sample:
def_del_(self):

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 16.
Write a menu driven program to add or delete stationary items. You should use dictionary to store items and the brand.
Answer:
Class Dictionary:
def_init_(self):
self.dictionaryname =“ ”
self, brand =“ ”
def get data (self):
self.dictionaryname = input (“Type Dictionary name”)
self.brand = input (“Type brand name”)
def display (self):
Print(“Name of Dictionary”, self.dictionary)
printed (“Name of the company”, self.brand)
print (“\n”)
dictionary = [ ]
choice – ‘Y’
while (choice =‘y’):
print (“ 1. Add New Dictionary”)
resp = int (input (“Type your choice”))
if (resp =1):
D = Dictionary
D.getdata ( )
dictionary, append (D)
elif (resp==2):
for x in dictionary
x.display ( )
else:
print (“Invalid Input….”)
choice = input (“Do you continue”)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 17.
Write a program using class to store name | and marks of students in list and print total marks.
Answer:
Class student:
_stud_name = [ ]
_stud_markl = [ ]
_stud_mark2 = [ ]
_stud_mark3 = [ ]
defgetdata(self):
self.s = int(input(“Type the student Name and marks to store”))
for i in range (self.s):
self._stud_name.append(str(input(“Type Name”)))
self._stud_mark1.append(int(input (“TypeMarkl”)))
self._stud_mark2.append(int(input (“TypeMark2”)))
self._stud mark3.append(int(input (“TypeMark3”)))
total_marks = 0
totafmarks-total marks + self. __stud_mark1+ self. studjnark2 + self._stud_mark3
for i in range (self. S)
print (“student name\t markl \t mark2 \t mark3”)
print (self._stud_name [i], “\t”,
self _stud_markl [i], “\t”,
self._stud_mark2 [i], “\t”,
self._stud_mark3 [i], “\t”,
print (“Total marks =”, total marks)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 18.
Write a program using class to accept three I sides of a triangle and print its area.
Answer:
Class Triangle
def_int_(self, a, b, c):
self. a = a
self. b = b
self. c = c
def area (self):
S = (self. a + self. b+ self. c)/2
return (s*((s_selfa)*(s_selfb)* (s_selfc))) **0.5
a = input (“Type the value a”)
b = input (“Type the value b”)
c = input (“Type the value c”)
print (“Area =”, s. area ( ))

Question 19.
Write a menu driven program to read, display, add and subtract two distances.
Answer:
Class dist ( ):
def _init_(self, x1, y1, x2, y2):
self.x1 = x1
self.y1 = y1
self.x2 = x2
self.y2 = y2
def add(self):
return
((abs (x 1 +x2) * *2)+(abs(y 1 +y2)* *2 * * .5)
def sub (self):
return ((abs (x1-x2)**2) + (abs(y1-y2) **2**.5))
x1 = int (input(“Type xl value”))
x2 = int (input(“Type x2 value”))
y1 = int (input(“Type yl value”))
y2 = int (input(“Type y2 value”))
obj = cal (x1, x2, y 1, y2)
choice = 1
while choice ! = 0:
print (“0. Exit”)
print (“1. Add”)
print (“2. Subtract”)
Choice = int (input(‘Type choice”))
if choice == 1:
print (“Result”, obj. add( ))
elif choice == 2:
print (“Result”, obj.sub( ))
elif choice == 0:
print (“Exit’)
else:
print (“Invalid choice”)
print ( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Choose the correct answer:

Question 1.
In python every class has a unique name followed by a:
(a) . (dot)
(b) : (colon)
(c) – (hyphen)
(d) ; (semi colon)
Answer:
(b) : (colon)

Question 2.
Class variable and methods are together known as:
(a) member of class
(b) methods
(c) class variable
(d) functions
Answer:
(a) member of class

Question 3.
Variables defined inside a class are called as
(a) member of class
(b) methods
(c) class variable
(d) function
Answer:
(c) class variable

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 4.
What is the first arguments value defined the class method?
(a) self
(b) init
(c) proc
(d) obj
Answer:
(a) self

Question 5.
What is a special function called in python, i which act as constructor?
(a) self
(b) init
(c) proc
(d) obj
Answer:
(b) init

Question 6.
The public variables can be accessed anywhere in the program using:
(a) (.) dot operator
(b) & (ampersand)
(c) # (hash)
(d) % (percentage)
Answer:
(a) (.) dot operator

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 7.
Which variable can be accessed only within the class?
(a) Pubilc
(b) Private
(c) Class variable
(d) Method
Answer:
(b) Private

Question 8.
Match the following:

(i) Class VariableA. class method
(ii) Class InstantiationB. constructor
(iii) initC. object
(iv) selfD. inside a class

(a) (i) – D, (ii) – C, (iii) – B, (iv) – A
(b) (i) – D, (ii) – B, (iii) – A, (iv) – C
(c) (i) – B, (ii) – A, (iii) – C, (iv) – D
(d) (i) – B, (ii) – C, (iii) – D, (iv) – A
Answer:
(a) (i) – D, (ii) – C, (iii) – B, (iv) – A

Question 9.
Choose the incorrect pair:
(a) class – keyword
(b) Function – method
(c) constructor – object
(d) Destructor – exits
Answer:
(c) constructor – object

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 10.
Choose the correct pair:
(a) . (dot) – class member
(b) _del_() – constructor
(c) _num – public
(d) : (colon) – object
Answer:
(a) . (dot) – class member

Question 11.
Choose the incorrect statement:
(a) Classes and object are the key features of OOP.
(b) Class is the main building block in python.
(c) Class is a template for the object.
(d) Class has unique name followed by a # (hash).
Answer:
(d) Class has unique name followed by a # (hash).

Question 12.
Choose the correct statement:
(a) Variable defined inside a class are called as class variable.
(b) Variable defined inside a functions are called constructor.
(c) Class variable and methods are together known as function.
(d) A Class can be defined only in the top of the python program.
Answer:
(a) Variable defined inside a class are called as class variable.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 13.
Assertion (A):
The process of creating object is called as class instantiation.
Reason (R):
Once a class is created, next you should create an object or instance of that class is known as process of object.
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true and R is not the correct explanation for A.
(c) A is True but R is false.
(d) A is false but R is True.
Answer:
(a) Both A and R are true and R is the correct explanation for A.

Question 14.
Assertion (A):
In python, _del_ ( ) method is used as constructor.
Reason (R):
Constructor is special method gets executed automatically when an object exit from the scope.
(a) Both A and R are true and R is the correct explanation for A.
(b) A is true but R is false
(c) A is false but R is true
(d) Both A and R are false.
Answer:
(d) Both A and R are false.

Question 15.
Pick the odd one out:
(a) classes
(b) object
(c) destructor
(d) methods
Answer:
(c) destructor

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 16.
By default, the class variable is:
(a) Public
(b) Private
(b) Protected
(d) local
Answer:
(a) Public

Question 17.
Which of the following called as instance of a class or class variable?
(a) methods
(b) objects
(c) class
(d) Function
Answer:
(b) objects

Question 18.
Which of the following are the key features of 1 an Object Oriented Programming language?
(a) Constructor and Classes
(b) Constructor and Object
(c) Classes and Objects
(d) Constructor and Destructor
Answer:
(c) Classes and Objects

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 19.
Functions defined inside a class:
(a) Functions
(b) Module
(c) Methods
(d) section
Answer:
(c) Methods

Question 20.
Class members are accessed through which operator?
(a) &
(b) .
(c) #
(d) %
Answer:
(b) .

Question 21.
Which of the following method is automatically executed when an object is created?
(a) _object_( )
(b) _del_( )
(c) _fonc_( )
(d) _init_( )
Answer:
(d) _init_( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 22.
A private class variable is prefixed with:
(a) _
(b) &&
(c) ##
(d)**
Answer:
(a) _

Question 23.
Which of the following method is used as destructor?
(a) _init_( )
(b) _dest ( )
(c) _rem_( )
(d) _del_( )
Answer:
(d) _del_( )

Question 24.
Which of the following class declaration is correct?
(a) class class_name
(b) class class_name<>
(c) class class_name:
(d) class class_name[ ]
Answer:
(c) class class_name:

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 25.
Which of the following is the output of the following program?
class Student:
def __init__(self, name):
self.name=name
S=Student(“Tamil”)
(a) Error
(b) Tamil
(c) Name
(d) Self
Answer:
(b) Tamil

Question 26.
Which of the following is the private class variable?
(a) num
(b) ##num
(c) $$num
(d) &&num
Answer:
(a) num

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 10 Python Classes and Objects

Question 27.
The process of creating an object is called as:
(a) Constructor
(b) Destructor
(c) Initialize
(d) Instantiation
Answer:
(d) Instantiation

 

TN Board 12th Computer Science Important Questions

TN Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 1.
What is Infographics?
Answer:
An Infographic is the representation of information in a graphic format.

Question 2.
Answer:
A Dashboard is a collection of resources assembled to create a single unified visual display.

Question 3.
What is Matplotlib?
Answer:

  • Matplotlib is the most popular data visualization library in python.
  • It allows you to create charts in few lines of code.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 4.
What is difference between Scatter plot and Box plot?
Answer:

Scatter plot

 Box plot

A scatter plot is a type of plot that shows the data as a collection of points. The Box plot is a standerdized way of displaying the distribution of data based on the five number summary.
The position of a point depends on its two dimensional value.Minimum, first quartile, median, third quartile and maximum.

Question 5.
What is called markers?
Answer:
A line chart or line graph is a type of chart . which displays information as a series of data points called markers. It is connected by straight line segments.

Question 6.
What is pip?
Answer:

  1. Matplotlib installed using pip.
  2. Pip is a management software for installing python package.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 7.
What is the use of pan Axis?
Answer:
Pan Axis is cross-looking button allows you to click it, and then click and drag your graph around.

Question 8.
What are different kinds of plot that allows Matplotlib?
Answer:
Matplotlob allows you to crate different kinds of plots ranging from Histograms and scatter plots to bar graphs and bar charts.

Question 9.
How will you start to draw a chart?
Answer:
(i) By importing Matplotlib using the command import matplotlib.pyplot as pit.
(ii) Now you have imported Matplotlib in your work space. You need to display the plots.
(iii) Using Matplotlib from within a python script.
(iv) Now you have to add plt.show() method inside the file to display your plot.
Eg:
import malplotlib.pyplot as pit plt.
plot ([1, 2, 3, 4])
plt.show( )

Output:
TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 1

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 10.
What are the key difference between Histogram and Bar graph.
Answer:
The differences between Histogram and bar graph are as follows:

Histogram

 Bar Graph

Histogram refers to a graphical representation; that displays data by way of bars to show the frequency of numerical data. A bar graph is a pictorial representation of data that uses bars to compare different categories of data.
A histogram represents the frequency distribution of continuous variables. A bar graph is a diagrammatic comparison of discrete variables.
The histogram is drawn in such a way that there is no gap between the bars. On the other hand, there is proper spacing between bars in a bar graph that indicates discontinuity.
Histogram presents numerical data. Bar garaph shows categorical data.
Items of the histogram are numbers, which are categorised together, to represent ranges of data. As opposed to the bar graph, items are considered as individual entities.
A histogram, this cannot be done, as they are shown in the sequence of classes. Bar graph, it is quite common to rearrange the blocks, from highest to lowest.
The width of rectangular blocks in a histogram may or may not be same. The width of the bars in a bar graph is always same.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 11.
Create a Bar chart on Range and Marks of plus two students.
Answer:
import matplotlib.pyplot as pit
labels=[“TAMIL”, “ENGLISH”, “MATHS”, “PHYSICS”, “CHEMISTRY”, “CS”]
usage – [79.8, 67.3, 77.8, 68.4, 70.2, 88.5]
y_positions = range (len(labels))
plt.bar (y positions, usage) plt.xticks (y_positions, labels)
plt.ylabel (“RANGE”) plt.title (“MARKS”)
lt.show( )
Output:

TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 2

Question 12.
Write a code to display the given plot, import matplotlib.pyplot as pit
Answer:
x = [1,2,3]
y= [5,7,4]
x2 = [1,2,3]
y2 = [10,14,12]
plt.plot(x, y, label=’Line 1’)
plt.plot(x2, y2, label=’Line 2’)
plt.xlabel(‘X-Axis’)
plt.ylabel(‘Y-Axis’)
plt.title(‘LINE GRAPH’)
plt.legend( )
plt.show( )

TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 15

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 13.
Write a code to display the following plot. import matplotlib.pyplot as pit.
Answer:
plt.plot([1,2,3,4], [1,4,9,16])
plt.show( )

TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 16

Question 14.
Define: Data Visualization.
Answer:
Data visualization is the graphical representation of information and data.
The data visualization uses statistical graphics, Numerical data may be enclosed using dots, lines or bars, to visually communicate a quantitative message.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 15.
List the general types of data visualization.
Answer:
General types of Data visualization are charts, Tables, Graphs, Maps, Infographics and dashboards.

Question 16.
List the types of Visualizations in Matplotlib.
Answer:
There are many types of visualizations under matplotlib. Some of them are Line plot, Scatter plot, Histogram, Box plot, Bar chart and pie chart.

Question 17.
How will you install Matplotlib?
Answer:

  1. Install matplotlib using pip. Python – m pip install – u pip
  2. Pip is a management software for installing python packages.
  3. After installing matplotlib, we will begin coding importing matplotlib.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 18.
Write the difference between the following functions: pltplot([1,2,3,4]), pit plot([1,2,3,4], [1,4,9,16]).
Answer:

TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 3

Question 19.
Draw the output for the following data visualization plot.
Answer:
import matplotlib.pyplot as pit
plt.bar([l,3,5,7,9],[5,2,7,8,2], label=”Example one’7)
plt.bar([2,4,6,8,10],[8,6,2,5,6], label=”Example two”, color=’g’)
pit.legend( )
plt.xlabel(‘bar number’)
plt.ylabel(‘bar height’)
plt.title(‘Epic Graph\nAnother Line! Whoa’)
plt.show( )

TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 4

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 20.
Write any three uses of data visualization.
answer:
Uses of Data visualization:

  1. Data visualization helps users to analyze and interpret the data easily.
  2. It makes complex data understandable and usable.
  3. Various charts in Data visualization 1 helps to show relationship in the data one or more.

Question 21.
Write the coding for the following:
(a) To check if PIP is Installed in your PC.
(b) To Check the version of PIP installed in your PC.
(c) To list the packages in matpiotlib.
Answer:
(a) c:\users\yourName\AppData\Local\ program s\python\python3 6-3 2\ scripts>pip
(b) c:\users\yourName\AppData\Local\ programs\python\python36-32\ j scripts>pip – versions.
(c) c:\users\yourName\AppData\Local\ programs\python\python36-32\ scripts>pip — list

Question 22.
Write the plot for the following pie chart output.

TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 5

Answer:
import matplotlib.pyplot as pit
slices = [7, 2, 2, 13]
Activities = [‘Sleeping’, ‘Eating’, ‘Working’, ‘Playing’]
Cols = [‘c’, ‘m’, ‘r’, ‘b’]
plt.pie(slices, labels = Activities,
colors – cols
startangle = 90,
shadow = True,
explode = (0, 0.1, 0, 0),
autopct = ‘% 1.1 f%%’),
Plt.title (“Interesting Graph \n check it out”)
pit. show ( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 23.
Explain in detail the types of pyplots using Matpiotlib.
Answer:
Types of pyplots using matpiotlib:
Matpiotlib allows to create different kinds of j plots ranging from Histograms and scatter I plots to bar graphs and bar charts.
(i) Line chart:
A Line chart or Line Graph is a type of chart which displays information as a series of data points called ‘markers’ connected by straight line segments.
A line chart is often used to visualize a trend in data over intervals of time – a time series – thus the line is often drawn chronologically.

TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 6

(ii) Bar chart:
A Bar chart or Bar plot is one of the most common type of plot. It shows the relationship between a numerical variable and a categorical variable. Bar plot represents categorical data with rectangular bars.
Each bar has a height corresponds to the value it represents. The bar can be plotted vertically or horizontally.

TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 7

Pie charts:
Pie chart is probably one of the most common type of chart.

TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 8

It is a circular graphic which is divided into slices to illustrate numerical proportion.
To make a pie chart with matplotlib, we vcan use the plt.pie ( ) function.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 24.
Explain the various buttons in a matplotlib window.
Answer:

TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 9
Home Button → The Home Button will help once you have begun navigating your chart.
Forward/Back buttons → These buttons can be used like the Forward and Back buttons in your browser.
Pan Axis → This cross-looking button allows you to click it and then click and drag your graph around.
Zoom → The Zoom button lets you click on it, then click and drag a square that you would like to zoom into specifically. Zooming in will require a left click and drag. You can alternatively zoom out with a right click and drag.
Configure Subplots → This button allows you to configure various spacing options with
your figure and plot.
Save Figure → This button will allow you to save your figure in various forms.

Question 25.
Explain the purpose of the following functions:
(i) plt.xlabel (ii) plt.ylabel (iii) plt.title (iv) plt.legend( ) (v) plt.show ( )
Answer:
(i) plt.xlabel – we can assign labels to those respective x-axis.
(ii) plt.ylabel – we can assign labels to those respective y-axis.
(iii) plt.title – we can assign the plot’s title, i.e., Heading of the plot.
(iv) pit.legend ( ) – This command, which automatically a legend for any labeled plot elements.
(v) plt.show ( ) – It will display the current figure that you are working on.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 26.
Create a plot. Set the title, the x and y labels for both axes.
Answer:
import matplotlib.pyplot as pit.
X = [1, 2, 3]
Y= [5, 7, 4]
plt.polt (x,y, label = ‘Linel’)
plt.xlabel (‘x-Axis’)
plt.ylabel (‘y-Axis’)
plt.title (‘LINE GRAPH’)
pit.legend ( )
plt.show ( )

Question 27.
Plot a pie chart for your marks in the recent examination.
Answer:
import matplotlib.pyplot as plt
plt.style.use(‘gg plot’)/(‘pie plot’)
subject = (‘TAMIL’,‘ENGLISH’, ‘PHYSICS’, ‘CHEMISTRY’, ‘MATHS’, ‘COMP.SCIENCE’)
Marks = [78,79,95,96,98,99]
Pie-color = (“red”,“green”,“orange”,“cyan”, “blue”)
figl ax = plt.subplots( )
ax.pie(Subjects, Labels = Marks, autoplt = %l.If%%, “colors = Pie color, Starangle = 90)
ax.axis(equal)
ax.set_title(“MY RECENT MARKS\n”, Font size – 25)
plt.show( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 28.
Plot a linechart on the academic performance of Class 12 students in Computer Science for the past 10 years.
Answer:
import matplotlib.pyplot as pit
Performance = [100,99,98,70,80,90,85,89, 60,75)
line_chart = plt.plot(range(50,100), Performance)
plt.title(“Academic Performance of class 12 students in Computer Science past 10 years”)
plt.xlabel(‘Performance’)
plt.ylabel(‘Years’)
plt.legend([Performance of Comp.Science’], 10c = 4)
plt.show( )

Question 29.
Plot a bar chart for the number of computer science periods in a week.
Answer:
import matplotlib.pyplot as pyplot
from Tools.demo.sortview import WIDTH
from tortle demo.nim import color
pyplot.bar([‘MON’,‘TUE’,‘WED’, ‘THU’, ‘FRI’], WIDTH = 0.5,)
color = ([‘blue’,‘orange’,‘red’,‘green’])
pyplot.xlabel(“Periods in a week”)
pyplot.ylabel(“Days of week”)
pyplot.show( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Choose the correct answer:

Question 1.
Which is the representation of information in a graphic format?
(a) Infographic
(b) Dashboard
(c) Matplotlib
(d) Visual format
Answer:
(a) Infographic

Question 2.
Which is a collection of resources assembled to create a single unified visual display?
(a) Infographic
(b) Dashboard
(c) Matplotlib
(d) Visual format
Answer:
(b) Dashboard

Question 3.
Which is the most popular data visualization library in python?
(a) Infographic
(b) Dashboard
(c) Matplotlib
(d) Visual format
Answer:
(c) Matplotlib

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 4.
Which is a type of plot that shows the data as a collection of points?
(a) Scatter plot
(b) Box plot
(c) Line plot
(d) Bar plot
Answer:
(a) Scatter plot

Question 5.
Which is a standardized way of displaying the distribution of data based plot?
(a) Scatter plot
(b) Box plot
(c) Line plot
(d) Bar plot
Answer:
(b) Box plot

Question 6.
Which method is used inside the file to display your plot?
(a) plt.show
(b) plt.legend
(c) plt.plot
(d) plt.title
Answer:
(a) plt.show

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 7.
Which button allows you to click it and then click and drag your graph around?
(a) Home
(b) Pan Axis
(c) Zoom
(d) Back
Answer:
(b) Pan Axis

Question 8.
Which chart displays information as a series ; of data points?
(a) Line
(b) Pie
(c) Histogram
(d) Bar
Answer:
(a) Line

Question 9.
Which plot is one of the common type?
(a) Line
(b) Pie
(c) Histogram
(d) Bar
Answer:
(d) Bar

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 10.
Which plot is probably one of the most common type?
(a) Line
(b) Pie
(c) Histogram
(d) Bar
Answer:
(b) Pie

Question 11.
Match the following:

(i) Line chart A. two-dimension
(ii) Bar chart B. auto pit
(iii) Pie chart C. catergorical data
(iv) Scatter plot D. markers

(a) (i) – D, (ii) – C, (iii) – B, (iv) – A
(b) (i) – D, (ii) – A, (iii) – B, (iv) – C
(c) (i) – B, (ii) – C, (iii) – A, (iv) – D
(d) (i) – B, (ii) – D, (Hi) – A, (iv) – C
Answer:
(a) (i) – D, (ii) – C, (iii) – B, (iv) – A

Question 12.
Choose the incorrect pair:
(a) Infographic – Information
(b) Matplotlib – Library
(c) Dashboard – Multi plot
(d) Pip – Software
Answer:
(c) Dashboard – Multi plot

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 13.
Choose the correct pair (Buttons):
(a) Home – begun
(b) PAN – Forward
(c) Zoom – drag
(d) Subplot – Back
Answer:
(a) Home – begun

Question 14.
Choose the incorrect statement.
(a) Numerical data may be encoded using only pictures.
(b) Data visualization helps users to analyze and interpret the data easily.
(c) Complex data understandable and usable by using charts.
(d) Various charts in Data visualization help to show relationship in the data.
Answer:
(a) Numerical data may be encoded using only pictures.

Question 15.
Choose the correct statement.
(a) Bar charts represent categorical data with rectangular bars.
(b) Bar chart can be plotted only vertically.
(c) The Box plot is a data based on the three number summary.
(d) Scatter plot is a point depend on its three dimensional value.
Answer:
(a) Bar charts represent categorical data with rectangular bars.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 16.
Assertion ( A):
Matplotlib is the most popular data visualization library in python.
Reason (R):
It allows you to create charts in few lines of code.
(a) Both A and R are True and R is the correct explanation for A.
(b) Both A and R are True but R is not the correct explanation for A.
(c) A is True but R is False.
(d) A is False but R is True.
Answer:
(a) Both A and R are True and R is the correct explanation for A.

Question 17.
Assertion (A):
Histogram refers to a graphical representation of data.
Reason (R):
A Bar graph is a pictorial representation of data.
(a) Both A and R are True and R is the correct explanation for A.
(b) Both A and R are True but R is not the correct explanation for A.
(c) A is True but R is False.
(d) A is False but R is True.
Answer:
(b) Both A and R are True but R is not the correct explanation for A.

Question 18.
Pick the odd one out.
(a) Line
(b) Scatter
(c) Box
(d) Zoom
Answer:
(d) Zoom

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 19.
Matplotlib is a:
(a) Function name
(b) Reserved word
(c) Library
(d) Key word
Answer:
(c) Library

Question 20.
Matplotlib allows to create a:
(a) graphics
(b) maps
(c) picture
(d) charts
Answer:
(d) charts

Question 21.
How many types of visualizations under matplotlib?
(a) five
(b) six
(c) seven
(d) many
Answer:
(d) many

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 22.
Which is a type of plot that shows the data as a collection of points?
(a) Line plot
(b) Box plot
(c) Scatter plot
(d) Pie plot
Answer:
(c) Scatter plot

Question 23.
Which plot is the distribution of data based on the five number summary?
(a) Line plot
(b) Box Plot
(c) Scatter plot
(d) pie plot
Answer:
(b) Box Plot

Question 24.
Which command is used to import matplotlib for coding?
(a) import matplotlib.pyplot as pit
(b) import matplotlib.pypt as pt
(c) import matplotlb.pyplt as Pit
(d) import mathplotlb.pyplot as pit
Answer:
(a) import matplotlib.pyplot as pit

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 25.
Which method will be add inside the file to display plot?
(a) display ( )
(b) show ( )
(c) print ( )
(d) write ( )
Answer:
(b) show ( )

Question 26.
The default x.vector has the same length of y but starts with
(a) 0
(b) 1
(c) 2
(d) 3
Answer:
(a) 0

Question 27.
Which button is used to navigate the chart?
(a) Ctrl
(b) ALT
(c) Home
(d) End
Answer:
(c) Home

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 28.
Which button is used to click and drag a graph around?
(a) Drag
(b) Home
(c) ALT
(d) pan
Answer:
(d) pan

Question 29.
Which type of chart shows the relationship between a numerical and categorical variable?
(a) Line
(b) Bar
(c) Pie
(d) Histogram
Answer:
(b) Bar

Question 30.
Which type of chart to show the frequency of numerical data?
(a) Line
(b) Bar
(c) Pie
(d) Histogram
Answer:
(d) Histogram

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 31.
Which type of chart to indicates discontinuity?
(a) Line
(b) Bar
(c) Pie
(d) Histogram
Answer:
(b) Bar

Question 32.
Which type of chart, the width of the bar is always same?
(a) Line
(b) Bar
(c) Pie
(d) Histogram
Answer:
(b) Bar

Question 33.
Which type of chart is a circular graphical representation of numeric data?
(a) line
(b) bar
(c) pie
(d) Histogram
Answer:
(c) pie

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 34.
Which is a python package used for 2D graphics?
(a) matplotlib.pyplot
(b) matplotlib.pip
(c) matplotlib.numpy 4
(d) matplotlib.pit
Answer:
(a) matplotlib.pyplot

Question 35.
Identify the package manager for Python ackages, or modules.
(a) Matplotlib
(b) PIP
(c) plt.show( )
(d) python package
Answer:
(b) PIP

Question 36.
Read the following code: Identify the purpose of this code and choose the right option from the following.
C:\Users\YourName\AppData\Local\ Programs\Python\Python36-32\ Scripts>pip – version
(a) Check if PIP is Installed
(b) Install PIP
(c) Download a Package
(d) Check PIP version
Answer:
(a) Check if PIP is Installed

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 37.
Read the following code: Identify the purpose of this code and choose the right option from the following.
C:\Users\YourName\AppData\Local\ Programs\Python\Python3 6-3 2\ Scripts>pip list
(a) List installed packages
(b) list command
(c) Install PIP
(d) packages installed
Answer:
(a) List installed packages

Question 38.
To install matplotlib, the following function will be typed in your command prompt. What does “-U”represents?
Python -m pip install -U pip
(a) downloading pip to the latest version
(b) upgrading pip to the latest version
(c) removing pip
(d) upgrading matplotlib to the latest version
Answer:
(b) upgrading pip to the latest version

Question 39.
Observe the output figure. Identify the coding for obtaining this output.

TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 10

(a) import matplotlib.pyplot as pit
plt.plot([l,2,3],[4,5,l])
plt.show( )

(b) import matplotlib.pyplot as pit
plt.plot([l,2],[4,5])
plt.show( )

(c) import matplotlib.pyplot as pit
plt.plot([2,3],[5,l])
plt.show( )

(d) import matplotlib.pyplot as pit
plt.plot([l,3],[4,l])
plt.show( )
Answer:
(a) import matplotlib.pyplot as pit
plt.plot([l,2,3],[4,5,l])
plt.show( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 40.
Read the code:
(a) import matplotlib.pyplot as pit
(b) plt.plot(3, 2)
(c) plt.show( )
Identify the output for the above coding.
(a) TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 11

(b) TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 12

(c) TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 13

(d) TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 14

Answer:
(c) TN State Board 12th Computer Science Important Questions Chapter 16 Data Visualization Using Pyplot Line Chart Pie Chart and Bar Chart 13

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 41.
Which key is used to run the module?
(a) F6
(b) F4
(c) F3
(d) F5
Answer:
(d) F5

Question 42.
Identify the right type of chart using the following hints.
Hint 1: This chart is often used to visualize a trend in data over intervals of time.
Hint 2: The line in this type of chart is often drawn chronologically.
(a) Line chart
(b) Bar chart
(c) Pie chart
(d) Scatter plot
Answer:
(a) Line chart

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 16 Data Visualization Using Pyplot: Line Chart, Pie Chart and Bar Chart

Question 43.
Read the statements given below. Identify the right option from the following for pie chart.
Statement A:
To make a pie chart with Matplotlib, we can use the plt.pie( ) function.
Statement B:
The autopct parameter allows us to display the percentage value using
the Python string formatting.
(a) Statement A is correct
(b) Statement B is correct
(c) Both the statements are correct
(d) Both the statements are wrong
Answer:
(c) Both the statements are correct

TN Board 12th Computer Science Important Questions

TN Board 12th Computer Science Important Questions Chapter 15 Data Manipulation Through SQL

TN State Board 12th Computer Science Important Questions Chapter 15 Data Manipulation Through SQL

Question 1.
What is use of ‘commit’ command in sql?
Answer:

  1. The ‘commit’ command is used to any changes made in the values of the record should be saved.
  2. This command is used before closing the Table connection.

Question 2.
What is mean by populate in SQL?
Answer:

  • Populate mean add record in the Table
  • To populate the table INSERT command is passed to SQLite.

Question 3.
What are Aggregate function used SQL Group?
Answer:
The Aggregate functions are COUNT ( ), SUM ( ), MIN ( ), AUG ( ), MAX ( ).

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 4.
What are clauses that can be used in the SELECT statements in SQL?
Answer:
SQL provides various clauses that can be used in the SELECT statements. This clauses are DISTINCT, WHERE, GROUPBY, ORDERBY and HAVING.

Question 5.
Write the functions of MAX ( ) and MIN ( ) in SQL.
Answer:

  1. MAX ( ) – This function returns the largest value of the selected column.
  2. MIN ( ) – This function returns the smallest value of the selected column.

Question 6.
What is advantage of SQLite?
Answer:

  • SQLite is fast, rigorously tested and flexible, making it easier to work.
  • Python has a native library for SQLite.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 7.
What is master table?
Answer:
SQLitejmaster is the master table which holds the key information about your database tables.

Question 8.
How the cursor object is created?
Answer:

  • The cursor object is created by calling the cursor ( ). method of connection.
  • The cursor is used to traverse the records from the result set.

Question 9.
List the classes used in the SQL SELECT statement.
Answer:

  1. DISTINCT
  2. WHERE
  3. GROUP BY
  4. ORDER BY
  5. HAVING

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 10.
How will you creating a Database using SQLite?
Answer:
Creating a Database using SQLite, the commands are
import sqlite3 # importing module first
connection = sqliteB.connect (“stud.db”)
# connecting database to be created
Cursor = connection.cursor ( )
In this example, a database name ‘stud.db’ would be created database.

Question 11.
Write an example for creating a table in the SQL database.Table Name student.
Answer:
CREATE TABLE student
(ROLL NO INTEGER PRIMARY KEY,
SName VARCHAR (20),
Grade CHAR(l),
Gender CHAR (1).
Average Float (6,2)
DOB Date);

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 12.
Write a python program to accept data using input () command during run time.
Answer:
# code for executing query using input data import sqlite3
con =sqlite3.connect(“Academy.db”)
cur = con. cursor!) cur.execute(“DROP Table person”)
cur.execute(“create table person (name, age, id)”)
print(“Enter 5 students names:”)
who =[input() for i in range(5)]
print(“Enter their ages respectively:”)
age =[int(input( )) for i in range(5)]
print(“Enter their ids respectively:”)
p_id =[int(input( ))for i in range(5)]
n =len(who)
for i in range(n):
cur.execute(“insert into person values (?, ?, ?)”, (who[i], age[i], p_id[i]))
cur.execute(“select * from person”)
# Fetches all entries from table
print(“Displaying All the Records From Person Table”)
print (*cur.fetchall( ), sep=‘\n’)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 13.
Write a python program to query more than one table by joing them.
Answer:
(Table name: student, Appointment)
import sqlite3
connection = sqlite3.connect (“Academy, db”)
cursor = connection.cursor( )
cursor.execute(“““DROP TABLE Appointment; ”””)
sqlcommand = “““
CREATE TABLE Appointment (rollnointprimarkey,Duty varchar( 10),age int)”””
cursor.execute(sqlcommand)
sqlcommand = “““INSERT INTO Appointment (Rollno,Duty ,age)
VALUES (“1”, “Prefect”, “17”);”””
cursor.execute(sql_command)
sql_command = “““INSERT INTO Appointment (Rollno, Duty, age)
VALUES (“2”, “Secretary”, “ 16”);”””
cursor. execute(sql_command)
connection.commit( )
cursor. execute(“SELECT student.rollno, student, sname, Appointment.
Duty,Appointment.Age FROM student, Appointment where student.
rollno = Appointment.rollno”)
co = [i[0] for i in cursor.description]
print(co)
result = cursor. fetchall( )
for r in result:
print(r)

Question 14.
Mention the users who uses the Database.
Answer:
Users of database can be human users, other programs or applications.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 15.
Which method is used to connect a database? Give an example.
Answer:
Connect ( ) method is used to connect a database and pass the name of the database file.
Eg: Connection = sqlite3.connect (“Academy.db”)

Question 16.
What is the advantage of declaring a column as “INTEGER PRIMARY KEY”
Answer:
If a column of a table is declared to be an INTEGER PRIMARY KEY, then whenever a NULL will be used as an input for this column, the NULL will be automatically converted into an integer which will one larger than the highest value so for used in that column.
Eg: RollNo INTEGER PRIMARY KEY.

Question 17.
Write the command to populate record in a table. Give an example.Answer:
(i) INSERT command is to populate record in a Table.
(ii) To populate (add record) the table
INSERT command is passed to SQLite. “execut e” method
executes the SQL command to perform some action.
Eg:
sql_command = “ “INSERT INTO
student (RollNo, sname, Grade)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 18.
Which method is used to fetch all rows from the database table?
Answer:
Fetchall ( ) method is to fetch all rows from the database table.
Eg: res = cursor.Fetchall ( )

Question 19.
What is SQLite?What is it advantage?
Answer:
(i) SQLite is a simple relational database system, which saves its data in regular data files or even in the internal memory of the computer.
(ii) It is designed to be embedded in applications, instead of using a separate database server program.
(iii) The advantage of SQLite is fast, rigorously tested, and flexible, making it easier to work. Python has a native library for SQLite.

Question 20.
Mention the difference between fetchone( ) and fetchmany( ).
Answer:

fetchone ( )

 fetchmany ( )

The fetchone ( ) method returns the next row of a query result set or none in case there is row left.fetchmany ( ) method that returns the next number of rows (n) of the result set.
Using while loop and fetchone ( ) method we can , display all the records from a table.Displaying specified number of records is done by using fetchmany ( ).
Fetch the next row of a query result set, returning a single tuple, or none when no more data is available.Fetch the next set of rows of a query, returning a list of tuples. An empty list is returned when no more rows are available.
Eg: res = cursor, fetchone ( )Eg: res = cursor, fetchmany (3)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 21.
What is the use of Where Clause. Give a python statement Using the where clause.Answer:
(i) The WHERE clause is used to extract only those records that fulfill a specified condition.
(ii) The WHERE clause can be combined with AND, OR and NOT operators.
(iii) WHERE clause cannot be used along with GROUPBY.
(iv) The AND or OR operators are used to . filter records base on more than one condition.
Eg:
cursor.execute(“SELECT ROLLNO, TOTAL FROM student WHERE (Total >=400 AND Total < = 600)”)

Question 22.
Read the following details.Based on that write a python script to display department wise records
database name organization.db
Table nameEmployee
Columns in the table Eno, EmpName, Esal, Dept
Answer:
import sqlite3
connection = sqlite3.connect (“organization, .db”)
cursor = connection, cursor ( )
CREATE TABLE Employee(
Eno INTEGER PRIMARY KEY,
EmPName VARCHAR (20),
Esal DECIMAL (6,2)
Dept VARCHAR (20);
cursor.execute (sql_command)
sql command = “ ” INSERT INTO organization (Eno, EmpName, Esal, Dept)
VALUES (NULL, “GOPU”, “9562.50”, “EDUCATION”);
Cursor, execute(sql_command)
Connection.commit ( )
connection.close( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 23.
Read the following details.Based on that write a python script to display records in
descending order of
Eno
database name:- organization.db
Table name:- Employee
Columns in the table:- Eno, EmpName, Esal, Dept.
Answer:
import sqlite3
connection = sqlite3.connect (“organization, db”)
cursor = connection,cursor ( )
CREATE TABLE Employee (
Eno INTEGER PRIMARY KEY,
EmPName VARCHAR (20),
Esal DECIMAL (6, 2)
Dept VARCHAR (20);
cursor.execute(“SELECT * FROM organization ORDER BY NAME DESC”)
sql-command = “ ” INSERT INTO
organization (Eno, EmpName, Esal, Dept)
VALUES (NULL, “GOPU”, “9562.50”, “EDUCATION”);
Cursor.execute(sqlcommand)
Connection.commit ( )
connection.close( )

Question 24.
Write in brief about SQLite and the steps used to use it.
Answer:
(i) SQLite is a simple relational database system, which saves its data in regular data files or even in the internal memory of the computer.
(ii) SQLite is designed to be embedded in
applications, instead of using a separate database server program such as MySQL or Oracle.
(iii) SQLite is fast, rigorously tested and flexible, making it easier to work.
Python has a native library for SQLite.
To use SQLite
Step 1 – import sqlite3
Step 2 – Create a connection using connect ( ) method and pass the name of the database file.
Step 3 – Set the cursor object cursor = connection, cursor ( )
(iv) In python, all the commands will be executed using cursor object only.
(v) To create a table in the database create an object and write the SQL command in it.
Eg: sql_comm = “SQL statement”.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 25.
Write the Python script to display all the records of the following table using fetchmany( ).
Answer:

Icode ItemName Rate
1003 Scanner 10500
1004 Speaker 3000
1005 Printer 8000
1008 Monitor 15000
1010 Mouse 700

import sqlite3
connection = sqlite3.connect (“ITEM”)
cursor = connection,cursor ( )
CREATE TABLE items (
Icode INTEGER PRIMARY KEY,
Item Name VARCHAR (20),
Rate DECIMAL (8,2);
Itemlist = [(“1003”, “scanner”, “10500”),
(“1004”, “Speaker”, “3000”),
(“1005”, “Printer”, “8000”),
(“1008”, “Monitor”, “ 15000”),
(“1010”, “Mouse”, “700”)],
sqlcommand = formatstr.format
(Icode =p[0], ItemName = p[l], Rate = p[2])
Cursor.execute(sql_command)
Connection.commit ( )
cursor.execute (“SELECT * FROM ITEM”)
result = cursor.fetchall ( )
for i in result:
print (r)

Question 26.
What is the use of HAVING clause. Give an example python script.
Answer:
# Example python script using Having clause
import sqlite3
db = sqlite3. connect (“test.sqlite”)
cursor = db.cursor ( )
sql = “SELECT* FROM results”
Cursor.execute(sql)
for row in cursor:
print row
sql = (“SELECT source, receiver, level FROM)
results WHERE percentage > 0.4”
“GROUP BY Source, receiver HAVING Percentage = min (percentage)”)
cursor.execute (sql)
for row in cursor:
print row

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 27.
Write a Python script to create a table called ITEM with following specification.
Add one record to the table.
Name of the database :- ABC
Name of the table :- Item
Column name and specification :-
Answer:

Icode :- integer and act as primary key
Item Name :- Character with length 25
Rate :- Integer
Record to be added :- 1008, Monitor, 15000

Import Sqlite 3
connection = sqlite3.connect (“ABC .db”)
cursor = connection,cursor ( )
sqlcommand = “ ”
CREATE TABLE item (
Icode INTEGER PRIMARY KEY,
Item Name VARCHAR (25),
Rate INTEGER;
Cursor.execute(sql_command)
“Sql command” = “ ” INSERT INTO Item ( Icode, ItemName,Rate)
VALUES (NULL, “1008”, “Monitor”, “15000”) ”’
Cursor.execute(sql_command)
Connection.commit ( )
connection.close( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 28.
Consider the following table Supplier and item. Write a python script for (i) to (ii).
Answer:

TN State Board 12th Computer Science Important Questions Chapter 15 Data Manipulation Through SQL 1

(i) Display Name, City and Itemname of suppliers who do not reside in Delhi.
(ii) Increment the SuppQty of Akila by 40 import sqlite3
connection = sqlite3. connect (“Supplier.db”)
cursor = connection.cursor ( )
item = [(“S001”, “Prasad” “Delhi”, “1008”, “100”),
(“S002”, “Anu”, “Bangalore”, ‘1010’, “200”),
(“S003”, “Sahid”, “Bangalore”, “1008”, “175”),
(“S004”, “Akila”, “Hyderabad”, “1005”, “195”),
(“S005”, “Girish”, “Hyderabad”, “1003”, “25”),
(“S006”, “Shylaja”, “Chennai”, “1008”, “180”),
(“S007”, “Lavanya”, “Mumbai”, “1005′, “325”);
for p in item:
format_str = “INSERT INTO item (suppno, Name, city, Icode, suppQty)
VALUES (NULL, “{suppno}”, “{Name}”, “{city}”, “{Icode}”, “{suppQty}”);“‘ “‘
sql_command = format_str.format (suppno = p[0],
Name = p[l], city = p[2], Icode =p[3], suppQty = p[4])
Cursor.execute(sql_command)
Connection.commit ( )
Cursor. execute(“SELECT Name, city, Icode FROM item WHERE (city < > “Delhi”)”)
Cursor.execute(“SELECT Name, suppQty FROM
item WHERE (Name = “AKILA” And p(4)+40)”)
result = cursor.fetchall ( )
print (result)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 29.
Create an interactive program to accept the details from user and store it in a csv file using Python for the following table.
Database name;- DB1; Table name: Customer

TN State Board 12th Computer Science Important Questions Chapter 15 Data Manipulation Through SQL 2

Answer:
import sqlite3
import io
import csv
sql_command = “‘ “‘
CREATE TABLE Customer (cust_Id INT PRIMARY KEY),
cust_Name VARCHAR (20),
Address VARCHAR (30),
phoneno VARCHAR (10),
city VARCHAR (10);
sql_command = “ ” INSERT INTO customer (cust_Id, cust_Name, Address, phone no, city)
VALUES (“C008”, “Sandeep”, “141, Pritam pura”, “41206819”, “Delhi”); ”’ “‘
cursor.execute (sql_command)
sql_command = “‘ ”’ INSERT INTO customer(cust_Id, custName, Address, phone_no, city)
VALUES (“C010”, “Anurag Basu”, “15A, park Road”, “61281921”, “Kolkatta”);‘“ ”’
cursor, execute (sql_command)
sql command = “‘ ”’ INSERT INTO customer(cust_Id, custName, Address, phone_no, city)
VALUES (“C012”, “Hrithik”, “7/2 vasant Nagar”, “26121949”, “Delhi”);’” “’
cursor, execute (sql command)
connection. commit( )
# Creating csv file
d = open (‘c:\pyprg\cust.csv’,‘w’)
c = csv.write (d)
connection = sqlirte3.connect (“Dbi.db”)
cursor = connection.cursor ()
Cursor.execute(“SELECT*FROM customer ORDER BY Phone_no”)
Cu = [i[0] for i in cursor.description]
c.writerow(Cu)
data = Cursor.fetchall( )
for item in data:
c. writerow (item)
d. close ( )
with open (‘c: \pyprg\cust.csv’; newline = None) as fd:
for line in fd:
line = line.replace(“\n”,“ ”)
print (line)
Cursor.close ( )
Connection.close ( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 30.
Consider the following table GAMES. Write a python program to display the records for question (i) to (iv) and give outputs for SQL queries (v) to (viii).
Answer:

TN State Board 12th Computer Science Important Questions Chapter 15 Data Manipulation Through SQL 3

(i) To display the name of all Games with their Geodes in descending order of their schedule date.
(ii) To display details of those games which are having Prize Money more than 7000.
(iii) To display the name and gamename of the Players in the ascending order of Gamename.
(iv) To display sum of PrizeMoney for each of the Number of participation groupings (as shown in column Number 4}
(v) Display all the records based on GameName.
import sqlite3
connection – sqlite3.connect (“Game.db”)
cursor = connection,cursor ( )
game_data = [(“101”, “Padmaja”, “carom Board”, “2”, “5000”,“01-23-2014”),
(“102”, “Vidhya”, “Badminton”, “2”, “12000”,“ 12-12-2013”),
(“103”, “Guru”, “Table Tennis”, “4”, “ 18000”,“02-14-2014”),
(“105”, “Keerthana”, “carom Board”, “2”, “9000” ,“01-01-2014”),
(“108”, “Krishna”, “Table Tennis”, “4”, “25000”,“03-19-2014”),
for p in game_data:
format_str = ”’ INSERT INTO games
(Geode, Name, GameName, Number, Prizemoney, ScheduleDate)
VALUES (NULL, “{Geode }”, “{Name}”, “{GameName }”, “{Number “{Prizemoney}” “{ScheduleDate}”);’”
sql_command – format_str. format (Geode =p[0],
Name = p[1], GameName = p[2], Number = p[3], prizemoney = p[4], ScheduleDate = P[5])
Cursor.execute(sql_ command)
Connection.commit ( )
Cursor. execute(“SELECT*FROM games ORDER BY scheduledate DESC, Geode,GameN ame”)
Cursor.execute(“SELECT game Name, prizemoney FROM games WHERE (prize money>7000)”)
Cursor.execute(“SELECT*FROM games, game name, gameName ASCN)
Cursor.execute(“SELECT*FROM games GROUPBY
Gamename. HAVING SUM
(Number*prizemoney”)
Cursor.execute(“SELECT*FROM games ORDER BY Game Name ASCE, Game Name”)
result = cursor. fetchall( )
for r in result
print (r)
connection.close ( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Choose the best answer:

Question 1.
Python program can interact as a user of an:
(a) SQL database
(b) MS Word
(c) Star. Writer
(d) None
Answer:
(a) SQL database

Question 2.
Which statement in SQL is used to retrieve or fetch data from the table in a database?
(a) INSERT
(b) SELECT
(c) FROM
(d) ORDERBY
Answer:
(b) SELECT

Question 3.
Which method is returns the next row of a query result set?
(a) fetchall ( )
(b) fetchone ( )
(c) fetchmany ( )
(d) Both A and B
Answer:
(b) fetchone ( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 4.
Which method is displaying specified number of records is done?
(a) fetchall ( )
(b) fetchone ( )
(c) fetchmany ( )
(d) Both A and B
Answer:
(c) fetchmany ( )

Question 5.
Which clause is used to extract only those records that fulfill a specified condition in SQL?
(a) WHERE
(b) DISTINCT
(c) HAVING
(d) GROUPBY
Answer:
(a) WHERE

Question 6.
Which clause is used by groups records into summary rows in SQL?
(a) WHERE
(b) DISTINCT
(c) HAVING
(d) GROUPBY
Answer:
(d) GROUPBY

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 7.
Which clause is used to sort the result set in ascending or descending order in SQL?
(a) WHERE
(b) DISTINCT
(c) ORDERBY
(d) HAVING
Answer:
(c) ORDERBY

Question 8.
Which clause is used to filter data based on the group function in SQL?
(a) HAVING
(b) WHERE
(c) DISTINCT
(d) GROUPBY
Answer:
(a) HAVING

Question 9.
Which clause can be combined with AND, OR, NOT operators in SQL?
(a) HAVING
(b) WHERE
(c) DISTINCT
(d) GROUPBY
Answer:
(b) WHERE

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 10.
Which function returns 0 if there were no matching rows in SQL?
(a) COUNT ( )
(b) SUM( )
(c) MIN ( )
(d) MAX ( )
Answer:
(a) COUNT ( )

Question 11.
Match the following:

(i) DISTINCTA. Summary rows
(ii) GROUP BYB. Sort data
(iii) ORDER BYC. Filter data
(iv) HAVINGD. Avoid duplicate

(a) (i) – D, (ii) – A, (iii) – B, (iv) – C
(b) (i) – D, (ii) – C, (iii) – B, (iv) – A
(c) (i) – C, (ii) – B, (iii) – A, (iv) – D
(d) (i) – C, (ii) – A, (iii) – D, (iv) – B
Answer:
(a) (i) – D, (ii) – A, (iii) – B, (iv) – C

Question 12.
Match the following:

(i) COUNT ( ) A. Find the sum
(ii) SUM ( ) B. returns number of rows
(iii) MIN ( ) C. Find the mean
(iv) AUG ( ) D. Smallest value

(a) (i) – B, (ii) – C, (iii) – D, (iv) – A
(b) (i) – B, (ii) – A, (iii) – D, (iv) – C
(c) (i) – D, (ii) – C, (iii) – B, (iv) – A
(d) (i) – D, (ii) – B, (iii) – A, (iv) – C
Answer:
(b) (i) – B, (ii) – A, (iii) – D, (iv) – C

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 13.
Choose the incorrect pair:
(a) SQL – database
(b) SQLite – Relation database
(c) Commit – Delete the record
(d) INSERT – Populate
Answer:
(c) Commit – Delete the record

Question 14.
Choose the correct pair:
(a) SELECT – Query
(b) fetchall – Select Rows
(c) fetchone – Next number of rows
(d) fetchmany – Next row
Answer:
(a) SELECT – Query

Question 15.
Choose the incorrect statement.
(a) A database is an organized collection of data.
(b) The database management system is a software application.
(c) Python program cannot be interact as a user of an SQL database.
(d) SQLite is a simple Relational database system.
Answer:
(c) Python program cannot be interact as a user of an SQL database.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 16.
Choose the correct statement.
(a) sqlite master is a database.
(b) The path of a file can be either represented as ‘/’ or ‘\\’ in python.
(c) Count ( ) function returns the number of Column in a table.
(d) HAVING clause is used to store the data.
Answer:
(b) The path of a file can be either represented as ‘/’ or ‘\\’ in python.

Question 17.
Assertion (A):
SELECT is the most commonly used statement in SQL.
Reason (R):
HAVING clause is used to filter data based on the group functions.
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true but R is the not correct explanation for A.
(c) A is true But R is false.
(d) A is false But R is true.
Answer:
(b) Both A and R are true but R is the not correct explanation for A.

Question 18.
Assertion (A):
Aggregate function are used to do operations from the values of the column and a single value is returned.
Reason (R):
SUM ( ) function retrieves the largest value of the selected rows.
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true but R is the not correct explanation for A.
(c) A is true But R is false.
(d) A is false But R is true.
Answer:
(c) A is true But R is false.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 19.
Assertion (A):
The cursor object is created by calling the cursor ( ) method of connection.
Reason (R):
The cursor is used to traverse the records from the result set.
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true but R is the not correct explanation for A.
(c) A is true But R is false.
(d) A is false But R is true.
Answer:
(a) Both A and R are true and R is the correct explanation for A.

Question 20.
Pick the odd one out.
(a) DISTINCT
(b) SUM
(c) WHERE
(d) HAVING
Answer:
(b) SUM

Question 21.
Which is SQLite is used create a connection with a database file created?
(a) Cursor ( )
(b) connect ( )
(c) execute ( )
(d) lite ( )
Answer:
(b) connect ( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 22.
The WHERE clause cannot be combined with:
(a) XOR
(b) AND
(c) OR
(d) NOT
Answer:
(a) XOR

Question 23.
Which values cannot be counted?
(a) Integer
(b) String
(c) Character
(d) NULL
Answer:
(d) NULL

Question 24.
Carsor.description will be stored as a
(a) list
(b) tuple
(c) set
(d) dictionary
Answer:
(b) tuple

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 25.
The table’s field names can be displayed using:
(a) cursor.description
(b) cursor, connect
(c) cursor.commit
(d) cursor, execute
Answer:
(a) cursor.description

Question 26.
__________ is a simple relational database system.
(a) python
(b) cython
(c) SQLite
(d) MySQL
Answer:
(c) SQLite

Question 27.
What program can interact as a user of a SQL database?
(a) C++
(b) C
(c) java
(d) Python
Answer:
(d) Python

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 28.
Which method run the SQL command to perform some action?
(a) cursor ( )
(b) execute ( )
(c) connect ( )
(d) lite ( )
Answer:
(b) execute ( )

Question 29.
Count ( ) returns ___________ if there were no matching tows.
(a) NULL
(b) NOT NULL
(c) 0
(d) 1
Answer:
(c) 0

Question 30.
Which of the python native library?
(a) SQLite
(b) Oracle
(c) MySQL
(d) Foxpro
Answer:
(a) SQLite

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 31.
Which of the following is MI organized collection of data?
(a) Database
(b) DBMS
(c) Information
(d) Records
Answer:
(a) Database

Question 32.
SQLite falls under which database system?
(a) Flat file database system
(b) Relational Database system
(c) Hierarchical database system
(d) Object oriented Database system
Answer:
(b) Relational Database system

Question 33.
Which of the following is a control structure used to traverse and fetch the records of the database?
(a) Pointer
(b) Key
(c) Cursor
(d) Insertion point
Answer:
(c) Cursor

Question 34.
Any changes made in the values of the record should be saved by the command:
(a) Save
(b) Save As
(c) Commit
(d) Oblige
Answer:
(c) Commit

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 35.
Which of the following executes the SQL command to perform some action?
(a) Execute( )
(b) Key( )
(c) Cursor( )
(d) run( )
Answer:
(c) Cursor( )

Question 36.
Which of the following function retrieves the average of a selected column of rows in a table?
(a) Add( )
(b) SUM( )
(c) AVG( )
(d) AVERAGE( )
Answer:
(c) AVG( )

Question 37.
The function that returns the largest value of the selected column is:
(a) MAX( )
(b) LARGE( )
(c) HIGH( )
(d) MAXIMUM( )
Answer:
(a) MAX( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 15 Data Manipulation Through SQL

Question 38.
Which of the following is called the master table?
(a) sqlite_master
(b) sql master
(c) main_master
(d) master_main
Answer:
(a) sqlite_master

Question 39.
The most commonly used statement in SQL is:
(a) cursor
(b) select
(c) execute
(d) commit
Answer:
(b) select

Question 40.
Which of the following clause avoid the duplicate?
(a) Distinct
(b) Remove
(c) Where
(d) GroupBy
Answer:
(a) Distinct

 

TN Board 12th Computer Science Important Questions

TN Board 12th Computer Science Important Questions Chapter 14 Importing C++ Programs in Python

TN State Board 12th Computer Science Important Questions Chapter 14 Importing C++ Programs in Python

Question 1.
What is a script language?
Answer:
A script language is a programming language for integrating and communicating with other programming language.

Question 2.
Write some of the most widely used script language?
Answer:
JavaScript, VBScript, PHP, Perl, Python, Ruby, ASP AND TCI.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 3.
What is called Garbage collection?
Answer:

  1. Python deletes unwanted objects (built- in types or class instances) automatically to free the memory space.
  2. The process by which python periodically frees and reclaims blocks of memory that no longer are in use is called Garbage collection.

Question 4.
What is a g++?
Answer:
g++ is a program that calls GCC (GNU C Compiler) and automatically links the required C++ library files to the object code.

Question 5.
What is the use ‘+’ in os.system ()?
Answer:
‘+’ in os.system ( ) indicates that all strings are concatenated as a single string and send that as a List.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 6.
What purpose of using GNUC compiler?
Answer:
g++ is a program that calls GCC (GNUC Compiler) and automatically links the required C++ library files to the object code.

Question 7.
What is a command for wrapping C++ code?
Answer:
if _name_ = = ‘_main_’:
main (Sys. argv [1:])

Question 8.
Write the syntax of os.system ( ).
Answer:
The syntax of os.system ( ) is
os.system (‘g++’ + <variable_namel>
‘ – <mode>’ + <variable_name 2>)

Question 9.
Write the syntax of getopt ( ).
Answer:
The syntax of getopt ( ) is
<opts>, <args> = getopt. getopt (argv, options, [long_options])

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 10.
Differentiate static and dynamic language.
Answer:

Static Dynamic
A static typed language like C++ requires the programmer to explicitly tell the computer what data type, each data value is going to use. A dynamic typed language like python does not require the data type to be given explicitly for the data. Python manipulate the variable based on the type of value.

Question 11.
Write the steps to executing C++ program through python.
Answer:

  1. Double click the run terminal of MinGW.
  2. Go to the folder where the python software is located, For example Python is folder is located in.
  3. c:\program files\open office 4\python

Question 12.
Write the modular program in python to find factorial of given number.
Answer:
def fact (n):
f= 1
if n == 0:
return 0
elif n = 1:
return 1
else :
for i in range (1, n+1):
f=f*i
print (f)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 13.
Write a note on main (sys.argv [1]).
Answer:

  1. main (sys.argvfl]) – Accepts the python program and input file (C++ file) as a list (array).
  2. argv [0] contains the python program which is need not to be passed because by default _main_ contains source code reference
  3. argv [1] contains the name of the C++ file which is to be processed.

Question 14.
What are the commonly used interfaces when importing C++ files in python?
Answer:

  1. Python-C-API: (API-Application Programming Interface for interfacing with C programs)
  2. Ctypes (for interfacing with c programs)
  3. SWIG (Simplified Wrapper Interface Generator- Both G and C++)
  4. Cython (Cython is both a Python-like language for writing C-extensions)
  5. Boost.Python (a framework for interfacing Python and C++)
  6. MinGW (Minimalist GNU for Windows)

Question 15.
Write the syntax of os,system ()? Explain the arguments.
Answer:
The os module allows you to interface with the windows operating system where python is running on.
The syntax is
os.system (‘g++’ + <variable__namel> ‘-<mode>’ + <variable_name2>
Where
os.system – function system (defined in os module).
g++ – General compiler to compile C++ program under windows operating system.
Variable_name1 – Name of the C++ file without 1 extension.cpp in string format.
mode – To specify input or output mode. Here it is ‘mode’ prefixed with hyphen.
Variable_name2 – Name 0f the executable file without extension.exe in string format.
Eg:
os.system (‘g++’ + cpp_file + ‘-o’ + exe_file)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 16.
Write a C++ program to print Transpose of matrix (2D array). And save the file as transpose.py. Program that compile and execute in python.
Answer:
//Now select File→New in Notepad and type the C++ program.
#include <iostream>
using namespace std
int main( )
{
int a[3][3], i, j;
for(i=0; i<3; i++)
{
for(j=0; j<3; j++)
{
cout<<“enter the value for array[“<<i+1 <<”]”<<“[“<<j+1<<”] :”;
cin>>a[i][j];
}
}
system(“cls”);
cout<<“\n\nOriginal Array\n”;
for(i=0; i<3; i++)
{
for(j=0; j<3; j++)
cout<,a[i][j]<<‘
cout<<endl;
}
cout<<“\n\n The Transpose of Matrix\n”;
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 3; j++)
cout<<a[j][i]<<‘ ‘;
cout<<endl;
}
return 0;
}
import sys, os, getopt
def main(argv):
cppjile = “
exefile – ”
opts, args – getopt.getopt(argv, “i:”,[‘ifile=’])
for o, a in opts:
if o in (“-i”, ifile”):
cpp_file = a+‘.cpp’
exe_file – a + ‘.exe’
run(cpp_file, exe_file)
def run(cpp_file, exe_file):
print(“Compiling ” + eppfile)
os.system(‘g++ ’ + cpp_file + ‘ -o ’ + exe_ file)
print(“Running ” + exefile)
print(“———-”)
print
os.system(exe_file)
print
if_name_main
main(sys.argv[l:])

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 17.
Write a C++ program containing functions and executing by python program.
Answer:
/*Write a C++ program using a user defined function to function cube of a number.*/

//Now select File—>New in Notepad and type the C++ program
#//include <iostream>
using namespace std;
// Function declaration
int cube(int num);
int main()
{
int num;
int c;
cout<<”Enter any number: “<<endl;
cin>>num;
c = cube(num);
Cout<<”Cube of “ <<num<< “ is “<<c;
return 0;
}
//Function to find cube of any number
int cube(int num)
{
return (num * num * num);
}

// Save this file as cubefile.cpp
#Now select File → New in Notepad and
type the Python program
# Save the File as fun.py
# Program that compiles and executes a .cpp file
# Python fun.py -i c:\pyprg\cube_file.cpp
import sys, os, getopt
def main(argv):
cpp_file =’ ‘
exe_file =‘ ’
opts, args – getopt.getopt(argv, “i:”,[‘ifile=’])
for o, a in opts:
if o in (“-i”, ifile”):
cpp_file = a + ‘.cpp’
exe_file = a + ‘.exe’
run(cpp_file, exe file)
def run(cpp_file, exe_file):
print(“Compiling “ + cppfile)
os.system(‘g++ ‘ + cpp_file + ‘ -o ‘ + exe_ file)
print(“Running “ + exe file)
print(“———-”)
print
os.system(exe_file)
print
if_name_==_main_’:
main(sys.argv[l:])
Output of the above program
Compiling e:\pyprg\cube_file.cpp
Running c:\pyprg\cube_file.exe
——————-
Enter any number:
5
Cube of 5 is 125

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 18.
Write a C++ program to implement multilevel inheritance of a class and executing by python program.
Answer:
// C++ program to implement Multilevel Inheritance
//Now select File—>New in Notepad and type the C++program
//include <iostream>
using namespace std;
#base class
class Vehicle
{
public:
Vehicle( )
{
cout<< “This is a Vehicle” <<endl;
}
};
class threeWheeler: public Vehicle
{public:
three Wheeler( )
{
cout<<”Objects with 3 wheels are vehicies”<<endl;
}
};
// sub class derived from two base classes
class Auto: public threeWheeler{
public:
Auto( )
{
cout<<”Auto has 3 Wheels”«endl;
}
};
// main function int main( )
{
//creating object of sub class will invoke the constructor of base classes
Auto obj;
return 0;
}
// Save this file as inheri cpp.cpp
//Now select File → New in Notepad and type the Python program
# Save the File as classpy.py
# Python classpy.py -i inheri_cpp command to execute C++ program
import sys, os, getopt
def main (argv):
cpp_file = ‘ ’
exe_file = ‘ ’
opts, args = getopt.getopt (argv, “i:”,[‘ifile=’])
for o, a in opts:
if o in (“-i”, “-ifile”):
cpp_ file = a + ‘.cpp’
exe_file = a + ‘.exe’
run (cpp_file, exefile)
def run(cpp_file, exe file):
print (“Compiling “ + cpp_file)
os.system (‘g++ ‘ + cpp_file + ‘ -o ‘ + exe_ file)
print (“Running “ + exe_file)
print (“————-”)
print
os.system (exe_file) print
if_name_==’_main_’:
main (sys.argv[1:])
Output of the above program
Compiling c:\pyprg\class_file.cpp
Running c:\pyprg\class_file.exe
—————-
This is a Vehicle
Objects with 3 wheels are vehicles
Auto has 3 Wheels

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 19.
What is the theoretical difference between Scripting language and other programming language?
Answer:

Scripting language

 Other languages (Programming language)

A script language requires an interpreters. Programming language requires a compiler.
A script language do not require the compilation step and are rather interpreted. But programming languages needs to be compiled before running.
Example: Javascript, python etc., Example: C++, COBOL etc.,

Question 20.
Differentiate compiler and interpreter.
Answer:

Compiler

 Interpreter

Compile the entire program and translates it as a whole machine code. Interpreter translates program one statement at a time.
It takes large amount of time to analyze the source code but execution time is faster. It takes less amount of time to analyze the source code, and execution time is slower.
Example for C, C++ use compilers. Example for python, Javascript use interpreters.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 21.
Write the expansion of
(i) SWIG
(ii) MinGW
Answer:
(i) SWIG – Simplified Wrapper Interface Generation.
(ii) MinGW – Minimalist GNU for windows.

Question 22.
What is the use of modules?
Answer:

  1. We use modules to breakdown large programs into small manageable and organized files.
  2. Modules provides reusability of code.
  3. We can define our most used functions in a module and import it, instead of copying their definitions into different programs.

Question 23.
What is the use of cd command. Give an example.
Answer:
In python use cd command Hold Shift + Right click in explorer in the folder where the python file is will create a proper path string for your OS.
Eg. Using cd command in python
>>>import OS
>>>OS.system (“cd c:\mydir”)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 24.
Differentiate PYTHON and C++.
Answer:

PYTHON

 C++

Python is typically an “interpreted” language. C++ is typically a “compiled” language.
Python is a dynamic typed language. C++ is compiled statically typed language.
Data type is not required while declaring variable. Data type is required while declaring variable.
It can act both as scripting and general purpose language. It is a general purpose language.

Question 25.
What are the applications of scripting language?
Answer:
Applications of scripting Languages:

  1. To automate certain tasks in a program.
  2. Extracting information from a data set.
  3.  Less code intensive as compared to traditional programming language..
  4. Can bring new functions to applications and give complex systems together.

Question 26.
What is MinGW? What is its use?
Answer:

  1. MinGW – (Minimalist GNU for windows), it refers to a set of runtime header files, used in compiling and linking the code of C,C++ and FORTRAN to be run on windows operating system.
  2. It uses to compile and execute the C++ program.
  3. MinGW allows to compile execute the C++ program dynamically through python program using g++.
  4. MinGW – W64 is the best compiler for C++ on windows.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 27.
Identify the module, operator, definition name for the following weleome.display ( )
Answer:
Welcome.display ( )
welcome – module
Dot – Dot operator
display ( ) – Function name

Question 28.
What is sys.argv? What does it contain?
Answer:

  1. sys.argv is the list of command – line arguments passes to the python program.
  2. argv contains all the items that come along via the command-line input, It’s basically an array holding the command-line arguments of the program.
  3. The first argument, sys.argv[0], is always the name of the program as it was invoked, and sys.argv [1] is the first argument you pass to the program.

Question 29.
Write any 5 features of Python.
Answer:
Features of Python over C++:

  1. Python uses Automatic Garbage Collection whereas C++ does not.
  2. C++ is a statically typed language, while Python is a dynamically typed language.
  3.  Python runs through an interpreter, while C++ is pre-compiled.
  4. Python code tends to be 5 to 10 times shorter than that written in C++.
  5. In Python, there is no need to declare types explicitly where as it should be done in C++.
  6. In Python, a function may accept an argument of any type, and return multiple values without any kind of declaration beforehand. Whereas in C++ return statement can return only one value.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 30.
Explain each word of the following command.
Answer:
Python <filename.py> -<i> <C++ filename
without cpp extension>

  1. Python – Keyword to execute the python program from command-line.
  2. filename.py – Name of the python program to executed.
  3. -i – input mode
  4. C++ filename without cpp extension- name of C++ file to be compiled and executed.

Question 31.
What is the purpose of sys,os,getopt module in Python.Explain.
Answer:
(i) sys module:
This module provides access to
some variables used by the interpreter and to functions that interact strongly with the interpreter, sys.argv is the list of command-line argument passed to the python program.

(ii) OS module:
The OS module in python provides a way of using operating system dependent functionality, os.system ( ) – execute the C++ compiling command in the shell.

(iii) get opt module:
The getopt module of python helps you to parse (split) command-line options and arguments.
getopt.getopt method parses command¬’ line options and parameter list.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 32.
Write the syntax for getopt( ) and explain its arguments and return values.
Answer:
The getopt module of python helps you to parse command-line options and arguments.
The syntax is
<opts>,<args> = getopt.getopt (argv, options, [long-options])
Where,
argv- This is the argument list of values to be parsed (splited).
In our program the complete command will be passed as a list.

Options:
This is string of options letters that the python program recognize as for input or for output with options (T or ‘0’) that follower by a colon (:).
Here colon is used to denote the mode.
long-options. This parameter is passed with a list of strings.
Argument of long options should be followed ^ by an equal sign (‘=’).
getopt( ) method returns value consisting of two elements.
Each of these values are stored separately in two different list (arrays) opts and orgs.
Eg:
opts, args = getopt.getopt (argv,”i:”, [‘ifile=’]) Where
opts – [(‘-i’, ‘c:\\pyprg\\p4’)
‘c:\\pyprg\\p4’ – Value, absolute path.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 33.
Write a Python program to execute the following C++ coding.
Answer:
#include <iostream>
using namespace std;
int main( )
{
cout<<“WELCOME”;
return(0);
}
The above C++ program is saved in a file welcome.cpp
import sys, Os, get opt
def main (argv)
cpp_file = 11
exe_file =11
opts, args = etopt.getopt(argv, “i:”, [‘i file=’] for 0, a in (“-1”, “ i file”):
if 0, in opts:
cpp_file = a + ‘.cpp’
exe_file = a + ‘.exe’
run(cpp_file, exe_file)
def run (cpp file, exe file):
print(“compiling”+cpp_file)
Os.system (‘g++’ +cpp file + ‘ – 0’ + exe_file)
print (“Running” + exefile)
print
Os.system (exe file)
print
if_name_== ‘_main_’: main (sys.argv[l:])

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 34.
Write a C++ program to create a class called Student with the following details.
Answer:
Protected member
Rno integer
Public members
void Readno(int); to accept roll number and assign to Rno
void Writeno( ); To display Rno.
The class Test is derived Publically from the Student class contains the following details.

Protected member
Mark1 float
Mark2 float
Public members
void Readmark(float, float); To accept mark1 and mark2
void Writemark( ); To display the marks
Create a class called Sports with the following detail

Protected members
score integer
Public members
void Readscore(int); To accept the score
void Writescore( ); To display the score
The class Result is derived Publically from Test and Sports class contains the following details

Private member
Total float
Public member
void display( ) assign the sum of mark1, mark2, score in total.
invokeWriteno( ), Writemark( ) and
Writescore( ). Display the total also.
Save the C++ program in a file called hybrid.
Write a python program to execute the hybrid.cpp
# include <io stream.h>
# include <conil.h>
class student
{
private:
char name [30];
int Rno;
Float mark1, mark2, Total_marks;
protected;
void Readmark ( )
{
cout <<“\n Type name, Roll no, markl, mark2”;
cin>>Rno>>Name>>mark1>>mark2;
}
void writescore ( )
{
Total marks = mark1 + mark2;
}
void writemark ( )
{ .
cout <<“\n Name” <<name;
cout <<“\n Roll No” <<Rno;
cout <<“\n Mark 1” <<mark1;
cout <<“\n Mark 2” <<mark2;
cout <<“\n Total_marks” <<Total_marks;
}
public:
student ( )
{
name [0] = ‘\o’;
Rno = mark1 = mark2 = totalmarks 0;
}
void execute ( );
{
Read mark ( );
Write score ( );
Write mark ( );
}
};
void main ( )
{
clrscr ();
student stud;
stud.execute ();
}
// save This file as hyprid.cpp
// Write python program to execute hyprid.Answer:
cpp in python
import sys, os, getopt
def main (argv):
cpp_file = “
exe_file = ”
opts, args = getopt.getopt(argv, “i:”,[ifile =])
for o, hyprid in opts:
if o in (“-i”, “–file”):
cpp_file = hyprid + ‘.cpp’
exe_file = hyprid + ‘.exe’
run (cpp_file, exe_file)
def run (cpp_file, exe_file):
os.system(‘g++’ + cpp_file + ‘-o’ + exe_file)
os.system (exe_file)
print
if name = ‘_main_’:
main (sys.argv [1:])

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 35.
Write a C++ program to print boundary elements of a matrix and name the file as Border.cpp
Answer:
// C++ program to print boundary element
// ot.matrix
# include <bits/studc++.h>
Using namespace std;
Const int MAX = 100;
void print Boundary (int a [ ][MAX],
int m, int n
{
for (int i = 0; i < m; i++)
{
for (int j = 0; j<n; j++)
{
if (i ==0 || j == 0|| i == n – 1 || j == n – 1)
cout <<a[i] [j] << “ ”;
else
cout<<“ ”
<<“ ”;
}
cout <<“\n”;
}
}
int main ( )
{
int a [4] [MAX] = {{1, 2, 3, 4}, {5, 6, 7, 8}, {1,2, 3, 4}, {5,6, 7, 8}};
return 0; }
// To save this C++ program as Border.cpp

Write a python program to Border.cpp
import sys, os, getopt
def main (argv):
cPP_file=“
exe_file =”
opts, args = getopt.getopt (argv, for O, Border in opts:
if 0 in (‘-1”, “- -file”):
cpp-file = Border + ‘.cpp’
exe-file = Border + ‘.exe’
run cpp_file, exe_file)
def run (cpp_file, exe_file):
os.system (“g++” + cpp_file + ‘-0’ + exe_file)
os.system (exe_file)
if_name_ == ‘_main_’:
main (sys.argv [1:])

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Choose the best answer:

Question 1.
Python is mostly used as a …………… language.
(a) High level
(b) Scripting
(c) glue
(d) B or C
Answer:
(d) B or C

Question 2.
What is the name called, python deletes unwanted objects automatically to free the memory space?
(a) Recycle
(b) Garbage collection
(c) Interface
(d) Wrapping
Answer:
(b) Garbage collection

Question 3.
Which mode is specify to input or output in python?
(a) ‘-o’
(b) ‘-i’
(c) ‘-a’
(d) ‘-s’
Answer:
(a) ‘-o

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 4.
Which method is used to returns values ‘ consisting of two values?
(a) append ( )
(b) extend ( )
(c) getopt ( )
(d) insert ( )
Answer:
(c) getopt ( )

Question 5.
Which interface is used for python-like language for writing c-extensions?
(a) Cython
(b) Boost
(c) SWIG
(d) MinGW
Answer:
(a) Cython

Question 6.
Match the following:

(i) Python A. for windows
(ii) C++ B. wrapper interface
(iii) SWIG C. dynamic language
(iv) MinGW D. Statical language

(a) (i) – C, (ii) – D, (iii) – B, (iv) – A
(b) (i) – C, (ii) – B, (iii) – A, (iv) – D
(c) (i) – B, (ii) – A, (iii) – D, (iv) – C
(d) (i) – D, (ii) – A, (iii) – C, (iv) – B
Answer:
(a) (i) – C, (ii) – D, (iii) – B, (iv) – A

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 7.
Choose the incorrect pair:

Column – I Column – II
(a) Python interpreted
(b) C++ Compiled
(c) TCI High level language
(d) ASP Script language

Answer:
(c)

Question 8.
Choose the correct pair:

Column – I Column – II
(a) stud.py module
(b) sys.argv getopt module
(c) os.system sys module
(d) getopt A variable

Answer:
(a)

Question 9.
Choose the incorrect statement.
(a) Python is typically a compiled language.
(b) Python is a dynamic typed language.
(c) In python, Data type is not required while declaring variable.
(d) Python is a script and general purpose language.
Answer:
(a) Python is typically a compiled language.

Question 10.
Choose the correct statement.
(a) Sys module provides access to variable used by the compiler.
(b) sys.argv is the list of command-line arguments passed to the python program,
(c) Python has no standard (Built in) modules.
(d) Module does not provide reusability of code.
Answer:
(b) sys.argv is the list of command-line arguments passed to the python program

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 11.
Assertion (A):
Python is actually an interpreter, high level, general-purpose programming language.
Reason (R):
It can be used for processing text, numbers, images, scientific data and just about anything else you might save on a i computer.
(a) Both A and R are True, And R is the correct explanation for A.
(b) Both A and R are True, But R is not the correct explanation for A.
(c) A is true but R is false.
(d) A is false but R is true.
Answer:
(a) Both A and R are True, And R is the correct explanation for A.

Question 12.
Assertion (A):
Modular programming is a software design technique to split your code into separate parts.
Reason (R):
Python has number of standard (Build-in) modules.
(a) Both A and R are True, And R is the correct explanation for A.
(b) Both A and R are True, But R is not the correct explanation for A.
(c) A is true but R is false.
(d) A is false but R is true.
Answer:
(b) Both A and R are True, But R is not the correct explanation for A.

Question 13.
Pick the odd one out.
(a) TCI
(b) ASP
(c) Ruby
(d) Java
Answer:
(d) Java

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 14.
Which language is used both as scripting and general purpose language?
(a) C
(b) C++
(c) Python
(d) HTML
Answer:
(c) Python

Question 15.
Which programming language is designed for integrating and communicating with other programming language?
(a) Modular language
(b) Procedural language
(c) Scripting language
(d) High level language
Answer:
(a) Modular language

Question 16.
Which of the following is not a scripting language?
(a) Ruby
(b) TCI
(c) ASP
(d) COBOL
Answer:
(d) COBOL

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 17.
Which requires a programming language?
(a) Compiler
(b) Interpreter
(c) Editor
(d) Exefile
Answer:
(a) Compiler

Question 18.
Which is requires a scripting language?
(a) Compiler
(b) Interpreter
(c) Editor
(d) Exefile
Answer:
(b) Interpreter

Question 19.
Which of the following interface used for interfacing with C programs?
(a) Cython
(b) Ctypes
(c) MinGw
(d) SWIG
Answer:
(b) Ctypes

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 20.
Which of the following python interface used for both C and C++?
(a) Cython
(b) Ctypes
(c) MinGw
(d) SWIG
Answer:
(d) SWIG

Question 21.
Which is needed to run a C++ program on windows?
(a) m++
(b) g++
(c) e++
(d) f++
Answer:
(b) g++

Question 22.
Which of the following is not a python module?
(a) sys
(b) g++
(c) os
(d) Getopt
Answer:
(b) g++

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 23.
Which version of MinGw is the best compilerfor C++ on windows?
(a) W32
(b) W64
(c) W128
(d) W256
Answer:
(a) W32

Question 24.
Which interface to a set of runtime headerfiles, used compiling and linking the code of C, C++?
(a) SWIG
(b) MinGw
(c) Cython
(d) Ctypes
Answer:
(b) MinGw

Question 25.
g++ is a
(a) module
(b) program
(c) scope
(d) identifier
Answer:
(b) program

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 26.
Which command is used to clear the screen in window?
(a) els
(b) clear
(c) cs
(d) cl
Answer:
(a) els

Question 27.
Which operator is used to access the function?
(a) (.) dot
(b) (:) colon
(c) (,) comma
(d) (;) semi colon
Answer:
(a) (.) dot

Question 28.
Which is mostly used as a ‘glue’ language?
(a) C
(b) C++
(c) Java
(d) Python
Answer:
(d) Python

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 29.
Which of the following is not a scripting language?
(a) JavaScript
(b) PHP
(c) Perl
(d) HTML
Answer:
(d) HTML

Question 30.
Importing C++ program in a Python program is called:
(a) wrapping
(b) Downloading
(c) Interconnecting
(d) Parsing
Answer:
(a) wrapping

Question 31.
The expansion of API is:
(a) Application Programming Interpreter
(b) Application Programming Interface
(c) Application Performing Interface
(d) Application Programming Interlink
Answer:
(b) Application Programming Interface

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 32.
A framework for interfacing Python and C++ is:
(a) Ctypes
(b) SWIG
(c) Cython
(d) Boost
Answer:
(d) Boost

Question 33.
Which of the following is a software design technique to split your code into separate parts?
(a) Object oriented Programming
(b) Modular programming
(c) Low Level Programming
(d) Procedure oriented Programming
Answer:
(b) Modular programming

Question 34.
The module which allows you to interface with the Windows operating system is:
(a) OS module
(b) sys module
(c) csv module
(d) getopt module
Answer:
(a) OS module

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 35.
getopt( ) will return an empty array if there is no error in splitting strings to:
(a) argv variable
(b) opt variable
(c) args variable
(d) ifile variable
Answer:
(c) args variable

Question 36.
Identify the function call statement in the following snippet.
if _name _ ==‘_main_
main(sys.argv[l:])
(a) main(sys.argv[l:])
(b) _name_
(c) _main_
(d) argv
Answer:
(c) main

Question 37.
Which of the following can be used for processing text, numbers, images, and scientific data?
(a) HTML
(b) C
(c) C++
(d) PYTHON
Answer:
(d) PYTHON

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 14 Importing C++ Programs in Python

Question 38.
What does name contains ?
(a) C++ filename
(b) main( ) name
(c) python filename
(d) os module name
Answer:
(d) os module name

TN Board 12th Computer Science Important Questions

TN Board 12th Computer Science Important Questions Chapter 13 Python and CSV Files

TN State Board 12th Computer Science Important Questions Chapter 13 Python and CSV Files

Question 1.
What is purpose of CSV file?
Answer:

  1. CSV is a simple file format used to store data, such as spreadsheet or database.
  2. They are plain text and easier to import into a spreadsheet or another storage database, regardless of the specify software you are using.

Question 2.
What do you know about a CSV file?
Answer:
A CSV file is also known as a flat File. File in the CSV format can be imported to and exported from programs that store data in tables, such as Microsoft Excel or open office calc.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 3.
How will you create new a CSV file?
Answer:

  1. To create a CSV file in Notepad, First open a new file using
    File → New or ctrl + N
  2. Then enter the data you want the file to contain, separating each value with a comma and each row with a new line.

Question 4.
What ¡s a dialect?
Answer:

  1. A dialect describes the format of the CSV file that is to be read.
  2. In dialect the parameter “Skip initial space” is used for removing whitespaces after the delimiter.

Question 5.
What is difference CSV.writer ( ) and writerow ( ) methods?
Answer:

CSV writerow ( ) writerow ( )
The CSV.writerow ( ) method returns a wirter object which converts the user’s data into delimited string on the given file like object. The writerow ( ) method writes a row of data into the specified file.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 6.
What is the use of Line Terminator in CSV file?
Answer:

  1. A Line Terminator is a string used to terminate lines produced by writer. The default value is \r or \n,
  2. We can write CSV file with a line terminator in python by registering new dialects using csv.register dialect ( ) class of csv module.

Question 7.
What is CSV module?
Answer:

  1. The CSV module will be able to read and write the vast majority of CSV files.
  2. CSV module which gives the python programmer the ability to parse.

Question 8.
How can you open a CSV files?
Answer:
We can open CSV files in a spread sheet program like Microsoft Excel or in a Text editor or through a data base which make them easier to read.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 9.
What is use of Skipinitial space?
Answer:
In dialects the parameter “Skipinitial Space” is used for removing whitespaces after the delimiter.

Question 10.
What is a list?
Answer:

  1. A list is a data structure in python that is a module, or changeable, ordered sequence of elements.
  2. List literals are written square brackets [ ]. List work similarly to strings.

Question 11.
What is difference between sorted ( ) and sort ( ) method?
Answer:

  1. The sorted ( ) method sorts the elements of a given item in a specific order Ascending or Descending.
  2. Sort ( ) method which performs the same way as sorted ( ). Only difference, sort () method does not return any value and changes the original list itself.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 12.
What is an ordered Diet?
Answer:

  1. An ordered Diet is a dictionary subclass which saves the order in which its contents are added.
  2. To remove the ordered Diet use diet ( ).

Question 13.
Explain the CSV module’s Reader Function.
Answer:
(i) csv.reader ( ) function is designed to take each line of the file and make a list of all columns.
(ii) Using this function one can read data from csv files of different formats like quotes (“ ”), pipe (|) and comma (,).
(iii) The syntax for csv.reader is csv.reader (fileobject, delimiter, fmtparams)
Where
File object – Passes the path and mode .
delimiter – an optional parameter containing the standard dialects.
fmtparams – optional parameter with default values of the dialects.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 14.
What are different types in CSV files while writing Data?
Answer:

  1. Creating a new normal CSV file.
  2. Modifying an Existing file.
  3. Writing on a CSV file with Quotes.
  4. Writing on a CSV file with Custom Delimiters.
  5. Writing on a C S V file with Lineterminator.
  6. Writing on a CSV file with Quotechars.
  7. Writing CSV file into a Dictionary.
  8. Getting Data at Runtime and Writing in a file.

Question 15.
Write a program to sort a list using next( ) method.
Answer:
# sort a selected column given by user leaving the header column
import csv
inLile= ‘c:\\pyprg\\sample6.csv’
python file
F=open(inFile,‘r’)
reader = csv.reader(F)
next(reader)
arrayValue = [ ]
a = int(input (“Enter the column number 1 to 3:-”))
for row in reader:
arrayValue.append(row[a])
array Value. sort( )
for row in array Value:
print (row)
F.elose( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 16.
Write the different types writing Data into in csv files.
Answer:
(i) Creating A New Normal CSV File:
This method, we can create a normal csv file using writer ( ) method of csv module having default delimiter comma (,).

(ii) Modifying An existing file:
Making some changes in the data of existing file or adding more data is called modification.

(iii) Writing on A CSV file with Quotes:
We can write the CSV file with quotes, by registering new dialects using csv. register_dialect ( ) class of CSV module.

(iv) Writing on A CSV File with custom Delimiters:
A diameter is a string used to separate fields. The default value is comma (,).

(v) CSV File with A Line Terminator:
A Line Terminator is a string used to terminate lines product by writer. The default values is \r or \n.

(vi) CSV File with quotes character:
The csv file with custom quote characters, by registering new dialects using csv. refister dialect ( ) class of csv module.

(vii) Writing CSV File into A Dictionary:
Using Dictwriter ( ) Class of csv module, we can write a csv file into a dictionary. It creates an object which maps data into a dictionary. The keys are given by the fieldnames parameter.

(viii) Getting Data At Runtime and Writing it in a CSV file:
We can accept data thought key board and write in to a csv file.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 17.
What is CSV File?
Answer:

  1. CSV – Comma Separated Values.
  2. CSV module which gives the python programmer the ability to parse CSV files.
  3. A CSV file is a human readable text file where each line has a number of fields, separated by commas or some other delimiter.

Question 18.
Mention the two ways to read a CSV file using Python.
Answer:
There are two ways to read a CSV file.

  • Use the CSV module’s reader function.
  • Use the DictReader class.

Question 19.
Mention the default modes of the File.
Answer:

  1. ‘t’ – open the text mode in default.
  2. The default is reading in text mode, while reading from the file the data would be in the format of strings.
  3. ‘r’- Open the file for reading in default.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 20.
What is use of nextQ function?
Answer:

  1. CSV file data for a selected column for sorting, the row heading is also get sorted, to avoid that the first row should be skipped.
  2. This can be done by using the command next ( ) function.

Question 21.
How will you sort more than one column from a csv file?Give an example statement.
Answer:
To sort by more than one column we can use itemgetter with multiple indices.
Eg:
Operator. itemgetter( 1,2)
The first and second rows are sorted from CSV file and displayed in ascending order.

Question 22.
Write a note on open( ) function of python. What is the difference between the two methods?
Answer:
Python has a built – in function open ( ) to open a file. This function returns a file object, also called a handle, as it is used to read or modify the file accordingly.
Eg:
>>> c = open (“stud.txt”)
# open file in current directory
>>> c = open (‘D:\\prg\\Temp\\stud.csv’’) Specifing full path
Whether you want to read ‘r’, write ‘w’ or append ‘a’ to the file, also specify the opening file.
Python has two methods
(i) readable () – Returns True if the stream can be read from.
(ii) readline (n = -1) – Read and return a list of lines from the file.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 23.
Write a Python program to modify an existing file.
Answer:
The following program modify the “student, csv” file by modifying the value of an existing row in student.csv
import csv
row = [‘3’, ‘Meena’,’Bangalore’]
with open(‘student.csv’, ‘r’) as readFile:
reader = csv.reader(readFile)
lines = list(reader)
# list()- to store each row of data as a list
lines[3] = row
with open(‘student.csv’, ‘w’) as writeFile:
# returns the writer object which converts the user data with delimiter
writer = csv.writerfwriteFile)
#writerows( )method writes tnultiple rows to a csv file
writer . writerows(lines)
readFile.close( )
writeFile.close( )

Question 24.
Write a Python program to read a CSV file with default delimiter comma (,).
Answer:
The following program read a file called “sample 1 .csv” with default delimiter comma (,) and print row by row.
importing csv
import csv
#opening the csv file which is in different location with read mode
with open(‘c:\\pyprg\\samplel.csv’, ‘r’) as
F:
#other way to open the file is f= (‘c:\\pyprg\\ samplel.csv’, ‘r’)
reader = csv.reader(F)
# printing each line of the Data row by row print(row)
F.close( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 25.
What is the difference between the write mode and append mode.
Answer:

  1. Write (w) and Append (a) mode, while opening a file are almost the same.
  2. Append mode is used to append or add data to the existing data of file, if any.
  3. Hence, when you open a file in Append (a) mode, the cursor is positioned at the end of the present data in the file.

Question 26.
What is the difference between reader( ) and DictReader( ) function?
Answer:

  1. The main difference between the csv.reader( ) and DictReader( ) is in simple terms csv.reader and csv.writer work with list/tuple.
  2. While csv.DictReader and csv.Dictwriter work with dictionary.
  3. csv.DictReader and csv.dietwriter take additional argument fieldnames that are used as dictionary keys.
  4. To read a csv file into a dictionary can be done by using DictReader class of csv module which works similar to the reader( ) class but creates an object which maps data to a dictionary.

Question 27.
Differentiate Excel file and CSV file.
Answer:

Excel CSV file
Excel is a binary file that holds information about all the worksheets in a file, including both content and formatting. CSV format is a plain text format with a series of values separated by commas.
XLS files can only be read by applications that have been especially written to read their format, and can only be written in the same way. CSV can be opened with any text editor in Windows like notepad, MS Excel, OpenOffice, etc.
Excel is a spreadsheet that saves files into its own proprietary format viz. xls or xlsx. CSV is a format for saving tabular information into a delimited text file with extension .csv
Excel consumes more memory while importing data. Importing CSV files can be much faster, and it also consumes less memory.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 28.
Tabulate the different mode with its meaning.
Answer:
r – Open file for reading
w – Open file for writing
x – Open file for exclusive creation
a – Open for appending
t – Open in text mode
b – Open in binary mode
t – Open a file for updating.

Question 29.
Write the different methods to read a File in Python.
Answer:
(i) CSV module’s Reader function:
The reader function is designed to take each line of the file and make a list of all columns.
Using this method one can read data from csv files of different formats like quotes (“ ”), pipe (|) and column (,).
The syntax is csv.reader (file object, delimiter, fmt params)

(ii) Read a specific column in a file:
To get the specific columns like only item.
Eg:
readfile = csv.reader (f)
for col in readfile:
print col[0], col[3] f.close ()
(iii) Read a csv file and store It In A list:
are going to read a csv file and the contents of the file will be stored as a list.
The syntax for storing in the List is
list = [ ]
list.append (element)

(iv) Reading csv file Into a Dictionary:
To read a csv file into a dictionary can be done by using DictReader class of csv module which works similar to the reader ( ) class but creates an object which maps data to a dictionary. The main difference is in simple terms csv.reader () and DictReader( )is in simple terms csv.reader and csv.writer work with list/tuple, while csv.DictReader and csv.Dictwriter work with dictionary.

(v) Reading csv file with user Defined Delimiter into a dictionary:
We can register new dialects and use it in the DictReader( ) methods.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 30.
Write a Python program to write a CSV File with custom quotes.
Answer:
import csv
info = [[‘SNO\ ‘Person’, ‘DOB’],
[‘1’, ‘Madhu’, ‘18/12/2001’],
[‘2’, ‘Sowmiya’,’ 19/2/1998’],
[‘3’, ‘Sangeetha’,’20/3/1999’],
[‘4’, ‘Eshwar’, ‘21/4/2000’],
[‘5’, ‘Anand’, ‘22/5/2001’]]
csv.register_dialect(‘myDialect’, quoting = csv.QUOTEALL)
with open(‘c:\\pyprg\\chl3\\person.csv’,‘w’) asf:
writer = csv.writer(f, dialect=‘myDialect’) for row in info: writer, writero w(row)
. f.close( )

Question 31.
Write the rules to be followed to format the data in a CSV file.
Answer:
Rules to be followed to format data in a CSV . file:
(i) Each record (row of data) is to be located on a separate line, delimited by a line break by pressing enter key.
Eg:
xxx,yyy TN State Board 12th Computer Science Important Questions Chapter 13 Python and CSV Files 1
TN State Board 12th Computer Science Important Questions Chapter 13 Python and CSV Files 1 denotes enter Key to be pressed

(ii) The last record in the file may or may not have an ending line break.
Eg:
PPP, qqq TN State Board 12th Computer Science Important Questions Chapter 13 Python and CSV Files 1
yyy, xxx

(iii) The header will contain names corresponding to the fields in the file and should contain the same number of fields as the records in the rest of the file.
Eg:
fieldnamel ,field_name2, field_name3 TN State Board 12th Computer Science Important Questions Chapter 13 Python and CSV Files 1
aaa,bbb,ccc TN State Board 12th Computer Science Important Questions Chapter 13 Python and CSV Files 1
zzz,yyy,xxx CRLF( Carriage Return and Line Feed)

(iv) Within the header and eafeh record, there may be one or more fields, separated by commas. Spaces are considered part of a field and should not be ignored. The last field in the record must not be followed by a comma.
For example: Red , Blue

(v) Each field may or may not be enclosed in double quotes. If fields are not enclosed with double quotes, then double quotes may not appear inside the fields.
Eg:
“Red”,’’Blue”,”Green” TN State Board 12th Computer Science Important Questions Chapter 13 Python and CSV Files 1
Black,White,Yellow

(vi) Fields containing line breaks (CRLF), double quotes, and commas should be enclosed in double-quotes.
Eg:
Red, ” , “Blue CRLF
Red, Blue , Green

(vii) If double-quotes are used to enclose fields, then a double-quote appearing inside a field must be preceded with another double quote.
Eg:
“Red, ” “Blue”, “Green”,
, , White

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 32.
Write a Python program to read the following Namelist.
Answer:

TN State Board 12th Computer Science Important Questions Chapter 13 Python and CSV Files 2

# program Namelist.csv file alphabetical order.
import.csv
infile = ‘c:\\pyprg\\Namelist.csv’

Python file
F = open (in file,’r’)
reader = csv.reader (F)
next (reader)
array value = [ ]
for row in reader:
array value.append (row)
array value.sort ()
for row in array value:
print (row)
F. close ( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 33.
Write a Python program to accept the name and five subjects mark of 5 students. Find the total and store all the details of the students in a CSV file.
Answer:
import csv
with open (‘c:\\pyprg\\school\\student. csv’,w) as f:
w – csv.writer (f) ans = ‘y’
while (ans =r-=‘y’): name = input (“Name”) subl = input (“subject 1 mark”) sub2 = input (“subject 2 mark”) sub3 = input (“subject 3 mark”) sub4 = input (“subject 4 mark”) sub5 = input (“subject 5 mark”)
Total = 0
Total = subl+sub2+sub3+sub4+sub5
w.writerow ([name, subl, sub2, sub3, sub4, sub5,Total])
ans = input (“Do you want more y/n”)
F = open (‘c:\\pyprg\\school\\stuent.csvYr’) reader = csv.reader (F) for row in reader:
Print (row)
F.close ( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Choose the best answer:

Question 1.
What is extension filename of CSV?
(a) .txt
(b) .xls
(c) .csv
(d) .py
Answer:
(c) .csv

Question 2.
What is the shortcut key used to open a new CSV file in notepad?
(a) Ctrl + O
(b) Ctrl + N
(c) Ctrl + N
(d) Alt + O
Answer:
(b) Ctrl + N

Question 3.
Each record is to be located on a separate line, delimited by a line break by pressing:
(a) Enter key
(b) Ctrl key
(c) Alt key
(d) Esc key
Answer:
(a) Enter key

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 4.
Which CSV file will be opened default?
(a) Open office calc
(b) MS Excel
(c) Star office calc
(d) Launch Excel
Answer:
(b) MS Excel

Question 5.
Which of the following is open the text mode?
(a) ‘r’
(b) ‘x’
(c) ‘a’
(d) ‘t’
Answer:
(d) ‘t’

Question 6.
Which is default file mode to open a file for reading?
(a) ‘r’
(b) ‘x’
(c) ‘a’
(d) ‘t’
Answer:
(a) ‘r’

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 7.
Which statement is best way to do ensures that the file is closed?
(a) With
(b) Exit
(c) Stop
(d) Close
Answer:
(a) With

Question 8.
A dialect is a:
(a) Class
(b) Object
(c) Method
(d) Function
Answer:
(a) Class

Question 9.
Which delimiter is considered as column separator?
(a) = (equal)
(b) , (comma)
(c) | (pipe)
(d) & (amphersand)
Answer:
(c) | (pipe)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 10.
Which operator is used to set more than one column in csv file?
(a) Sort record
(b) item getter
(c) data getter
(d) column getter
Answer:
(b) item getter

Question 11.
Which class can be done to read csv file into a dictionary?
(a) dict( )
(b) Read
(c) DictReader
(d) Reader
Answer:
(c) DictReader

Question 12.
Which method is used to writes all the data in to the new csv file?
(a) write rows ( )
(b) write row ( )
(c) store rows ( )
(d) store row ( )
Answer:
(a) write rows ( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 13.
What is called to add more data in the existing csv file?
(a) Append
(b) Adding
(c) Modification
(d) Writing
Answer:
(c) Modification

Question 14.
Which of the following known as default line terminator to write csv file?
(a) ‘/r’
(b) ‘\n’
(c) ‘\w’
(d) Both (a) and (b)
Answer:
(d) Both (a) and (b)

Question 15.
Which function is used to print the data in dictionary format without order?
(a) DictReader ( )
(b) diet ( )
(c) function diet ( )
(d) Dictwriter ( )
Answer:
(b) diet ( )

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 16.
Which is the default mode of csv file in reading and writing?
(a) text mode
(b) binary mode
(c) formated mode
(d) pdf mode
Answer:
(a) text mode

Question 17.
Python has a garbage collector to clean up unreferenced:
(a) variables
(b) objects
(c) method
(d) function
Answer:
(b) objects

Question 18.
Which is used for removing white spaces after the delimiter in csv file?
(a) “Skip initial space”
(b) “Skip”
(c) “space”
(d) “initial space”
Answer:
(a) “Skip initial space”

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 19.
csv.reader and csv.writer work with:
(a) list
(b) tuple
(c) a or b
(d) None
Answer:
(c) a or b

Question 20.
Adding a new row at the end of file is called:
(a) Adding a row
(b) Appending a row
(c) Inserting a row
(d) Modifying a row
Answer:
(b) Appending a row

Question 21.
Match the following:

(i) ‘r’ A. updating mode
(ii) ‘w’ B. appending mode
(iii) ‘a’ C.  writing mode
(iv) ‘t’ D. reading mode

(a) (i) – D, (ii) – C , (iii) – B, (iv) – A
(b) (i) – D, (ii) – B, (iii) – A, (iv) – C
(c) (i) – B, (ii) – A , (iii) – C, (iv) – D
(d) (i) – B, (ii) – C, (iii) – D, (iv) – A
Answer:
(a) (i) – D, (ii) – C , (iii) – B, (iv) – A

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 22.
Match the following:

(i) ‘w’ A. add data end of file
(ii) ‘a’ B. write a new file
(iii) write row ( ) C. write all rows
(iv) write rows ( ) D. write one row

(a) (i) – B, (ii) – A, (iii) – D, (iv) – C
(b) (i) – B, (ii) – D, (iii) – C, (iv) – A
(c) (i) – D, (ii) – C, (iii) – A, (iv) – B
(d) (i) – D, (ii) – A, (iii) – B, (iv) – C
Answer:
(a) (i) – B, (ii) – A, (iii) – D, (iv) – C

Question 23.
Match the following:

(i) close ( ) A. Convert delimited strings
(ii) DictReader  ( ) B. print the data
(iii) Function diet ( ) C. tied with the file
(iv) csv. writer ( ) D. creates an object

(a) (i) – C, (ii) – B , (iii) – A, (iv) – D
(b) (i) – C, (ii) – D, (iii) – B, (iv) – A
(c) (i) – B, (ii) – A, (iii) – D, (iv) – C
(d) (i) – B, (ii) – D, (iii) – C, (iv) – A
Answer:
(b) (i) – C, (ii) – D, (iii) – B, (iv) – A

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 24.
Choose the incorrect pair:
(a) CSV – comma separated value
(b) XLS – excel sheets
(c) CRLF – control Return and Line Feed
(d) PY – Python
Answer:
(c) CRLF – control Return and Line Feed

Question 25.
Choose the correct pair:
(a) ‘x’ – open binary mode
(b) ‘b’ – open for writing
(c) ‘t’ – open for updating
(d) ‘t’ – open for reading
Answer:
(c) ‘t’ – open for updating

Question 26.
Choose the incorrect statement:
(a) Excel is binary file in python.
(b) csv format is a plain text.
(c) Import csv files can be much slower.
(d) CSV is a format for saving tabular information.
Answer:
(c) Import csv files can be much slower.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 27.
Choose the incorrect statement:
(a) Files saved in excel cannot be opend or edited by text editors.
(b) CSV file can be store charts and graphs.
(c) A CSV file is also known as a flat file.
(d) A CSV file is a text file.
Answer:
(b) CSV file can be store charts and graphs.

Question 28.
Choose the correct statement:
(a) The last record in the CSV file may or may not have an ending line break.
(b) In CSV file, each field must be enclosed in single quotes.
(c) In CSV file, double-quotes should not be used to enclosed fields.
(d) In CSV file, each record is to be located on a single line.
Answer:
(a) The last record in the CSV file may or may not have an ending line break.

Question 29.
Pick the odd one out.
(a) MS Excel
(b) Open office calc
(c) Python
(d) Star office calc
Answer:
(c) Python

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 30.
Pick the odd one out
(a) (“ ”) quotes
(b) (|) pipe
(c) (,) comma
(d) (;) semicolon
Answer:
(d) (;) semicolon

Question 31.
Assertion (A):
The commas that are part of your data will then be kept separate from the commas which delimit the fields themselves.
Reason (R):
If the fields of data in your CSV file contain commas, you can protect them by enclosing those data fields in double-quotes (“ ”)
(a) Both A and R are True and R is the correct explanation for A.
(b) Both A and R are True but R is not the correct explanation for A.
(c) A is true But R is False.
(d) A is False But R is True.
Answer:
(a) Both A and R are True and R is the correct explanation for A.

Question 32.
Assertion (A):
In CSV files, a delimiter is a string used to separate fields.
Reason (R):
The default value is (;) semicolon.
(a) Both A and R are True and R is the correct explanation for A.
(b) Both A and R are True but R is not the correct explanation for A.
(c) A is true But R is False.
(d) A is False But R is True.
Answer:
(c) A is true But R is False.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 33.
Which spreadsheet, by default the CSU file will be opened?
(a) Open office calc
(b) Star calc
(c) MS Excel
(d) All of these
Answer:
(c) MS Excel

Question 34.
Which of the mode for open a file for writing?
(a) ‘r’
(b) ‘w’
(c) ‘x’
(d) ‘o’
Answer:
(b) ‘w’

Question 35.
Which of the mode for open a file for exclusive creation?
(a) ‘r’
(b) ‘w’
(c) ‘x’
(d) ‘o’
Answer:
(c) ‘x’

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 36.
Which of the mode to open for appending at the end of the file without truncating it?
(a) ‘a’
(b) ‘t’
(c) ‘b’
(d) ‘+’
Answer:
(a) ‘a’

Question 37.
Which of the mode to open in binary mode?
(a) ‘a’
(b) ‘f
(c) ‘b’
(d) ‘+’
Answer:
(c) ‘b’

Question 38.
Which of the mode to open a file for updating?
(a) ‘a’
(b) ‘t’
(c) ‘b’
(d) ‘+’
Answer:
(d) ‘+’

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 39.
How many ways to read a CSV file?
(a) 2
(b) 3
(c) 4
(d) 5
Answer:
(a) 2

Question 40.
How many types of modes can be used while opening a CSV file?
(a) 2
(b) 3
(c) 4
(d) 5
Answer:
(b) 3

Question 41.
Which of the following is not type of mode while opening a CSV file?
(a) w
(b) r
(c) a
(d) m
Answer:
(d) m

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 42.
When reading CSV file in text mode, the format of data should be:
(a) string
(b) integer
(c) character
(d) float
Answer:
(a) string

Question 43.
How many ways are available to write or ‘ modify the existing CSV file?
(a) 2
(b) 4
(c) 6
(d) 8
Answer:
(d) 8

Question 44.
What is extension of CSV file?
(a) .cs
(b) .cv
(c) .csv
(d) .c
Answer:
(c) .csv

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 45.
A CSV file is also known as a:
(a) Flat File
(b) 3D File
(c) String File
(d) Random File
Answer:
(a) Flat File

Question 46.
The expansion of CRLF is:
(a) Control Return and Line Feed
(b) Carriage Return and Form Feed
(c) Control Router and Line Feed
(d) Carriage Return and Line Feed
Answer:
(d) Carriage Return and Line Feed

Question 47.
Which of the following module is provided by Python to do several operations on the CSV files?
(a) py
(b) xls
(c) csv
(d) os
Answer:
(c) csv

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 48.
Which of the following mode is used when dealing with non-text files like image or exe files?
(a) Text mode
(b) Binary mode
(c) xls mode
(d) csv mode
Answer:
(b) Binary mode

Question 49.
The command used to skip a row in a CSV file is:
(a) next( )
(b) skip( )
(c) omit( )
(d) bounce( )
Answer:
(a) next( )

Question 50.
Which of the following is a string used to terminate lines produced by writer( )method of csv module? .
(a) Line Terminator
(b) Enter key
(c) Form feed
(d) Data Terminator
Answer:
(a) Line Terminator

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 51.
What is the output of the following program? import csv
d=csv.reader(open(‘c:\PYPRG\ch 13\city. csv’))
next(d)
for row in d:
print(row)
if the file called “city.csv” contain the following details
chennai, mylapore mumbai, andheri
(a) chennai,mylapore
(b) mumbai,andheri
(c) chennai-mumbai
(d) chennai,mylapore-mumbai,andheri
Answer:
(b) mumbai,andheri

Question 52.
Which of the following creates an object which maps data to a dictionary?
(a) listreader( )
(b) reader( )
(c) tuplereader( )
(d) DictReader ( )
Answer:
(d) DictReader ( )

Question 53.
Making some changes in the data of the existing file or adding more data is called:
(a) Editing
(b) Appending
(c) Modification
(d) Alteration
Answer:
(c) Modification

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 13 Python and CSV Files

Question 54.
What will be written inside the file test.csv using the following program?
import csv
D = [[‘Exam’],[‘Quarterly’],[‘Halfyearly’]]
csv.register_dialect( ‘ M ’ ,lineterminator= V)
with open(‘c:\pyprg\chl3\line2.csv’,‘w’)asf:
wr = csv.writer(f,dialect=‘M’)
wr.writerows(D)
f.close( )
(a) Exam Quarterly Halfyearly
(b) Exam Quarterly Halfyearly
(c) E
Q
H
(d) Exam,
Quarterly,
Halfyearly
Answer:
(d) Exam,
Quarterly,
Halfyearly

TN Board 12th Computer Science Important Questions

TN Board 12th Computer Science Important Questions Chapter 12 Structured Query Language (SQL)

TN State Board 12th Computer Science Important Questions Chapter 12 Structured Query Language (SQL)

Question 1.
What is known as CRUD?
Answer:
RDBMS is a type of DBMS \yith a row based table structure that connects related data elements and includes functions related to create, Read, update and Delete operations, collectivity known as CRUD.

Question 2.
What is a Table?
Answer:

  1. A Table is a collection of related data entries and it consists of rows and columns.
  2.  The data in RDBMS is stored in database objects called tables.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 3.
What is a Record?
Answer:

  1. A Record is a row, which is a collection of related fields or columns that exist in Table.
  2. A record is a horizontal entity in a table which represents the details of a particular student in a student table.

Question 4.
What is data definition language?
Answer:

  1. The Data definition language (DDL) consists of SQL statements used to define the database structure or schema.
  2. The DDL provides a set of definitions to specify the storage structure and access method used by the database system.

Question 5.
What is Data Manipulation Language?
Answer:
A data manipulation language (DML) is a computer programming language used for adding, removing and modifying data in a database.

Question 6.
What are types of DML?
Answer:
The DML basically of two types

  • Procedural DML – Requires a user to specify what data is needed and how to get it.
  • Non – procedural DML – Requires a user to specify what data is needed without specifying how to get it.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 7.
What are SQL commands which comes under Data Definition Language?
Answer:

  1. Create
  2. Alter
  3. Drop
  4. Truncate

Question 8.
What are SQL commands which comes under Data Manipulation Language?
Answer:

  1. Insert
  2. Update
  3. Delete

Question 9.
What are the SQL commands which comes under Data Control Language?
Answer:

  • Grant – Grant permission to one or more users to perform specific tasks.
  • Revoke – Withdraws the access permission given by the GRANT statement.

Question 10.
What are SQL commands which comes under Control Language?
Answer:

  1. Commit
  2. Rollback
  3. Save point

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 11.
Write a update command, the age to 17 for those student whose place is MADURAI using SET keyword.
Answer:
UPDATE student SET Age = 17 WHERE Place = “MADURAI”;

Question 12.
What is difference between DROP and DELETE commands?
Answer:

  1. DROP command is to remove entire Table in a database. Once a table is dropped we cannot get it back.
  2. DELETE command deletes only the rows from the table based on the condition.

Question 13.
What is difference for DISTINCT and ALL keywords?
Answer:

  1. DISTINCT keyword to eliminate duplicate rows in the table. This helps to eliminate redundant data.
  2. ALL keyword retains duplicate rows.

Question 14.
Write syntax ORDER BY clause?
Answer:
SELECT <column Name> [, <column- Name>,…] FROM <table~name> ORDER BY <columnl>, <column2>,… ASC/DESC;
Eg: SELECT*FROM Student ORDER BY Name ASC:

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 15.
What is HAVING clause?
Answer:
The HAVING clause can be used along with GROUP BY clause in the SELECT Statement to place condition on groups and can include aggregate functions on them.

Question 16.
What is use of COMMIT command?
Answer:

  1. The COMMIT command is used to permanently save any transaction to the database.
  2. When any DML commands INSERT, UPDATE, DELETE commands are used, the changes made by using COMMIT command.

Question 17.
What is difference between DISTINCT keyword and ALL keyword?
Answer:

  1. The DISTINCT keyword is used along with the SELECT command to eliminate duplicate rows in the table.
  2. The All Keyword retains duplicate rows.
  3. It will display every row of the table without considering duplicate entries.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 18.
Write the difference between BETWEEN and NON-BETWEEN keywords.
Answer:

  1. The BETWEEN keyword defines a range the record must fall into to make the condition true.
  2. The NOT BETWEEN is reverse of the BETWEEN operator where the records not satisfying the condition are displayed.

Question 19.
Write the difference between In and NOT IN keyword.
Answer:

  1. The IN keyword is used to specify a list of values which must be matched with the record values. It is similar to OR condition.
  2. The NOT IN keyword displays only those records that do not match in the list.

Question 20.
What is the use of check constraint?
Answer:
The check constraint may use relational and logical operations for condition.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 21.
What is the use of ORDER BY clause?
Answer:
The ORDER BY clause in SQL is used to sort the data in either ascending or descending based on one or more columns.

Question 22.
What is the use of GROUP BY clause?
Answer:
The GROUP BY clause is used with the SELECT statement to group the students on rows or columns having identical values or divide the table in to groups.

Question 23.
What is the use of HAVING clause?
Answer:
The E1AVING clause can be used along with GROUP BY clause in the SELECT statement to place condition on groups and can include aggregate function on them.

Question 24.
What is the use of COMMIT command?
Answer:
The COMMIT command is used to permanently save any transaction to the database.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 25.
What is the use of ROLLBACK command?
Answer:
The ROLLBACK command is used to restores the database to the last committed state.

Question 26.
What is the use of SAVEPOINT command?
Answer:
The SAVEPOINT command is used to temporarily save a transaction.

Question 27.
How can you create a database?
Answer:
(i) To create a database
CREATE DATABASE database name;
Eg:
CREATE DATABASE student;

(ii) To work with the database
USE DATABASE;
Eg:
USE student;

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 28.
What is WAMP?
Answer:
(i) WAMP stands for “windows, Apache, MySQL and PHP”.
(ii) WAMP is a variation of LAMP for windows system and is installed as a software bundle (Apache, MySQL and PHP).
(iii) It is often used for web development and internal testing, but may also be used to serve live websites.

Question 29.
Write the function of DDL commends.
Answer:
A DDL performs the following functions:

  1. It should identify the type of data division such as data item, segment, record and database file.
  2. It gives a unique name to each data item type, record type, file type and data base.
  3. It should specify the proper data type.
  4. It should define the size of the data item.
  5. It may define the range of values that a data item may use.
  6. It may specify privacy locks for preventing unauthorized data entry.

Question 30.
What is mean by Data Manipulation?
Answer:

  1. Insertion of new information into the database.
  2. Retrieval of information stored in a database.
  3. Deletion of infonnation from the database.
  4. Modification of data stored in the database.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 31.
Write the SQL commands and their functions.
Answer:
Tables are the only way to store data, therefore all the information has to be arranged in the form of tables. The SQL provides a predetermined set of commands to work on databases.

Keywords:
They have a special meaning in SQL. They are understood as instructions. Commands: They are instructions given by the user to the database also known as statements.

Clauses:
They begin with a keyword and consist of keyword and argument.

Question 32.
Explain DELETE, TRUNCATE and DROP statement.
Answer:
(i) DELETE:
The DELETE command deletes only the rows from the table based on the condition given in the where clause or deletes all the row s from the table if no condition is specified. But it does not free the space containing the
table.

(ii) TRUNCATE:
The TRUNCATE command is used to delete all the row’s, the structure remains in the table and free the space containing the table.

(iii) DROP:
The DROP command is used to remove an object from the database. If you drop a table, all the rows in the table is deleted and the table structure is removed from the database. Once a table is dropped we cannot get it back.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 33.
List the different data types used in SQL
Answer:

  1. char (character)
  2. varchar
  3. dec (Decimal)
  4. numeric
  5. int (integer)
  6. small int
  7. float
  8. Real
  9. Double

Question 34.
Write the different types of SQL commands.
Answer:

  1. DDL – Data Definition Language
  2. DML – Data Manipulation Language
  3. DCL – Data Control Language
  4. TCL – Transaction Control Language
  5. DQL – Data Query Language

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 35.
What are the various processing skills of SQL?
Answer:
The various processing skills of SQL are :

(i) Data Definition Language (DDL):
Theb SQL DDL provides commands for defining relation schemas (structure), deleting relations, creating indexes and modifying relation schemas.

(ii) Data Manipulation Language (DML):
The SQL DML includes commands to insert.delete, and modify tuples in the database.

(iii) Embedded Data Manipulation Language:
The embedded form of SQL is used in high level programming languages.

(iv) View Definition:
The SQL also includes commands for defining views of tables.

(v) Authorization:
The SQL includes
commands for access rights to relations and views of tables.

(vi) Integrity:
The SQL provides forms for integrity checking using condition.

(vii) Transaction control:
The SQL includes commands for file transactions and control over transaction processing.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 36.
Explain Any 5 data types?
Answer:
(i) char(Character):
Fixed width string value. Values of this type is enclosed in single quotes. Eg:Anu’s will be written
as ‘Anu’ ‘s’.

(ii) varchar:
Variable width character string. This is similar to char except the size of the data entry vary considerably.

(iii) numeric:
It is same as decimal except that the maximum number of digits may not exceed the precision argument.

(iv) int(Integer):
It represents a number without a decimal point. Here the size argument is not used.

(v) float:
It represents a floating point number in base 10 exponential notation and may define a precision up to a maximum of 64.

Question 37.
What is the role of SQL in RDBMS?
Answer:
(i) RDBMS stands for Relational Data Base Management System. Oracle, MySQL, MS SQL server, IBMDB2 and Microsoft Access are RDBMS packages.
(ii) Database is a collection of tables that store set of data that can be queried for use in other applications.
(iii) A Database Management System supports the development, Administration and use of database platforms.
(iv) The data in RDBMS, is stored in data base objects, called tables. A Table is a collection of related data entries and it consist of row and columns.
(v) A field is a column in a table that is designed to maintain specific related information about every records in the table.
(vi) A Record is a row, which is a collection of related fields or columns that exist in a table.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 38.
Write a query that selects all students whose age is less than 18 in order wise.
Answer:
SELECT * Name, Age FROM Student WHERE Age < 18 ORDER BY Name ASC;
Where
Student – Name of the file name.
ASC – Ascending order (Name column)

Question 39.
Differentiate Unique and Primary Key constraint.
Answer:

Unique Primary Key
Unique constraint ensures that no two rows have the same value in the specified columns.Primary key constraint declares a field as a primary key which helps to uniquely identify a record.
The unique constraint can be applied only to fields that have also been declared as NOT NULL.The primary key does not allow NULL values and therefore a field declared as primary key must have the NOT NULL constraint.

Question 40.
Write the difference between constraint and column constraint?
Answer:

Table constraint Column constraint
When the constraint is applied to a group of fields of the table, it is known as Table constraint.The table constraint is normally given at the end of the table definition.
The table constraint is normally given at the end of the table definition.When we define a check constraint on a single column.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 41.
Which component of SQL lets insert values in tables and which lets to create a table?
Answer:
The INSERT command helps to add new data to the database or add new records to the table. The command is
INSERT INTO <table name> [column-list] VALUES (values);
The CREATE TABLE command to add values into the table. The order of values must match the order of columns in the command.

Question 42.
What is the difference between SQL and MySQL?
Answer:

SQL

 MySQL

SQL – Structured Query Language is a language used for accessing databases.MySQL is a database management system like SQL server.
SQL allows user to create, retrieve, alter and transfer information among databases.MySQL is a RDBMS, it is language designed for managing and accessing data in a Relational Database management svstem.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 43.
What is a constraint? Write short note on Primary key constraint.
Answer:

  1. Constraint is a limit to the data or type of data that can be inserted, updated, or deleted from a table.
  2. The whole purpose of constraints is to maintain the data integrity.
  3. A primary key constraint which helps to uniquely identify a record.
  4. It is similar to unique constraint except that only field of a table can be set as primary key.
  5. The primary key does not allow NULL values.

Question 44.
Write a SQL statement to modify the student table structure by adding a new field.
Answer:

  1. The ALTER command is used to modify the student table structure.
  2. The syntax is ALTER TABLE <table name> ADD <column namexdata type><size>;
  3. To add a new column ‘Address’ of type ‘char’ to the student table, the command is used as ALTER TABLE student ADD Address char;

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 45.
Write any three DDL commands.
Answer:
(i) CREATE TABLE:
When using this command a table is created, its columns are named, data types and sizes are to be specified.

(ii) ALTER:
This command is used to alter the table structure like adding a column, renaming the existing column, change the data type of any column or size of the column or delete the column from the table.

(iii) DRQP TABLE:
This DDL command is used to remove a table from the database. When we use DROP TABLE command carefully because we cannot get removed table back.

Question 46.
Write the use of Savepoint command with an example.
Answer:
(i) The SAVEPOINT command is used to temporarily save a transaction so that you can roll back to the point whenever required.
(ii) The different states of our table can be saved at any time using different names and the rollback to that state can be done using the ROLLBACK command.
SAVEPOINT savepoint_Name;
Eg:
INSERT INTO STUDENT VALUES (1001, ‘ARUN’, ‘M’, ‘46’, ‘OOTY’);
SAVEPOINT A;

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 47.
Write a SQL statement using DISTINCT keyword.
Answer:
The DISTINCT keyword is used along with the SELECT command to eliminate duplicate rows in the table. This command helps to eliminate redundant data.
Eg:
SELECT DISTINCT place FROM student;
In this example, the keyword DISTINCT is used, only one NULL value is returned, even if more NULL values occur.

Question 48.
Write the different types of constraints and their functions.
Answer:
Constraints ensure database integrity. The different types of constraints are unique constraint, primary key constraint, Default constraint and check constraint.

(i) Unique constraint:
This constraint ensures that no two rows have the same values in the specified columns. The UNIQUE constraint can be applied only to fields that have also been declared as NOT NULL.

(ii) Primary key constraint:
This constraint declares a field as a primary key which helps to unique identify a record. The primary key does not allow NULL values and therefore a field declared as primary key must have the NOT NULL constraint.

(iii) DEFAULT constraint:
The DEFAULT constraint is used to assign a default value for the field. When no value is given for the specified field having DEFAULT constraint, automatically the default value will be assigned to the field.

(iv) CHECK constraint:
This constraint helps to set a limit value placed for a field. When we define a check constraint on a single column, it allows only the restricted values on that field.

(v) TABLE constraint:
When the constraint is applied to a group of fields of the table, it is known as Table constraint. The Table constraint is normally given at the end of the table definition.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 49.
Consider the following employee table. Write SQL commands for the qtns.(i) to (v)
Answer:

TN State Board 12th Computer Science Important Questions Chapter 12 Structured Query Language (SQL) 1

TN State Board 12th Computer Science Important Questions Chapter 12 Structured Query Language (SQL) 2

(i) To display the details of all employees in descending order of pay.
(ii) To display all employees whose allowance is between 5000 and 7000.
(iii) To remove the employees who are mechanic.
(iv) To add a new row.
(v) To display the details of all employees who are operators.

(i) SELECT*FROM employee ORDER BY PAY DESC;
(ii) SELECT*FROM employee WHERE ‘ (Allowance > 5000 AND Allowance < 7000);
(iii) DELETE*FROM employee WHERE ’ DESIG – “Mechanic”;
(iv) INSERT INTO employee (EMP CODE, NAME, DESIG, PAY ALLOWANCE) VALDES (Ml006, TIARL, ‘Mechanic’, 22000, 7500);
(v) SELECT*FROM employee WHERE DESIG – “operator”;

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 50.
What are the components of SQL? Write the commands in each.
Answer:
Components of SQL are divided by Five categories. They are
(i) DML Data Manipulation Language.
INSERT command helps to add new data , to the database or add new records to the table.

(ii) DDL- Data Definition Language.
ALTER command is used to alter the structure like adding a column, renaming the existing column etc.

(iii) DCL- Data Control Language.
GRANT command give user’s access privileges to database.

(iv) TCL Transaction Control Language.
COMMIT command is usecko permanently save any transaction to the database.

(v) DQL- Data Query Language.
SELECT command is used to query or retrieve data from a table in the database.

Question 51.
Construct the following SQL statements in the student table.
Answer:
(i) SELECT statement using GROUP BY Clause.
The group by clause is used with the SELECT statement to group the students on rows or columns having identical values or divide the table into groups.
The syntax for the GROUP BY Clause is SELECT <column – names> FROM <Table – name> GROUP BY<column-Name> HAVING <condition>
To apply the above command on the student table.
SELECT Gender FROM Student GROUP By Gender.

(ii) SELECT statement using ORDER BY Gender.
The ORDER By clause is SQL is used to sort the data in either ascending or descending based on one or more columns.
The syntax for the ORDER By clause is
SELECT < column – name >[,< column – name >, …] FROM <table name > ORDER BY < column 1 >, < column 2 >,… ASC / DESC;
To apply the above command on the student table.
SELECT * FROM Student ORDER BY Gender.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 52.
Write a SQL statement to create a table for employee having any five fields and create a table constiaint for the employee table.
Answer:
CREATE TABLE Employee
(
Employee Number NOT NULL PRIMARY KEY,
Emp Name char (25) NOT NULL,
Gender char (1),
EmpDesig char (10),
Age integer DEFAULT = “18”,
Salary (CHECK < = 20000),
);

Question 53.
Create a query of the student table in the following order of fields name, age, place and adm no.
Answer:
#Create a database
CREATE TABLE student
( name varchar (20) NOT NULL
Age int NOT NULL
place char(20)
Adm No int NOT NULL
Primary key (Adm No)
);
#Using SELECT command
SELECT AdmNo, name FROM student;
This command will display All name and Admission Number from student database.
SELECT * FROM student;
This command will display all the fields and rows of the table from student database.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 54.
Create a query to display the student table with students of age more than 18 with unique city.
Answer:
SELECT Adm no, name, Age, place FROM student WHERE (Age > 18 AND Place = “CHENNAI”);

Question 55.
Create a employee table with the following fields employee number, employee name, designation, date of joining and basic pay.
Answer:
CREATE TABLE employee
(
Emp No int (5)
NOT NULL . PRIMARY KEY
EmpName char (20),
EmpDESIG char (10),
EmPDOJ char (8),
EmPBP int (10),
);

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 56.
In the above table set the employee number as primary key and check for NULL values in any field.
Answer:
Emp No int (5) PRIMARY KEY,
SELECT * FROM employee WHERE EmPBP IS NULL;
EmPBP field can be searched in a employee .table, list all the employees whose Basic pay (EmPBP); Contains no value.

Question 57.
Prepare a list of all employees who are of managers.
Answer:
SELECT * FROM employee WHERE EmPDESIG = “MANAGER”;

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Choose the correct answer:

Question 1.
The data in RDBMS, is stored in database objects, called:
(a) Tables
(b) Columns
(c) Rows
(d) Fields
Answer:
(a) Tables

Question 2.
Which skills the SQL provides forms for checking using condition?
(a) View
(b) Integrity
(c) Authorization
(d) Transaction control
Answer:
(b) Integrity

Question 3.
MySQL is a:
(a) SQL
(b) System software
(c) RDBMS
(d) High level language
Answer:
(c) RDBMS

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 4.
LAMP is a:
(a) Serve live website key
(b) Data Definition Language
(c) Data Manipulation Language
(d) Government website
Answer:
(a) Serve live website key

Question 5.
Which command is used to remove all records from a table, also release space occupied by those records? placed for a field?
(a) Create
(b) Alter
(c) Drop
(d) Truncate
Answer:
(d) Truncate

Question 6.
Which command is used delete all records from a table, but not the space occupied by them?
(a) Delete
(b) Alter
(c) Drop
(d) Truncate
Answer:
(a) Delete

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 7.
Which command is used to save anytransaction into the database permanently?
(a) Grant
(b) Commit
(c) Rollback
(d) Savepoint
Answer:
(b) Commit

Question 8.
Which command is used Restore the database to last commit state?
(a) Grant
(b) Commit
(c) Rollback
(d) Savepoint
Answer:
(c) Rollback

Question 9.
Which command is used temporarily save a
transaction?
(a) Grant
(b) Commit
(c) Rollback
(d) Savepoint
Answer:
(d) Savepoint

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 10.
How many types of constraints ensure database integrity?
(a) 2
(b) 3
(c) 4
(d) 5
Answer:
(c) 4

Question 11.
Which constraint can be applied only tofields?
(a) UNIQUE
(b) PRIMARY KEY
(c) DEFAULT
(d) CHECK
Answer:
(a) UNIQUE

Question 12.
Which constraint declares a field as a primary key?
(a) UNIQUE
(b) PRIMARY KEY
(c) DEFAULT
(d) CHECK
Answer:
(b) PRIMARY KEY

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 13.
Which constraint helps to set a limit value placed for a field?
(a) UNIQUE
(b) PRIMARY KEY
(c) DEFAULT
(d) CHECK
Answer:
(d) CHECK

Question 14.
Which constraint is applied to a group fields?
(a) UNIQUE
(b) TABLE
(c) DEFAULT
(d) CHECK
Answer:
(b) TABLE

Question 15.
Which DML command helps to add new data to the database?
(a) INSERT
(b) UPDATE
(c) ALTER
(d) DROP
Answer:
(a) INSERT

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 16.
Which keyword is used to update multiple fields?
(a) ALTER
(b) SET
(e) DROP
(d) INSERT
Answer:
(b) SET

Question 17.
Which DDL command can also be used to remove all columns?
(a) ALTER
(b) DROP
(e) DELETE
(d) TRUNCATE
Answer:
(a) ALTER

Question 18.
Which DDL command deletes only the rows, from the table?
(a) DELETE
(b) TRUNCATE
(c) DROP
(d) REMOVE
Answer:
(a) DELETE

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 19.
Which DDL command is used to delete all the rows, the structure remains in the table?
(a) DELETE
(b) TRUNCATE
(e) DROP
(d) REMOVE
Answer:
(b) TRUNCATE

Question 20.
Which DDL command is used to remove an object from the database?
(a) DELETE
(b) TRUNCATE
(c) DROP
(d) REMOVE
Answer:
(c) DROP

Question 21.
Which DQL command helps to eliminate duplicate rows in the Table?
(a) DISTINCT
(b) ALL
(c) BETWEEN
(d) IN
Answer:
(a) DISTINCT

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 22.
Which DQL keyword retains duplicate rows?
(a) DISTINCT
(b) ALL
(c) BETWEEN
(d) IN
Answer:
(b) ALL

Question 23.
Which DQL keyword defines a range of values?
(a) DISTINCT
(b) ALL
(c) BETWEEN
(d) IN
Answer:
(c) BETWEEN

Question 24.
Which DQL keyword is used to specify a list of values which must be matched with the record values?
(a) DISTINCT
(b) ALL
(c) BETWEEN
(d) IN
Answer:
(d) IN

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 25.
Which DQL clause in SQL is used to sort the data in either ascending or descending?
(a) DISTINCT
(b) ALL
(c) IN
(d) ORDER BY
Answer:
(d) ORDER BY

Question 26.
Which DQL clause is used to filter the records?
(a) WHERE
(b) ALL
(c) IN
(d) ORDER BY
Answer:
(a) WHERE

Question 27.
Match The Following:

(i) SQL (A) RDBMS
(ii) IBMDB2 (B) Data Manipulation Language
(iii) DDL (C) Database
(iv) DML (D) Data Definition Language

(a) (i) – C, (ii) – A, (iii) – D , (iv) – B
(b) (i) – B, (ii) – C, (iii) – D, (iv) – A
(c) (i) – B, (ii) – D, (iii) – A, (iv) – C
(d) (i) – B, (ii) – A, (iii) – C, (iv) – D
Answer:
(a) (i) – C, (ii) – A, (iii) – D , (iv) – B

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 28.
Match the following:

(i) object (A) Field
(ii) column (B) Record
(iii) row (C) Database
(iv) tables (D) Tables

(a) (i) – D, (ii) – A, (iii) – B, (iv) – C
(b) (i) – D, (ii) – C, (iii) – B, (iv) – A
(c) (i) – C, (ii) – B, (iii) – D, (iv) – A
(d) (i) – C, (ii) – B, (iii) – A, (iv) – D
Answer:
(a) (i) – D, (ii) – A, (iii) – B, (iv) – C

Question 29.
Match the following:

(i) Alter (A) DML command
(ii) Update (B) DDL command
(iii) Commit (C) DQL command
(iv) SELECT (D) TCL command

(a) (i) – B, (ii) – D, (iii) – C, (iv) – A
(b) (i) – B, (ii) – A, (iii) – D, (iv) – C
(c) (i) – D, (ii) – C, (iii) – A, (iv) – B
(d) (i) – D, (ii) – A, (iii) – B, (iv) – C
Answer:
(b) (i) – B, (ii) – A, (iii) – D, (iv) – C

Question 30.
Match the following:

(i) ALTER (A) Delete only Row
(ii) DELETE (B) Delete Table
(iii) TRUNCATE (C) Delete Column
(iv) DROP (D) Delete All Row

(a) (i) – C, (ii) – B, (iii) – D, (iv) – A
(b) (i) – B, (ii) – C, (iii) – D, (iv) – A
(c) (i) – C, (ii) – A, (iii) – D, (iv) – B
(d) (i) – B, (ii) – D, (iii) – A, (iv) – C
Answer:
(c) (i) – C, (ii) – A, (iii) – D, (iv) – B

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 31.
Match the following:

(i) DISTINCT (A) List of values
(ii) ALL (B) range of values
(iii) IN (C) retain duplicate row
(iv) BETWEEN (D) eliminate duplicate row

(a) (i) – D, (ii) – A, (iii) – B, (iv) – C
(b) (i) – D, (ii) – C, (iii) – A, (iv) – B
(c) (i) – C, (ii) – A, (iii) – B, (iv) – D
(d) (i) – C, (ii) – B, (iii) – D, (iv) – A
Answer:
(b) (i) – D, (ii) – C, (iii) – A, (iv) – B

Question 32.
Choose the incorrect pair:
(a) HAVING – Group By
(b) COMMIT – Save
(c) ROLLBACK – Restore
(d) SAVEPOINT – Permanently save
Answer:
(d) SAVEPOINT – Permanently save

Question 33.
Choose the incorrect pair:
(a) DDL – Creation Tables
(b) DML – Insert data
(c) DCL – queries
(d) TCL – Transaction
Answer:
(c) DCL – queries

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 34.
Choose the incorrect pair:
(a) Object – Database
(b) RDBMS – DBMS
(c) Field – Column
(d) Record – Row
Answer:
(a) Object – Database

Question 35.
Choose the correct pair:
(a) char – Fixed width string
(b) int – with decimal
(c) small int – greater size
(d) varchar – Variable width Numeric
Answer:
(a) char – Fixed width string

Question 36.
Choose the correct pair:
(a) UNIQUE – NULL
(b) PRIMARY KEY – NOT NULL
(c) CHECK – default value
(d) TABLE – Single field
Answer:
(b) PRIMARY KEY – NOT NULL

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 37.
Choose the incorrect statement:
(a) The DML commands consists of inserting, deleting and updating rows into the table.
(b) The INSERT command helps to add new data to the database.
(c) Delete command temporarily delete single row in the table.
(d) The UPDATE command updates some or all data values in a database.
Answer:
(c) Delete command temporarily delete single row in the table.

Question 38.
Choose the incorrect statement:
(a) The Alter command is used to alter the table structure.
(b) The Truncate command is used to delete single column from the table.
(c) DROP command is used to remove a Table.
(d) Delete command is used to delete all Rows from the table.
Answer:
(b) The Truncate command is used to delete single column from the table.

Question 39.
Choose the incorrect statement:
(a) DISTINCT keyword is used retains . duplicate rows.
(b) BETWEEN keyword defines a range of values.
(c) IN keyword is used to specify a list of values.
(d) WHERE clause is used to filter the records.
Answer:
(a) DISTINCT keyword is used retains . duplicate rows.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 40.
Choose the correct statement:
(a) The HAVING clause can be used along with GROUP BY clause in the SELECT statement.
(b) COMMIT command is to temporarily save to the memory.
(c) Rollback command deletes the database to the last committed state
(d) The SAVE POINT command is used to permanently save to the memory.
Answer:
(a) The HAVING clause can be used along with GROUP BY clause in the SELECT statement.

Question 41.
Choose the correct statement:
(a) Create Table command to create new row.
(b) The DCL provides authorization commands to access data.
(c) The TCL commands are used creation or deletion Tables.
(d) The DQL commands are used to insert, update and delete data of a Table.
Answer:
(b) The DCL provides authorization commands to access data.

Question 42.
Assertion (A):
The structured Query Language (SQL) is a standard programming language to access and manipulate databases.
Reason (R):
SQL allows the user to create, retrieve, alter and transfer information among databases.
(a) Both A and R are True and R is the correct explanation for A.
(b) Both A and R are True, but R is not the correct explanation for A.
(c) A is True but R is False.
(d) A is False but R is True.
Answer:
(a) Both A and R are True and R is the correct explanation for A.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 43.
Assertion (A):
RDBMS is a type of High level language with a row based table structure.
Reason (R):
A field is a Row, which collection of related fields.
(a) Both A and R are True and R is the correct explanation for A.
(b) Both A and R are True, but R is not the correct explanation for A.
(c) A is True but R is False.
(d) A is False but R is True.
Answer:
(d) A is False but R is True.

Question 44.
Assertion (A):
SQL is a language used for accessing database.
Reason (R):
Database is a group of files, it cannot be used other application.
(a) Both A and R are True and R is the correct explanation for A.
(b) Both A and R are True, but R is not the correct explanation for A.
(c) A is True but R is False.
(d) A is False but R is True.
Answer:
(d) A is False but R is True.

Question 45.
Assertion (A):
TABLE constraint is applied to a single field.
Reason (R):
The Table constraint is normally given at the end of the Table definition.
(a) Both A and R are True and R is the correct explanation for A.
(b) Both A and R are True, but R is not the correct explanation for A.
(c) A is True but R is False.
(d) A is False but R is True.
Answer:
(d) A is False but R is True.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 46.
Assertion (A):
The WHERE clause is used to filter the records.
Reason (R):
The ORDER BY sorts the data in either Ascending or Descending.
(a) Both A and R are True and R is the correct explanation for A.
(b) Both A and R are True, but R is not the correct explanation for A.
(c) A is True but R is False.
(d) A is False but R is True.
Answer:
(b) Both A and R are True, but R is not the correct explanation for A.

Question 47.
Pick the odd one out.
(a) Oracle
(b) MySQL
(c) IBMDB2
(d) dbase
Answer:
(d) dbase

Question 48.
Pick the odd one out.
(a) INSERT
(b) Create
(c) Alter
(d) DROP
Answer:
(a) INSERT

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 49.
Pick the odd one out.
(a) Commit
(b) Grant
(c) Rollback
(d) save point
Answer:
(b) Grant

Question 50.
Pick the odd one out.
(a) Unique
(b) Default
(c) Check
(d) Alter
Answer:
(d) Alter

Question 51.
Pick the odd one out.
(a) Delete
(b) Select
(c) Truncate
(d) Drop
Answer:
(b) Select

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 52.
DDL stands for:
(a) Data Definition Language
(b) Data Declared Language
(c) Defined Data Language
(d) Data Declared language
Answer:
(a) Data Definition Language

Question 53.
DML stands for:
(a) Data Manipulation Language
(b) Data Memory Language
(c) Data Main Language
(d) Data Machine Language
Answer:
(a) Data Manipulation Language

Question 54.
DCL stands for:
(a) Data Control Language
(b) Dynamic Control Language
(c) Dynamic Center Language
(d) Data Communication Language
Answer:
(a) Data Control Language

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 55.
TCL stands for:
(a) Transmission Control Language
(b) Transfer Communication Language
(c) Transaction Control Language
(d) Transmission Center Language
Answer:
(b) Transfer Communication Language

Question 56.
How many types of database integrity constraints are there?
(a) 2
(b) 3
(c) 4
(d) 5
Answer:
(c) 4

Question 57.
Which of the following separated by multiple constraints?
(a) Comma
(b) Semicolon
(c) Colon
(d) Space
Answer:
(d) Space

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 58.
Which of the following constraints does not allow NULL values?
(a) Primary key
(b) Identifier
(c) Variables
(d) Unique
Answer:
(a) Primary key

Question 59.
Which of the following keywords shows that the field value cannot be empty ?
(a) No VALUE
(b) NOT NULL
(c) NULL
(d) O
Answer:
(b) NOT NULL

Question 60.
Which of the following Constraint is used to a group of field of the table?
(a) Constraint
(b) Unique
(c) Row
(d) Table
Answer:
(d) Table

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 61.
Which of the following keyword used to sort the records in ascending order?
(a) ASC
(b) ASCE
(c) ACE
(d) ASCEN
Answer:
(a) ASC

Question 62.
Which of the following keyword used to sort . the records in descending order?
(a) DESEN
(b) DESC
(c) DESE
(d) DES
Answer:
(b) DESC

Question 63.
Which of the following begin with a keyword and consists of keyword and argument?
(a) Clauses
(b) Key
(c) Statement
(d) Argument
Answer:
(a) Clauses

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 64.
Which commands provide definitions for creating table structure, deleting relations, and modifying relation schemas?
(a) DDL
(b) DML
(c) DCL
(d) DQL
Answer:
(a) DDL

Question 65.
Which command lets to change the structure of the table?
(a) SELECT
(b) ORDER BY
(c) MODIFY
(d) ALTER
Answer:
(d) ALTER

Question 66.
The command to delete a table is:
(a) DROP
(b) DELETE
(c) DELETE ALL
(d) ALTER TABLE
Answer:
(a) DROP

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 12 Structured Query Language (SQL)

Question 67.
Queries can be generated using:
(a) SELECT
(b) ORDER BY
(c) MODIFY
(d) ALTER
Answer:
(a) SELECT

Question 68.
The clause used to sort data in a database:
(a) SORT BY
(b) ORDER BY
(c) GROUP BY
(d) SELECT
Answer:
(b) ORDER BY

TN Board 12th Computer Science Important Questions

TN Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 1.
What is Text?
Answer:
Text is the basic components of multimedia and most common ways of communicating information to other person.

Question 2.
What is static text?
Answer:
Static text, the text or the words will remain static as a heading or in a line, or in paragraph.

Question 3.
What is a Hyper text?
Answer:
A Hyper text is a system which consists of nodes, the text and the links between the nodes, which defines the paths the user need to follow for the text access in non-sequential ways.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 4.
Differentiate path animation and frame animation.
Answer:

Path Animation Frame Animation
Path Animation involves moving an object on a screen that has a constant background. In Frame Animations, multiple objects are allowed to travel simultaneously.
A Cartoon character may move across the screen regardless of any change in the background. Background or the objects also change.

Question 5.
What is Decibels?
Answer:
Decibels is the measurement of volume, the pressure level of sound.

Question 6.
Differentiate Video and Analog video.
Answer:

Video Analog Video
Video is defined as the display of recorded event, scene etc., Analog video, the video data’s are stored in any non – computer media like video tape, laser disc, film etc.,
The video can be divided in two types as analog video and digital video. Analog video can be divided two types as composite and component analogue video.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 7.
What are the most commonly used text editors?
Answer:
The most commonly used text editors are Notepad (windows), Gedit or Nano (unix, linux), Text edit (mac OS X) and so on.

Question 8.
What are the areas work with JPEG format?
Answer:
The JPEG format works good with photographs, naturalistic artwork, and similar material but functions less on lettering, live drawings or simple cartoons.

Question 9.
What are the most common formats of wave files?
Answer:
The most common formats of wave files are .WAV, .MPEG, .MP3, .WMA and RA.

Question 10.
What are uses of PNG format?
Answer:
PNG acts as replacement for GIF and also replaces multiple common uses of TIFF.
PNG works good with online viewing applications like World Wide Web.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 11.
What is project design objectives?
Answer:
The specific statements in the project is known as the objectives.
Activities are series of action performed to implement an objective.

Question 12.
What are phases of budgeting in multimedia production?
Answer:
Budgeting for each phases like consultants, hardware, software, travel, communication and publishing is estimated for all the multimedia projects.

Question 13.
Define the content.
Answer:
Content is the “stuff” provided by content specialist to the multimedia architect with which the application is developed, who prepares the narration, bullets, charts and tables etc.,

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 14.
Define structure in multimedia production.
Answer:
The structure defines the activities, responsible person for each activity and the start / end time for each activity.

Question 15.
What are production activities?
Answer:
Text is incorporated using OCR software, pictures shot by digital camera, video clips are shot, edited and compressed. A pilot project is ready by this time.

Question 16.
What are most popular Internet Browsers?
Answer:
The most popular Browsers are Internet Explorer, Chrome, Mozilla Firefox and Netscape Navigator.

Question 17.
What are natural works for multimedia architect.
Answer:
The multimedia architect integrates all the multimedia building blocks like graphics, text, audio, music, video, photos and animation by using an authoring software.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 18.
Write different ways for teaching and learning using multimedia.
Answer:
In India, multimedia is used in different ways for teaching and learning like e-leaming, distance learning, virtual learning and so on. Education satellite (EDUSAT) is launched in India for serving the educational sector of the country.

Question 19.
What are entertainment mode using multimedia technology?
Answer:
The Multimedia Technology is needed in all mode of entertainment like Radio, TV, online gaming, Social Media, video on demand etc.,

Question 20.
What are the areas used multimedia applications?
Answer:
Multimedia used in many public places like Trade Shows, Libraries, Railway Stations, Museums, Malls, Airports, Banks, Hotels Exhibitions in the form of kiosks.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 21.
What is Kiosk?
Answer:
Kiosk is a free-standing furnished equipped multimedia computer that allows users to retrieve information via a touch screen.

Question 22.
What are information presented by kiosk?
Answer:
The information presented in kiosk are enriched with animation, video, still pictures, graphics, diagrams, maps, audio and text. Banks uses kiosk in the form of ATM machines.

Question 23.
What is web casting?
Answer:
The live telecast of real time programs through internet is known as webcasting.

Question 24.
What is video conferencing?
Answer:
Video conferencing is the process of conducting conference between more than two participants at different place by using computer networks to transmit audio and video data.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 25.
Write short note on user orientation program.
Answer:
The role of multimedia plays an vital role in training the librarians in schools, colleges and universities due to its interactivity. Hence, it is used in depth subject training to their facilities.

Question 26.
Hyper text system is flexible and more sophisticated – Explain.
Answer:

  • The author of the working system created this system. The user is permitted to define their own paths in more sophisticated hypertext system.
  • The user is provided with the flexibility and choice to navigate in hypertext. The readability of the text depends on the spacing and punctuation.
  • The message communication is more appropriate with improved fonts and styles.

Question 27.
Explain sampled sound is a digitized sound in digital audio.
Answer:

  • A sample of sound is taken and stored every fraction of a second as digital information in bits and bytes.
  • The quality of this recording depends on the sampling rate.
  • Sampling rate is defined as how often the samples are taken and how many numbers are used to represent the value of each sample (bit depth, resolution and sample size).
  • The finer the quality of captured sound and the resolution is achieved while played back, when more often the sample is taken and the more data is stored about the sample.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 28.
Write about the user documentation is a mandatory in multimedia production.
Answer:

  • User documentation is a mandatory feature of all multimedia projects.
  • The documentation has all the valuable information’s starting from the system requirement till the completion of testing.
  • Contact details, e-mail address and phone numbers are provided for technical support and sending suggestions and comments.

Question 29.
Write the important role of production manager in multimedia?
Answer:

  • The role of Production Manager is to define and coordinate, the production of the multimedia Project in time and with full quality.
  • The Production Manager should be an expertise in the technology expert, good at proposal writing, good communication skills and budget management skills.
  • Also must have experience in Human Resource Management and act as an efficient team leader.

Question 30.
Write the responsibility of the web master.
Answer:

  • The responsibility of the web master is to create and maintain an internet web pages.
  • They converts a multimedia presentation into a web page.
  • Final multimedia product is ready for consultation is a joint effort of the entire team.
  • Initially, the production manager identifies the project content, while the web master provides access to a wide range of community through web services.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 31.
Write about major application have been developed with the integration of Internet and multimedia.
Answer:

  • Major application have been developed with the integration of Internet and Multimedia like Maps, Media rich blogs etc.
  • A comprehensive study on use of Internet and multimedia in USA says that an estimated 55 million consumers use Internet radio and video services each month.
  • Image is the most widely used multimedia resource on internet.
  • Social networking sites like faceboOk also enables multimedia rich contents to be exchanged online.

Question 32.
Write short notes on In-house production of Multimedia Resources and E-publishing.
Answer:

  • Many libraries produce multimedia resources in-house, to serve the parent organization.
  • Introduction of CD / DVD and their writers has solved few of the problems of libraries in storing or achieving the materials.
  • Multimedia tools along with CD-writers is made possible to publish information from different sources in a most easy to use and acceptable form to library users.

Question 33.
Write about digital multimedia libraries.
Answer:
. Information’s are available in digital formats that include digital books, scanned images, graphics and digitized audio – visual clips etc.
. Initially digital library projects were based only on textual data.
. Later it was all other media elements like images, audio and video recordings were also integrated under the collection of digital library.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 34.
Describe the features of MPEG format.
Answer:
MPEG (Moving Picture Experts Group) is a standard for generating digital video and audio compression under the International Standards Organization (ISO) by the group of people.

The group has developed MPEG-1, the standard on which video CD and MP3 are based, MPEG-2, the standard that supports products as digital television set top boxes and DVD, MPEG-4, the standard for multimedia and mobile web.

MPEG-7, the standard for search of audio and visual content. Research on MPEG-21 “Multimedia frame work” has started in 2000. MPEG is the standards for digital video and audio compression.

Question 35.
Briefly explain about applications of multimedia.
Answer:
Predominantly, entertainment and education are the fields where multimedia is used in majority.
Education:
Multimedia plays an vital role in offering an excellent alternative method to traditional teaching.
Many educators accepts multimedia introduces new ways of thinking in the classroom.

EDUSAT (Education satellite) is launched in India for serving the educational sector of the country for emulating virtual class room in an effective manner.

Entertainment:
Multimedia technology is needed in all mode of entertainment like Ratio, TV, online gaming, Video on demand etc.,

Business system:
The marketing and advertising agencies are using animation techniques for sales promotion.
Cell phone, Personal Digital Assistant, Bluetooth and Wi-Fi communication technology makes multimedia communication for business more efficiently.

Medical services:
Medical services are grown drastically with the development of multimedia.
Medical students practices surgery methods via simulation prior to actual surgery.

Public places:
Multimedia is available in many public places like trade shows, libraries, railway stations, museums, malls, airports, banks, hotels, and exhibitions in the form of kiosks. It provides information to the customers and helps them.

Multimedia conferencing:
Multimedia conferencing or video conferencing is a system that performs face-to-face interactions among participating users, located far from each other, as if they were sitting and discussing in a single room.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 36.
Explain detail about multimedia kiosk.
Answer:

  1. Kiosk is a free – standing furnished equipped multimedia computer that allow users to retrieve information via a touch screen.
  2. It is commonly used in airports and other public locations to provide directions and few mandatory information’s.
  3. In an library, kiosk is usually located near the entrance of the library, used for displaying announcements, reading lists, comments and suggestions from library users and other information’s about operations and programs of the library.
  4. Kiosk provides information to the customers and help them.
  5. The information presented in kiosk are enriched with animation, video, still pictures, graphics, diagrams, maps, audio and text. Banks users kiosks in the form of ATM machines.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 37.
Define Multimedia and their features.
Answer:

  1. The term multimedia comprises of two words multi and media which means that multiple forms of media are combined together.
  2. Multimedia features like storage, communication, presentation and Input / output interactions of text, video, image, graphics and audio.

Question 38.
List out Multimedia Components.
Answer:
Multimedia has five major components like text, images, sound, video, and Animation.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 39.
Classify the TEXT component in multimedia.
Answer:
The TEXT component are Static Text and Hyper Text.
Static Text: The Text or the words will remain static as a heading or in a line,, or in a paragraph.
Hyper Text: A system which consists of nodes, the text and the links between the nodes, which defines the paths the user need to follow for the text access in non-sequential ways.

Question 40.
Classify the IMAGE component in multimedia.
Answer:
The IMAGE components are Bitmap or Raster and Vector.
Bitmap or Raster:
The common and comprehensive form of storing images in a computer is Raster or Bitmap image.

Vector:
Drawing elements or objects such as lines, rectangles, circles and so on to create an images are based on vector images.

Question 41.
Define Animation and their features.
Answer:

  1. Animation is the process displaying still images so quickly so that they give the impression of continuous movement.
  2. Path animation involves moving an object on a screen that has a constant background.
  3. In frame Animations, multiple objects are allowed to travel simultaneously.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 42.
List out image file formats.
Answer:

  1. TIFF – Tagged Image File Format.
  2. BMP – BitMap
  3. DIB – Device Independent Bitmap.
  4. GIF – Graphics Interchange Format.
  5. JPEG – Joint Photographic Experts Group.
  6. TGA – Tagra
  7. PNG – Portable Network Graphics.

Question 43.
List out audio file formats.
Answer:

  1. WAV – Waveform Audio File Format.
  2. MP3 – MPEG Layer-3 Format.
  3. OGG – OGG container Format.
  4. AIFF – Audio Interchange File Format.
  5. WMA – Windows Media Audio.
  6. RA – Real Audio Format.

Question 44.
List out video file formats.
Answer:

  • AVI – Audio / Video Interleave.
  • MPEG – Moving Picture Experts Group.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 45.
Define Multimedia Production.
Answer:
Adequate time and efficient planning is required for multimedia production, which assures that the proj ect will be proceed smoothly and certainly ensures that the information reaches the target audience.

Question 46.
List out Multimedia Production team members.
Answer:
Production manager, content specialist, script writer, text editor, multimedia architect, computer graphic artist, audio and video specialist, computer programmer and web master.

Question 47.
Briefly explain about Multimedia Components.
Answer:

  • Multimedia has five major components like text, images, sound, video, and animation.
  • Text is the basic components of multimedia and most common ways of communicating information to other person.
  • Images acts as an vital component in multimedia.
  • Sound is a meaningful speech in any language and is the most serious elements in multimedia, providing the pleasure of music, special effects and so on.
  • Video is the powerful way to convey information in multimedia applications are embedding of video.
  • Animation is the process displaying still images so quickly so that they give the impression of continuous movement.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 48.
Describe the features and techniques of animation.
Answer:

  1. Animation may be in two or three dimensional.
  2. The two dimensional animation, bring an image alive, that occur on the flat X and Y axis of the screen.
  3. The Three dimensional animation it occurs along the three axis X, Y and Z.
  4. Path type animation involves moving an object on a screen that has a ‘ constant background.
  5. In frame animations, multiple objects are allowed to travel simultaneously and the background or the objects also changes.

Question 49.
Write roles and responsibilities of Production team members.
Answer:
Production Manager:
He should be an expertise in the technology expert, good a proposal writing, Communication skills, Budget management skills and Human resources management.

Content Specialist:
He is responsible for performing all research activities concerned with the proposed application’s content.

Script Writer:
The script writer visualizes the concepts in three dimensional environments.

Text Editor:
He is responsible for the text should always be structured and correct grammatically.

Multimedia Architect:
The multimedia architect integrates all the multi¬media building blocks.

Computer Graphic Artist:
The role of Computer Graphic Artist is to deal with the graphic elements of the programs.

Audio and Video Specialist:
He is dealing with narration and digitized videos to be added in multimedia.

Computer Programmer:
He writes the programme code or scripts in the relevant language.

Web Master:
He is responsibility of the web master is to create and maintain an Internet web page.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 50.
Describe the various file formats in multimedia.
Answer:
The various file formats in multimedia are Text formats, Image formats, Digital Audio file formats and Digital video file format.

Text format:
It is primary file format and can be opened, read, and edited with most text editors. The most commonly used text formats are RTF (Rich Text Format), and plain text.

Image formats:
This format is common in desktop publishing world and is supported by almost all software packages. The most commonly used Image formats are BMP, DIB, GIF, JPEG, TGA, and PNG.

Digital Audio File Formats:
This is most popular audio file format in windows for storing uncompressed sound files. The most commonly used Digital Audio File Formats are WAV, MP3, OGG, AIFF, WMA, and RA. Digital Video File Formats: This file format for sound and pictures elements are stored and generating digital video and audio compression under the International Standards Organization (ISO) by the group of people. The most commonly used digital video file formats are AVI and MPEG.

Question 51.
Explain animation industry and their scope.
Answer:

  1. The animation industry in India is expected to grow at a pace faster than the IT industry’s.
  2. There are many number of institutes in all major cities and towns of India, both private and Government for providing training in animation, graphics and multimedia.
  3. As of 2015, the animation industry has matured in India and has moved on from being just on outsourcing facility to a creator of indigenous intellectual property as well. There are more than 300 animation studios in India as of 2015.
  4. Career opportunities in animation sectors at large – Advertising, online and print News Media, Film and Television, Cartoon Production, Theater, Video Gaming and E – learning.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 52.
Explain in detail Process of Multimedia.
Answer:
The process behind Multimedia production. The following are the phases for
development of complex multimedia projects.
(i) Conceptual analysis and planning:
The process of multimedia making begins with a conceptual ignition point.

(ii) Project design:
Activities are series of actions performed to implement an objective. These activities contribute to the project design phase.

(iii) Pre – production:
Based on the planning and design. It is necessary to develop the project.

(iv) Budgeting:
Budgeting for each phases like consultants, hardware, software, travel, communication and publishing is estimated for all the multimedia projects.

(v) Multimedia production team:
The production team for a high end multimedia project requires a term efforts.

(vi) Hardware / software selection:
All the multimedia application requires, selection of suitable hardware devices and softwares.

(vii) Defining the content:
The application is developed, who prepares the narration, bullets, charts, and tables etc.,

(viii) Preparing the structure:
A detailed structure must have information about all the steps along with the time line of the future action.

(ix) Production:
This phase includes the activities like background music selection, sound recording and so on.

(x) Testing:
The complete testing of the pilot product is done before the mass production to ensure that everything is in place.

(xi) Documentation:
User documentation is a mandatory feature of all multimedia projects.

(xii) Delivering the multimedia product:
Multimedia applications are best delivered on CD / DVD or in the website.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 53.
Explain In detail Techniques of Animation.
Answer:
Animation may be in two or three dimensional. The two dimensional animation, bring an image alive, that occur on the flat X and Y axis on the screen. The three dimensional animation occurs along the three axis X, Y and Z. Animation tools are very powerful and effective.

The two basic techniques of animation are path animation and frame animation.

(i) Path animation:
It involves moving an object on a screen that has a constant background. Eg: Cartoons.

(ii) Frame animation:
It multiple objects are allowed to travel simultaneously and the background or the objects also changes.

Question 54.
Explore the opportunities Animation field movie industry.
Answer:

  1. In India, the VFX domain, or the animation and visual effects industry, has been growing stronger and stronger in recent years.
  2. Animation and visual effects requirements for massive international projects such as HBO’s top TV series and Marvel’s hits infinity war and black panther was outsourced to Indian companies in Mumbai and Pune.
  3. The surge in demand for animation and visual effects experts has led to a significant increase in the number of students enrolling for a VFX course.
  4. According to a FICCI – EY 2018 report, India’s animation and VFX industry is currently worth ₹ 80 billion and its expected to reach ₹ 114 billion over the next couple of years.
  5. As a student that completes a 3D animation course can hope to build a rewarding and satisfying career in the movie industry.
  6. Career opportunities in India for visual effects experts abound not only in the movie industry but also in other industries. Choose the right animation course to land a opportunities in their field of interest.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 55.
Explain in detail about production team Roles and Responsibilities.
Answer:
Managing team members in a way to get maximum outcome with high degree of efficiency is mandatory in multimedia production.
Production team roles and responsibilities are
(i) Production Manager:
The role of production manager is to define, and coordinate, the production of the multimedia project in time and with full quality. The production manager should be technology expert, good at proposal writing, good communication skills, budget management skills, and human resource management.

(ii) Content Specialist:
Content specialist is responsible for performing all research activities concerned with the proposal applicant’s content. Project content refers to projects information, graphics, data or facts presented through the multimedia production.

(iii) Script Writer:
The script writer visualizes the concepts in three dimensional environments and if needed uses the virtual reality integration into the program.

(iv) Text Editor:
The content of a multimedia production always must flow logically and the text should always be structured and correct grammatically.

(v) Multimedia Architect:
The multimedia architect integrates all the multimedia building blocks like graphics, text, audio, music, video, photos and animation by using an authoring software.

(vi) Computer Graphic Artist:
The role of computer graphic artist is to deal with the graphic elements of the programs like backgrounds, bullets, buttons, pictures editing, 3-D objects, animation, and logos etc.,

(vii) Audio and Video specialist:
The roles of these specialists are needed for dealing with narration and digitized videos to be added in a multimedia presentation. They are responsible for recording, editing, sound effects and digitizing.

(viii) Computer Programmer:
The computer programmer writes the lines of code or scripts in the appropriate language.

(ix) Web Master:
The responsibility of the web master is to create and maintain an Internet web page. They converts a multimedia presentation into a web page. Final multimedia product is ready for consultation is a joint effort of the entire team.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 56.
Explain about different file formats in multimedia files.
Answer:
The different file formats in multimedia are text formats, image formats, digital audio file formats, and digital video file formats.

(i) RTF (Rich Text Format): This is the primary file format with the specification of their published products and for cross – platform document interchange.
(ii) Plain Text: This file can be opened read, and edited with most text editors. Commonly used are notepad, gedit or nano, text edit and so on.

Image formats:
(i) TIFF (Tagged Image File Format):
This formats is common in desktop publishing world. Recent versions of TIFF allows image compression, and the format is comfortable for moving large files between computers.

(ii) BMP (BitMap):
This format is used for the high resolution or large images.

(iii) DIB (Device Independent BitMap):
This format which is similar to BMP, allows the files to be displayed on a variety of devices.

(iv) GIF (Graphics Interchange Format):
Most of the computer colour images and backgrounds are GIF files. It is the most popular format used for online colour photos and this format supported widely.

(v) JPEG (Joint Photographic Experts Group):
JPEG was designed to attain maximum image compression. It works good with photographs, naturalistic artwork, and similar material but functions less on lettering, live drawings or simple cartoons.

(vi) TGA (Tagra):
It is the first popular format for high resolution image. TGA ia supported by most of the video – capture boards.

(vii) PNG (Portable Network Graphics):
PNG acts as replacement for GIF and also replaces multiple common uses of TIFF.

(viii) Digital Audio File Formats:
(a) WAV (Waveform Audio File Format): It is the most popular audio file format in windows for storing uncompressed sound files.
(b) MP3 (MPEG Layer – 3 Format): MPEG Layer – 3 format is the most popular format for storing and downloading music.
(c) OGG: A free, open source container format that is designed for obtaining better streaming and evolving at high end quality digital multimedia.
(d) AIFF (Audio Interchange File Format): A standard audio file format used by Apple which is like a WAV file for the Mac.
(e) WMA (Windows Media Audio): It is a popular windows media audio format owned by Microsoft and designed with Digital Right Management (DRM) abilities for copyright protection.
(f) RA (Real Audio Format): Real Audio format is designed for streaming audio over the Internet.

(ix) Digital Video File Format:
(a) AVI (Audio/Video Interleave): AVI is the video file format for Windows, sound and picture elements are stored in alternate interleaved chunks in the file.
(b) MPEG (Moving Picture Experts Group): MPEG is a standard for generating digital video and audio compression under the International Standards Organization (ISO) by the group of people. MPEG is the standards for digital video and audio compression.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Choose the correct answer:

Question 1.
Which is the basic components of multimedia?
(a) Text
(b) Image
(c) Animation
(d) Sound
Answer:
(a) Text

Question 2.
How many are major components of multimedia?
(a) 2
(b) 3
(c) 4
(d) 5
Answer:
(d) 5

Question 3.
Which is act as an vital components in multimedia?
(a) Text
(b) Image
(c) Animation
(d) Sound
Answer:
(b) Image

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 4.
Which is the common and comprehensive form of storing images in a computer?
(a) Bitmap
(b) RTF
(c) DIB
(d) GIF
Answer:
(a) Bitmap

Question 5.
Which is the measurement of volume, the pressure level of sound?
(a) Hertz
(b) Decibels
(c) Mhz
(d) Bit
Answer:
(b) Decibels

Question 6.
Which is a standard communication tool developed for computers and electronic instruments?
(a) RTF
(b) TIFF
(c) MIDI
(d) TGA
Answer:
(c) MIDI

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 7.
Which text format is the primary file format introduced by Microsoft?
(a) RITCH
(b) BMP
(c) DIB
(d) GIF
Answer:
(a) RITCH

Question 8.
Which format is common in desktop publishing world?
(a) TGA
(b) JPEG
(c) GIF
(d) TIFF
Answer:
(d) TIFF

Question 9.
Which format is used for the high – resolution or large images?
(a) DIB
(b) TGA
(c) BMP
(d) GIF
Answer:
(c) BMP

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 10.
Which format is to identify its colour values?
(a) DIB
(b) TGA
(c) BMP
(d) GIF
Answer:
(d) GIF

Question 11.
Which is the most popular audio file format in windows for storing uncompressed sound files?
(a) WAV
(b) MP3
(c) OGG
(d) WMA
Answer:
(a) WAV

Question 12.
Which format is standard audio file format used by Apple?
(a) WAV
(b) MP3
(c) OGG
(d) AIFF
Answer:
(d) AIFF

Question 13.
Which is the video file format for windows?
(a) AVI
(b) WMA
(c) RA
(d) OGG
Answer:
(a) AVI

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 14.
Which is a standard for generating digital video and audio compression under the International Standards Organization (ISO) by the group of people?
(a) OGG
(b) MP3
(c) MPEG
(d) AVI
Answer:
(c) MPEG

Question 15.
Who is integrates all the multimedia building blocks like graphics, text, audio, music, video, photos and animation by using authoring software?
(a) Multimedia architect
(b) Web master
(c) Computer programmer
(d) Computer graphic artist
Answer:
(a) Multimedia architect

Question 16.
Who is responsible to create and maintain an internet web page?
(a) Multimedia architect
(b) Web master
(c) Computer programmer
(d) Computer graphic artist
Answer:
(b) Web master

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 17.
Which is the most widely used multimedia resource on internet?
(a) Image
(b) Text
(c) Animation
(d) Sound
Answer:
(a) Image

Question 18.
Which is the most fast growing area in the field of information technology?
(a) Digital audio
(b) Multimedia
(c) Analog video
(d) Digital video
Answer:
(b) Multimedia

Question 19.
Which system is named, multimedia based teaching and learning?
(a) Audio
(b) Video
(c) MODULO
(d) Digital Audio
Answer:
(c) MODULO

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 20.
The name of the satellite is launched in India for serving the educational sector?
(a) EDUSAT
(b) INSATI
(c) Aryabhatta
(d) SATI
Answer:
(a) EDUSAT

Question 21.
_________ are stored in a central server and transmitted through a communication network.
(a) Radio
(b) Movies
(c) Audio
(d) e – learning
Answer:
(b) Movies

Question 22.
What is converts the digital information to analog signals and inputs it to the television set?
(a) Modem
(b) set – top box
(c) converter
(d) protocol
Answer:
(b) set – top box

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 23.
What are the communication technology makes multimedia communication for business more efficiently?
(a) Cell phone
(b) Bluetooth
(c) Wi-Fi
(d) All the above
Answer:
(d) All the above

Question 24.
Which is a free-standing furnished equipped multimedia computer that allow users to retrieve information via a touch screen?
(a) Kiosk
(b) ATM
(c) Computer
(d) Cell phone
Answer:
(a) Kiosk

Question 25.
Which of the following is not a hardware?
(a) CPU
(b) RAM
(c) Monitor
(d) AVI
Answer:
(d) AVI

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 26.
Match the following:

(A)Sound (i) Synthesizing
(B) MIDI (ii) display recorded
(C) Digital Audio (iii) Decibels
(D) Video (iv) bit depth

(a) (A) – (iii); (B) – (i); (C) – (iv); (D) – (ii)
(b) (A) – (iii); (B) – (iv); (C) – (ii); (D) – (i)
(c) (A) – (iv); (B) – (ii); (C) – (i); (D) – (iii)
(d) (A) – (iv); (B) – (i); (C) – (iii); (D) – (ii)
Answer:
(a) (A) – (iii); (B) – (i); (C) – (iv); (D) – (ii)

Question 27.
Match the following:

(A) RTF (i) Windows
(B) TIFF (ii) variety devices
(C) BMP (iii) microsoft
(D) DIB (iv) Image compression

(a) (A) – (iii); (B) – (i); (C) – (ii); (D) – (iv)
(b) (A) – (iii); (B) – (iv); (C) – (i); (D) – (ii)
(c) (A) – (ii); (B) – (iii); (C) – (iv); (D) – (i)
(d) (A) – (ii); (B) – (i); (C) – (iv); (D) – (iii)
Answer:
(b) (A) – (iii); (B) – (iv); (C) – (i); (D) – (ii)

Question 28.
Match the following:

(A) WAW (i) Music
(B) MP3 (ii) Convert to other file
(B) RA (iii) Video
(D) AVI (iv) Internet

(a) (A) – (ii); (B) – (i); (C) – (iv); (D) – (iii)
(b) (A) – (ii); (B) – (iv); (C) – (iii); (D) – (i)
(c) (A) – (iv); (B) – (iii); (C) – (i); (D) – (ii)
(d) (A) – (iv); (B) – (i); (C) – (ii); (D) – (iii)
Answer:
(a) (A) – (ii); (B) – (i); (C) – (iv); (D) – (iii)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 29.
Match the following:

(A) RAM (i) browser
(B) stuff (ii) software
(C) OCR (iii) content
(D) chrome (iv) Hardware

(a) (A) – (iii); (B) – (iv); (C) – (ii); (D) – (i)
(b) (A) – (iii); (B) – (ii); (C) – (i); (D) – (iv)
(c) (A) – (iv); (B) – (iii); (C) – (ii); (D) – (i)
(d) (A) – (iv); (B) – (i); (C) – (ii); (D) – (iii)
Answer:
(c) (A) – (iv); (B) – (iii); (C) – (ii); (D) – (i)

Question 30.
Match the following:

(A) MODULO (i) Education satellite
(B) EDUSAT (ii) Teaching system
(C) Kiosk (iii) Social media
(D)Facebook (iv) Multimedia computer

(a) (A) – (ii); (B) – (i); (C) – (iv); (D) – (iii)
(b) (A) – (ii); (B) – (iv); (C) – (iii);(D) – (i)
(c) (A) – (iii); (B) – (iv); (C) – (ii); (D) – (i)
(d) (A) – (iii); (B) – (ii); (C) – (i); (D) – (iv)
Answer:
(a) (A) – (ii); (B) – (i); (C) – (iv); (D) – (iii)

Question 31.
Assertion (A):
Multimedia is becoming more popular among the user in the terms of its uses and applications.
Reason (R):
Multimedia application plays vital role in terms of presenting information to the users.
(a) Both A and R are True, and R is the correct explanation for A.
(b) Both A and R are True, but R is not the correct explanation for A.
(c) A is True, but R is false.
(d) A is false, but R is true.
Answer:
(a) Both A and R are True, and R is the correct explanation for A.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 32.
Assertion (A):
Static text, the text or the words will remain static as a heading or in a line, or in a paragraph.
Reason (R):
Text is the basic components used in multimedia.
(a) Both A and R are True, and R is the correct explanation for A.
(b) Both A and R are True, but R is not the correct explanation for A.
(c) A is True, but R is false.
(d) A is false, but R is true.
Answer:
(b) Both A and R are True, but R is not the correct explanation for A.

Question 33.
Assertion (A):
Drawing elements or objects such as lines, rectangles, circles and so on to create an images are based on vector images.
Reason (R):
The disadvantage of vector image is relatively big amount of data is required to represent the image and there by large amount of memory is needed to store.
(a) Both A and R are True, and R is the correct explanation for A.
(b) Both A and R are True, but R is not the correct explanation for A.
(c) A is True, but R is false.
(d) A is false, but R is true.
Answer:
(c) A is True, but R is false.

Question 34.
Assertion (A):
WAV is the most popular video file format in windows.
Reason (R):
MPEG format is the most popular format for storing and downloading music.
(a) Both A and R are True, and R is the correct explanation for A.
(b) Both A and R are True, but R is not the correct explanation for A.
(c) A is True, but R is false.
(d) A is false, but R is true.
Answer:
(d) A is false, but R is true.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 35.
Assertion (A):
Kiosk is a laser printer.
Reason (R):
Kiosk is usually located in school library, used for displaying announcements.
(a) Both A and R are True, and R is the correct explanation for A.
(b) Both A and R are True, but R is not the correct explanation for A.
(c) A is True, but R is false.
(d) Both A and R are false.
Answer:
(d) Both A and R are false.

Question 36.
Choose the incorrect pair:
(a) Raster – Bitmap
(b) Vector – Draw
(c) Path animation – Moving object
(d) Frame animation – Single object
Answer:
(d) Frame animation – Single object

Question 37.
Choose the incorrect pair:
(a) Notepad – Google
(b) Gedit – Unix
(c) Nano – Linux
(d) Text edit – Mac OS
Answer:
(a) Notepad – Google

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 38.
Choose the incorrect pair:
(a) WAV – Audio
(b) RA – Video
(c) AIFF – Apple
(d) WMA – Microsoft
Answer:
(b) RA – Video

Question 39.
Choose the correct pair:
(a) RAM – Software
(b) Stuff – Content
(c) OCR – Hardware
(d) LAN – Browser
Answer:
(b) Stuff – Content

Question 40.
Choose the correct pair:
(a) Production manager – Technology Expert
(b) Text editor – Project
(c) Multimedia Architect – Editing
(d) Web master – Writes the code
Answer:
(a) Production manager – Technology Expert

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 41.
Choose the incorrect statement:
(a) Rich text format is the primary file format introduced in 1987 by microsoft.
(b) Plain text files can be opened, read, and edited with most text editors.
(c) TIFF format is common in desktop publishing world and it supported by almost all software packages.
(d) BMP (Bitmap) format is in use with Linux.
Answer:
(d) BMP (Bitmap) format is in use with Linux.

Question 42.
Choose the incorrect statement:
(a) PNG format works good with online viewing applications like World Wide Web.
(b) WAV is the most popular video file format in window for storing compressed sound files.
(c) OGG is a free open source container format.
(d) WMA is a popular windows media audio format owned by Microsoft.
Answer:
(b) WAV is the most popular video file format in window for storing compressed sound files.

Question 43.
Choose the incorrect statement:
(a) The process of multimedia making begins with a conceptual ignition point.
(b) The specific statements in the project is known as the objective.
(c) Multimedia applications are best delivered on pendrive.
(d) User documentation is a mandatory feature of all multimedia project.
Answer:
(c) Multimedia applications are best delivered on pendrive.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 44.
Choose the correct statement:
(a) Many educators accepts multimedia introduces new way of thinking in the classroom.
(b) EDUSAT is a e-leaming method.
(c) MODULO learning system was developed by France.
(d) Wi-Fi is a social media.
Answer:
(a) Many educators accepts multimedia introduces new way of thinking in the classroom.

Question 45.
Choose the correct statement:
(a) Kiosk is a type of animation software.
(b) Medical services are grown drastically with the development of multimedia.
(c) Multimedia is available only in malls.
(d) The live telecast through Internet is known as multimedia.
Answer:
(b) Medical services are grown drastically with the development of multimedia.

Question 46.
Pick the odd one out.
(a) text
(b) fonts
(c) image
(d) sound
Answer:
(b) fonts

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 47.
Pick the odd one out.
(a) GIF
(b) TIFF
(c) JPEG
(d) decibel
Answer:
(d) decibel

Question 48.
Pick the odd one out.
(a) RTF
(b) Notepad
(c) Gedit
(d) Text edit
Answer:
(a) RTF

Question 49.
Pick the odd one out.
(a) WAV
(b) DRM
(c) WMA
(d) RA
Answer:
(b) DRM

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 50.
Pick the odd one out.
(a) CD
(b) DVD
(c) OCR
(d) DISK
Answer:
(c) OCR

Question 51.
…………. refers to any type of application that involves more than one type of media such as text, graphics video animation and sound.
(a) an executable file
(b) desktop publishing
(c) multimedia
(d) hypertext
Answer:
(c) multimedia

Question 52.
One of the disadvantages of the multimedia is its:
(a) cost
(b) adaptability
(c) usability
(d) relativity
Answer:
(a) cost

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 53.
Expand JPEG:
(a) Joint Photo Experts Gross
(b) Joint Photographic Experts Group
(c) Joint Processor Experts Group
(d) Joint Photographic Expression Group
Answer:
(b) Joint Photographic Experts Group

Question 54.
You need hardware, software and to make multimedia.
(a) network
(b) compact disk drive
(c) good idea
(d) programming knowledge
Answer:
(c) good idea

Question 55.
Match the following by choosing the right one:

(A) Text (i) TGA
(B) Image (ii) MIDI
(C) Sound (iii) MPEG
(D) Video (iv) RTF

(a) (A) – (i); (B) – (ii); (C) – (iii); (D) – (iv)
(b) (A) – (ii); (B) – (iii); (C) – (iv); (D) – (i)
(c) (A) – (iv); (B) – (iii); (C) – (ii); (D) – (i)
(d) (A) – (iii); (B) – (iv); (C) – (i); (D) – (ii)
Answer:
(c) (A) – (iv); (B) – (iii); (C) – (ii); (D) – (i)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 56.
Find the odd one on the following which is not an image format.
(a) TIFF
(b) BMP
(c) RTF
(d) JPEG
Answer:
(c) RTF

Question 57.
…………….. is the process displaying still images they give continuous movement.
(a) Text formats
(b) Sound
(c) MP3
(d) Animation
Answer:
(d) Animation

Question 58.
The live telecasting of real time program through Internet is known as:
(a) web casting
(b) web hosting
(c) data manipulation
(d) none of the above
Answer:
(a) web casting

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 1 Multimedia and Desktop Publishing

Question 59.
GIF use ………… color look up table.
(a) 13 bit
(b) 8 KB
(c) 8 MB
(d) 8 GB
Answer:
(a) 13 bit

Question 60.
RTF file format was introduced by:
(a) TCS
(b) Microsoft
(c) Apple
(d) IBM
Answer:
(b) Microsoft

TN Board 12th Computer Applications Important Questions

TN Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 1.
Write a any two notable features of good DBMS.
Answer:

  • Giving protection to data.
  • User-friendly for users are notable features of good DBMS.

Question 2.
What will be provides by DBMS?
Answer:
The DBMS provides users and programmers with a systematic way to create, retrieve, update and manage data.

Question 3.
What are various access methods in file system?
Answer:
The various access methods in file system were indexed, Random and sequential access.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 4.
What is mean by Data Duplication?
Answer:
Data Duplication mean, same data is used by multiple resources for processing, thus created copies of same data wasting the spaces.

Question 5.
What is Atomicity?
Answer:
An Atomicity follows the thumb rule “All or Nothing”, while updating the data in database for the user performing the update operation.

Question 6.
What is called update operation?
Answer:
The update operation is called as transaction and it either commits or aborts.

Question 7.
What is consistency?
Answer:
Consistency ensures that the changes in data value to be constant at any given instance. This property helps in the successful transaction.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 8.
What is known as concurrent Transactions?
Answer:
When multiple users do the transactions by accessing same object at the same time, the transaction is known as concurrent transaction.

Question 9.
What is Durability?
Answer:
Durability is defined as the system’s ability to recover all committed transactions during the failure of storage or the system.

Question 10.
What is Hierarchical Database Model?
Answer:
The Hierarchical Database Model was IMS (Information Management System), In this model each record has information in parent/child relationship like a tree structure.

Question 11.
What is advantage and Disadvantage of Hierarchical Database Model?
Answer:
Hierarchical Database Model have many advantages like less redundant data, efficient search, data integrity and security.
Disadvantage of this model has few limitations like complex to implement and difficultly in handling many to many relationships.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 12.
What is Network database Model?
Answer:
Network database model is similar to Hierarchical model except that in this model each member can have more than one owner. The many to many relationship are handled in a better way.

Question 13.
What are three database components identified by Network model?
Answer:
Network model identified the three database components, Network schema, Sub schema, and Language for data management.

Question 14.
What is major advantage and limitation of Network Model?
Answer:
The Major advantages of this model is the ability to handle more relationship types, easy data access, data integrity and Independence.
The limitation of network model is difficulty in design and maintenance.

Question 15.
Define Relational Model.
Answer:
Relational model is defined with two terminologies Instance and schema.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 16.
What are incorporates the object-oriented database model?
Answer:
The Object-oriented database model incorporates the combination of Object Oriented Programming (OOP’s) concepts and database technologies.

Question 17.
Define two terminologies of Relational Model.
Answer:
The two terminologies of Relational Model are

  • Instance – A table consisting of rows and columns.
  • Schema – Specifies the structure including name and type of each column.

Question 18.
What are advantage of object – oriented database model?
Answer:

  • The object-oriented database model efficiently manages large number of different data types.
  • Moreover complex behaviours are handled efficiently using OOP’s concepts.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 19.
What is known as Relational Database?
Answer:
Any database whose logical organization is based on relational data model is known as relational database.

Question 20.
What are basic RDBMS concept?
Answer:
The basic RDBMS concept includes Database, Tables, Tuple, Attribute, Schema, and Key.

Question 21.
What is a Table?
Answer:
A table is the simple representation of relations. The true relations cannot have duplicate rows where as the table can have.

Question 22.
What is a Column?
Answer:
Table can be divided into smaller parts, in terms of column. Each column is known a.s Attributes.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 23.
What is a Row?
Answer:

  • A single entry in a table is called as Row. Set of related data’s are represented in a row or tuple.
  • The Horizontal entity in a table is known as row or Record.

Question 24.
What is a primary key?
Answer:
A primary key is a special relational database table column designated to uniquely identify all table records.

Question 25.
What is a secondary key?
Answer:
An entity may have one or more choices for the primary key. One is selected as the primary key.
Those not selected are known as secondary keys.

Question 26.
What is composite Primary Key?
Answer:
A Primary Key which is a combination of more than one attribute is called a Composite Primary Key.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 27.
What is Foreign Key?
Answer:
A Foreign Key is a copy of the whole of its parent primary key.
Foreign Key values do not have to be unique. Foreign Keys can also be null.

Question 28.
What is super key?
Answer:
An attribute or group of attributes, which is sufficient to distinguish every tuple in the relation from every other one is known as super key.

Question 29.
What is Composite or Compound Key?
Answer:
A Key with more than one attribute to identify rows uniquely in a table is called composite key. This is also known as compound key.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 30.
What are basic concepts of ER Model?
Answer:

  • Entity or Entity type
  • Attributes
  • Relationship

Question 31.
What is an Entity?
Answer:
An Entity can be anything a real-world object or animation which is easily identifiable by anyone even by a common man.

Question 32.
What are types of Entity?
Answer:

  • Strong Entity,
  • Weak Entity,
  • Entity Instance.

Question 33.
What is strong Entity?
Answer:
A strong entity is the one which does not depend on any other entity on the schema or database and a strong entity will have a primary key with it.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 34.
What is Weak Entity?
Answer:
A Weak Entity is dependent on other entities and it does not have any primary key.

Question 35.
What is Instance?
Instance are the values for the entity.

Question 36.
What is Attribute?
Answer:
An attribute is the information about that entity and it will describe, quantify, qualify, classify, and specify and entity.

Question 37.
What is key Attribute?
Answer:
A key attribute describes a unique characteristic of an entity.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 38.
What is Simple Attribute?
Answer:
The simple attributes cannot be separated it will be having a single value for their entity.

Question 39.
What is Composite Attributes?
Answer:
The Composite Attributes can be sub divided into simple attributes without change in the meaning of that attribute.

Question 40.
What is single valued Attributes?
Answer:
A single valued attribute contains only one value for the attribute and they don’t have multiple numbers of values.

Question 41.
What is Multi valued Attributes?
Answer:
A Multivalued attribute has more than one value for that particular attribute.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 42.
What are components of ER Diagram?
Answer:
The components of ER Diagram are Entities, Attributes and Relationship.

Question 43.
Who was founded MySQL?
Answer:
MySQL is a database management system founded by Monty Widenius and is named after his daughter name My.

Question 44.
What are responsible have Database Administrator?
Answer:
Database Administrator (DBA), who takes care of Configuration, Installation, Performance, Security and Data Backup.

Question 45.
What are the skills needed by Database Administrator (DBA’s)?
Answer:
DBA’s posses the skills’on database design, database queries, RDMS, SQL and networking.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 46.
Write the types of software tools in the market to design the database.
Answer:
Many open source tools are available in the market to design the database in a better and efficient manner.
PhPMyAdmin is a most popular for web Administration. The Popular Desktop Application tools are MySQL workbench and HeidiSQL.

Question 47.
What is known as Designing of databases?
Answer:
The process of creating, implementing and maintaining the enterprise data in a system is known as Designing of databases.

Question 48.
Write the SQL DCL commands.
Answer:

  • Grant – Used to give permission to specific users on specific databases.
  • Revoke – Used to take out permission from specific users on specific databases.

Question 49.
Write the syntax and example for sort the records in SQL.
Answer:
Syntax:
SELECT*FROM tablename ORDER BY columnname ASC/DESC;
Eg: SELECT*FROM studentdb ORDER ‘EY stadName ASC;

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 50.
Write the example for subquery in SELECT statement.
Answer:
Eg: SELECT*FROM studentdb WHERE studID
IN (SELECT studID FROM studentdb WHERE class = 12) ;

Question 51.
What is the DBMS mechanism used for data sharing?
Answer:

  • Concurrency control and Locking is the DBMS’s mechanism used for data sharing.
  • When the same data is shared among multiple users, proper access control is needed and privilege of changing the application data item is controlled through locking.

Question 52.
List the types of Attributes.
Answer:

  1. Key Attribute
  2. Simple Attribute
  3. Composite Attribute
  4. Single Valued Attribute
  5. Multi Valued Attribute

Question 53.
Write the attributes of Few entity an example of ER diagram.
Answer:
The attributes of few entity of parent, student and Teacher are
Parent – Name, Id, FName, LName
Student – Id, Name, FName, LName
Teacher – Name, Id, Phone, Address

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 54.
List the some commonly used Databases.
Answer:

  1. DB2
  2. MySQL
  3. Oracle
  4. PostgreSQL
  5. SQLite
  6. SQLServer
  7. Sybase

Question 55.
Write short note on create conceptual Design.
Answer:

  1. Create conceptual Design is the primary in database design, where detailed discussion about the creation of databases, tables, columns and data types is discussed based on the requirement of the application.
  2. As an end result the model is framed to attain the expectation of the application’s end user.
  3. MySQL provides performance dashboard, reports nad statistics regarding the design of database.

Question 56.
Explain the three major parts that create databases.
Answer:
The three major parts that forms a database are Tables, Queries and views.

  1. Tables: It Similar to an excel sheet containing multiple rows and columns.
  2. Queries: It is a question with multiple conditions posted to the database.
  3. Views: A set of stored queries.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 57.
Write the SQL DDL commands.
Answer:
The SQL DDL (Data Definition Language) commands are:

  • CREATE – Used to create database or table.
  • ALTER – Modifies the existing structure of database or table.
  • DROP – Deletes a database or table.
  • RENAME – Used to rename an existing object in the database.
  • TRUNCATE – Used to delete all table records.

Question 58.
Write the SQL DML commands.
Answer:
The SQL DML (Data Manipulation Language) commands are

  • INSERT – Add new rows into database table.
  • UPDATE – Modifies existing data with newdata within a table.
  • DELETE – Deletes the records from the table.

Question 59.
Write the SQL TCL commands.
Answer:
The SQL TCL (Transaction Control Language) commands are

  • COMMIT – Permanent save into database
  • ROLLBACK – Restores database to original form.
  • SET TRANSACTION – Set the transaction properties such as read-write or read only access.
  • SAVE POINT – Used to temporarily save a transaction.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 60.
Write a syntax and example to delete a existing record from the table using delete command with where condition.
Answer:
Syntax:
DELETE FROM tablename WHERE columnname = “Value”;
Eg 1:DELETE FROM’ studentdb WHERE’Rollno = “121008”;
Eg 2:DELETE FROM studentdb;
Eg 1: is to delete a record with rollno 121008 only
Eg 2 :is to delete a table as studentdb

Question 61.
Write the MySQL operators.
Answer:

  • Arithmetic Operators: +, -, *, /, ÷
  • Comparison Operators: =, !=, <, >, < >, >=, <=
  • Logical Operators: AND, ANY, BETWEEN, EXISTS, IN, LIKE, NOT, OR, UNIQUE

Question 62.
What are the rules should follow in sub Queries.
Answer:

  1. Sub Queries are always written within the parantheses.
  2. Always place the subquery on the right side of the comparison operator.
  3. ORDER BY clause is not used in subquery, since subqueries cannot manipulate the results internally.

Question 63.
Write the three database components of network model.
Answer:
The three database components of network model are

  • Network schema: This schema defines all about the structure of the database
  • Sub schema: It controls on views of the database for the user
  • Language: Basic procedure for accessing the database

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 64.
Write the features of RDBMS.
Answer:

  1. High availability
  2. High performance
  3. Robust Transactions and support
  4. Ease of management
  5. Less cost

Question 65.
Explain ER model relationship type.
Answer:
Three types of relationships are available and the Entity-Relationship(ER) diagram is based on the three types listed below.

One-to-One relationship:
Consider two entities A and B. One-to-one (1:1) relationship is said to exist in a relational database design, if 0 or 1 instance of entity A is associated with 0 or 1 instance of entity B, and 0 or 1 instance of entity B is associated with 0 or 1 instance of entity A.

One-to-Many relationship:
Consider two entities A and B. One-to-many (1 :N) relationship is said to exist in a relational database design, for 1 instance of entity A there exists 0 or 1 or many instances of entity B, but for 1 instance of entity B there exists 0 or 1 instance of entity A.

Many-to-Many relationship:
Consider two entities A and B. Many-to- many (M:N) relationship is said to exist in a relational database design, for 1 instance of entity A there exists 0 or 1 or many instances of entity B, and for 1 instance of entity B there exists 0 or 1 or many instance of entity A.

In reality one-to-one are in less usage, where as one-to-many and many-to- many are commonly used. However in relational databases, many-to-many are converted into one-to-many relationships.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 66.
Write the ER diagram Notations.
Answer:

TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System 1

Question 67.
Write about MySQL.
Answer:

  1. MySQL is a database management system founded by Monty Widenius and named after his daughter name My.
  2. Definition of database and SQL is mandatory to understand MvSOL.
  3. A database is defined as the structured collection of data. Eg: Photo gallery is a database which has collection of photos (data).
  4. SQL – Structured Query Language is not a database. It is a standardized language used to access the database and the data’s are processed to turn into efficient information.
  5. MySQL is open source software that allows managing relational databases.
  6. MySQL also provides the flexibility of changing the source code as per the needs.
  7. MySQL runs on multiple platforms like windows, Linux and is scalable, reliable and fast.
  8. MySQL is the most commonly used database in the world due to its ease of use.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 68.
Draw a ER – diagram by parent, student and teacher.
Answer:

TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System 2

Question 69.
Explain the newly create user account to MySQL.
Answer:

  1. In MySQL database, there exists a table named user. The newly created account must have an entity in this user table.
  2. The Admin creates an account with username and password.
  3. The user account is activated with various access rights like INSERT, SELECT and UPDATE.
  4. The user table has the following fields host, name, password, select_ priv, insert_priv and update_priv.
  5. A new user account is added with values to the user table using.
    MySQL> INSERT INTO user (host, name, password,
    select_priv, insert_priv, update_priv) VALUES (‘localhost’, ‘guest’, PASSWORD (‘abcl23’), ‘Y’, ‘Y’, ‘Y’);
    then, mysql>FLUSH PRIVILEGES; This command is executed after every new account creation. This command is similar to rebooting the server, so that newly created account and the access privilege are updated in this server.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 70.
How can you install in MySQL in your computer?
Answer:
(i) Download and install XAMPP server software from Internet. Click the welcome page next button.
(ii) Select the required component along with MySQL component and click next button. Choose, the installation folder and click next button.
(iii) Click Next button in setup ready page. Installation get started.
(iv) After Installing click finish button and open the XAMMP control panel.

TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System 3

(v) In the control panel start the Apache and MySQL services one by one.
(vi) Now open URL http: //local host/PhPMyAdmin URL in a browser to access MySQL database.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 71.
Define Data Model and list the types of data model used.
Answer:

  1. A data model is an abstract model that organizes elements of data and standardizes how they relate to one another and to properties of the real world entities.
  2. The types of data model are Hierarchical database model, Network model, Relational model, object – Oriented database model.

Question 72.
List few disadvantages of file processing system.
Answer:

  1. Duplicate data
  2. Inconsistency
  3. Accessing anomalies
  4. Poor data integrity
  5. Poor data security
  6. Atomicity problem
  7. Wastage of labor and space
  8. Data isolation

Question 73.
Define Single and multi valued attributes.
Answer:

  • A single valued attribute contains only one value for the attribute.
    Eg: Age – It is a single value for a person.
  • A multi valued attribute has more than one value for that particular attribute.
    Eg: Degree – A person can hold number of degrees.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 74.
List any two DDL and DML commands with its Syntax.
Answer:
Two DDL (Data Definition Language) commands.
(i) CREATE:
Syntax:
Create database databasename;

(ii) DROP
Syntax:
Drop database database name;

Two DML (Data Manipulation Language) command.
(i) INSERT:
Syntax:
INSERT INTO tablename (columnl, column2, column3)
VALUES (valuel, value2, value3);

(ii) DELETE:
Syntax:
DELETE from tablename WHERE columnname = “value”;

Question 75.
What are the ACID properties?
Answer:
ACID properties are Atomicity, Consistency, Isolation and Durability.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 76.
Which command is used to make permanent changes done by a transaction?
Answer:

  • The SQL commands manage the transactions in SQL databases.
  • It also help to save the change into database permanently.
  • COMMIT, ROLLBACK, SET TRANSACTION and SAVEPOINT commands belongs to this category.

Question 77.
What is view in SQL?
Answer:

  • View in SQL can be described as virtual table which derived its data from one or more than one table columns.
  • It is stored in the database.
  • View can be created using tables of same database or different database.

Question 78.
Write the difference between SQL and MySQL.
Answer:

SQL

 MySQL

SQL – Structured Query Language is not a database. MySQL is open source software that allows managing relational databases.
It is a standardized language used to access the database and the data’s are processed to turn into efficient information. It also provides the flexiblility of changing the source code as per the needs. It runs on multiple platforms like windows, linux and is scalable, reliable and fast.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 79.
What is Relationship and List its types.
Answer:

  1. Relationships are very similar in that they are associations between tables.
  2. There exists a relationship between two tables when the foreign key of one table references primary key of other table.
  3. Its types are one-one-relationship, One-to-many relationship and many- to-many relationship.

Question 80.
State few advantages of Relational databases.
Answer:

  1. High Availability
  2. High Performance
  3. Robust Transactions and Support
  4. Ease of Management
  5. Less Cost

Question 81.
Explain on Evolution of DBMS.
Answer:

  1. Data Base Management System (DBMS) is system software for creating and managing databases.
  2. The concept of storing the data started before 40 years in various formats.
  3. In earlydays they have used punched card technology to store the data. Then files were used. The file systems were known as predecessor of database system.
  4. Various access methods in file system were indexed, random and sequential access.
  5. The file system had more limitations like data duplication, high maintenance and security.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 82.
What is relationship in databases? List its types.
Answer:

  1. Relationships are very similar in that they are associations between tables in database.
  2. There exists a relationship between two tables when the foreign key of one table references primary key of other table.
  3. List of the database types are one-one-relationship, One-to-many relationship and Many-to-many relationship.

Question 83.
Discuss on cardinality in DBMS.
Answer:
Cardinality is defined as the number of items that must be included in a relationship. That is number of entities in one set mapped with the number of entities of another set via relationship. Three caissifications in cardinality are One-to-one, One-to-many and Many-to-many.

Eg 1:

TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System 4

This cardinality is one-to-one re1atinship between person and vehicle.

Eg 2:

TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System 5

This cardinality relation is a one-to-many

Eg 3:

TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System 5

This cardinality relation is a n to n i.e., Many-to-many relationship.
A student can register many courses, A course can be registered by many students.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 84.
List any 5 privileges available in MySQL for the User.
Answer:

TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System 7

Question 85.
Write few commands used by DBA to control the entire database.
Answer:
The Database Administrator (DBA) frequently uses few commands to control the entire database. Such commands are.
(i) Use Database:
This commands is used to select the database in MySQL for working.
Syntax: Mysql > Use Student;

(ii) Show Databases:
Lists all the databases available in the database server.
Syntax: Mysql > Show databases;

(iii) Show columns from tablename:
List all the attributes, attribute type, IS NULL value permitted, key information for the given table.
Syntax: Mysql > Show columns from Rollnumber;

(iv) Show tables:
List all the tables available in the current database.
Syntax: Mysql > Show tables;

(v) Show index from tablename:
The query shows all the indexes for the given table.
Syntax: Mysql > Show indexes from student;

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 86.
Discuss on various database models available in DBMS.
Answer:
The various database models in DBMS are Hierarchical Database Model, Network Model, Relational Model, and Object-oriented database Model.
(i) Hierarchical Database Model:
The Hierarchical database model was IMS (Information Management System), and IBM’s First DBMS.
In this model each record has information in parent/child relationship like a tree structure.

(ii) Network Model:
The first developed network data model was IDS (Integrated Data Store) at Honeywell.
Network model is similar to Hierarchical model except that in this , model each member can have more than one owner. The many to many relationships are handled in a better way.
This model identified the three database components Network schema, Sub schema and language for data management.

(iii) Relational Model:
Oracle and DB2 are few commercial relational model in use.
Relational model is identified with two terminologies Instance and schema.

(iv) Object-Oriented database model:
This model incorporates the combination of object oriented programming (OOP’s) concepts and database technologies.
This Model efficiently manages large number of different data types. Moreover complex behaviours are handled efficiently using OOP’s concepts.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 87.
List the basic concepts of ER Model with suitable example.
Answer:
The basic concepts of ER model consists of
(i) Entity or Entity type
(ii) Attributes
(iii) Relationship

(i) Entity or Entity type:
An Entity can be anything a real-world object or animation which is easily identifiable by anyone even by a common man.
Eg: In a company’s database Employee, HR, Manager are considered as entities, where each of these entity will be having their own attributes. An entity is represented by a rectangular box

TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System 8

The types of Entity are strong entity, weak entity, and Entity instance.

(ii) Attributes:
An attribute is the information about that entity and it will describe, quantity, qualify, classify, and specify an entity.
Types of attributes:
(a) Key Attribute – Eg: A key
(b) Simple Attribute – Eg: Employee
(c) Composite Attribute – Eg: Name
(d) Single Valued Attribute – Eg: Age
(e) Multi Valued Attribute – Eg: Degree

(iii) Relationship:
Three types of relationships are available, they are One- to-one relationship, One-to-many relationship and Many-to-many relationship.
Three classifications in cardinality are One-to-one, One-to-many and Many-to-many.
Eg: A driver drives a vehicle, this is One-to-one relationship between person and vehicle.
Eg: A customer places the order of many items, this is a One-to-many relationship.
Eg: Courses can be registered by many students, this is a many-to-many relationship.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 88.
Discuss in detail on various types of attributes in DBMS.
Answer:
The various types of attributes in DBMS are:
(i) Key Attribute
(ii) Simple Attribute
(iii) Composite Attribute
(iv) Single valued Attribute
(v) Multivalued Attribute

(i) Key Attribute:
A key attribute describes a unique characteristic of an entity.

(ii) Simple Attribute:
The Simple attributes cannot be separated it will be having a single value for their entity.

TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System 9

Eg: Here, the name as the attribute for the entity employee and here value for that attribute is a single value.

(iii) Composite Attribute:
The composite attributes can be sub divided into simple attributes without change in the meaning of that attribute.
Eg: In the above diagram, the composite attribute name which are sub¬divided into two simple attributes first and last name.

(iv) Single valued Attributes:
A single valued attribute contains only one value for the attribute and they don’t have multiple numbers of values.

TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System 10

Eg: Age – It is single value for a person.

(v) Multivalued Attributes:
A multi valued attribute has more than one value for that particular attribute.
Eg: Degree – A person can hold number of degrees, so it is multivalued attribute.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 89.
Write a note on open source software tools available in MySQL Administration.
Answer:
Many open source tools are available in the market to design the database in a better and efficient manner.
PhpMy Admin is most popular for web administration.
The popular desktop application tools are MySQL workbench and HeidiSQL.

PHPMYADMIN (Web Admin):
This Administrative tool of MySQL is a web application written in PHP. They are used predominantly in web hosting. The main feature is providing web interface, importing data from CSV and exporting data to various formats.

MySQL workbench (Desktop Application):
This is a database tool used by developers and DBA’s mainly for visualization.
This tool helps in data modeling, development of SQL, server configuration and backup for MySQL in a better way.
The SQL editor of this tool is very flexible and comfortable in dealing multiple results set.

HeidiSQL (Desktop Application):
This is open source tools helps in the administration of better database systems.
It supports GUI (Graphical User Interface) features for monitoring server host, server connection, Databases, Tables, Views, Triggers ami Events.

Question 90.
Explain in detail on Sub Queries with suitable examples.
Answer:
The SQL query is written within a main query. This is called as nested inner/ subquery. The subquery is executed first and the results of sub query are used as the condition for main query.
The sub query must follow the below rules:
(i) Subqueries are always written within the parantheses.
(ii) Always place the subquery on the rightside of the comparison operator. (Hi) Order by clause is not used in subqueiy, since subqueries cannot manipulate the results internally.
Eg: We use subquery in an SELECT statement
SELECT * FROM employee WHERE EMPID IN (SELECT EMPID
FROM employee WHERE salary < 40000);
First, the inner query is executed, then the external or outer query is executed.
similarly the subqueries are used with INSERT, UPDATE and DELETE commands.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Choose the correct answer:

Question 1.
Which systems were known as predecessor of database system?
(a) Management
(b) file
(c) create
(d) update
Answer:
(b) file

Question 2.
What is called, same data is used by multiple resources for processing, thus created multiple copies of same data?
(a) Data Duplication
(b) Maintenance
(c) Security
(d) Management
Answer:
(a) Data Duplication

Question 3.
ACID Stands for:
(a) Atomicity, Consistency, Isolation, Durability
(b) Accessing, Consistency, Isolation, Durability
(c) Atomicity, Concurrency, Isolation, Differently
(d) Accessing, Consistency, Isolation, Differently
Answer:
(a) Atomicity, Consistency, Isolation, Durability

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 4.
When multiple users do the transact! ons by accessing same object at the same time, the transaction is known as:
(a) Atomicity
(b) Consistency
(c) Concurrent
(d) Isolation
Answer:
(c) Concurrent

Question 5.
IMS stands for:
(a) International Machine Service
(b) Information Management System
(c) International Management System
(d) Information Management Service
Answer:
(b) Information Management System

Question 6.
IDS Stands for:
(a) Integrated Data save
(b) International Data store
(c) Integrated Data store
(d) Information Data store
Answer:
(c) Integrated Data store

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 7.
Which schema defines all about the structure of the database?
(a) Network schema
(b) Sub schema
(c) Language
(d) Instance
Answer:
(a) Network schema

Question 8.
Which schema controls on views of the database for the user?
(a) Network schema
(b) Sub schema
(c) Language
(d) Instance
Answer:
(b) Sub schema

Question 9.
Which is basic procedural for accessing the database?
(a) Network schema
(b) Sub schema
(c) Language
(d) Instance
Answer:
(c) Language

Question 10.
What is called a table consisting of rows and columns?
(a) Network schema
(b) Sub schema
(c) Language
(d) Instance
Answer:
(d) Instance

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 11.
Which is specifies the structure including name and type of each column?
(a) Language
(b) Instance
(c) Schema
(d) relation
Answer:
(c) Schema

Question 12.
A relation also known as:
(a) table
(b) columns
(c) rows
(d) files
Answer:
(a) table

Question 13.
A attribute also called as:
(a) table
(b) columns
(c) rows
(d) files
Answer:
(b) columns

Question 14.
A tuples also called as:
(a) table
(b) columns
(c) rows
(d) files
Answer:
(c) rows

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 15.
OOP stands for:
(a) Object Oriented Programming
(b) Oracle Oriented Programming
(c) Objective Oriented Programming
(d) Obstacle Oriented Programming
Answer:
(a) Object Oriented Programming

Question 16.
Which software known as object oriented model uses small and reusable?
(a) Object
(b) Entity
(c) Attributes
(d) Relationship
Answer:
(a) Object

Question 17.
Which is used the most popular relational database?
(a) MSSQL
(b) MySQL
(c) Oracle
(d) MS Access
Answer:
(b) MySQL

Question 18.
Which is defined as the collection of data organized in terms of rows and columns?
(a) Rows
(b) Column
(c) Table
(d) File
Answer:
(c) Table

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 19.
Which is defined in a table to hold values of same type?
(a) Row
(b) Column
(c) Table
(d) Attribute
Answer:
(d) Attribute

Question 20.
The vertical entity in a table is known as attribute or:
(a) Model
(b) Row
(c) Column
(d) compound
Answer:
(c) Column

Question 21.
A single entry in a table is called as row or record or:
(a) Tuple
(b) Model
(c) Compound
(d) Field
Answer:
(a) Tuple

Question 22.
Set of related data’s are represented in a row or:
(a) Column
(b) Tuple
(c) Field
(d) (a) and (b)
Answer:
(b) Tuple

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 23.
The horizontal entity in a table is known as Record or:
(a) Column
(b) Row
(c) Field
(d) (a) and (b)
Answer:
(b) Row

Question 24.
Which type of key is perform the identification task?
(a) Primary key
(b) Super key
(c) Composite key
(d) Compound key
Answer:
(a) Primary key

Question 25.
Every tuple must have, by definition, a unique value for its:
(a) primary key
(b) super key
(c) composition key
(d) compound key
Answer:
(a) primary key

Question 26.
A primary key which is a combination of more than one attribute is called a:
(a) primary key
(b) foreign Key
(c) composite primary key
(d) super key
Answer:
(c) composite primary key

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 27.
A foreign key is a copy of a:
(a) primary key
(b) foreign key
(c) composite primary key
(d) super key
Answer:
(a) primary key

Question 28.
Foreign keys can also be:
(a) zero
(b) null
(c) one
(d) negative
Answer:
(b) null

Question 29.
An attribute or group of attributes, which is sufficient to distinguish every • tuple in the relation from every other one is known as:
(a) primary key
(b) secondary key
(c) super key
(d) foreign key
Answer:
(c) super key

Question 30.
A key with more than one attribute to identify rows in a table is called:
(a) primary key
(b) secondary key
(c) super key
(d) composite key
Answer:
(d) composite key

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 31.
Composite key is also known as:
(a) primary key
(b) super key
(c) composite key
(d) compound key
Answer:
(d) compound key

Question 32.
An _________ can be anything a real-world object or animation.
(a) object
(b) entity
(c) attribute
(d) isolate
Answer:
(b) entity

Question 33.
Which wilt always have a single value, that value can be a number or character or string?
(a) object
(b) entity
(c) attribute
(d) isolate
Answer:
(c) attribute

Question 34.
A person can hold n number of degrees” – Say which type of Attribute?
(a) Key Attribute
(b) Simple Attribute
(c) Composite Attribute
(d) Multi valued Attribute
Answer:
(d) Multi valued Attribute

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 35.
Which is defined as the number of items that must be included in a relationship?
(a) Cardinality
(b) Entity
(c) Key
(b) Simple
Answer:
(a) Cardinality

Question 36.
Which database is founded by Monty Widenius and is named after his daughter name?
(a) MS Access
(b) SQL
(c) MySQL
(d) Oracle
Answer:
(c) MySQL

Question 37.
Which of the following is not a database?
(a) MySQL
(b) SQL
(c) Oracle
(d) Foxpro
Answer:
(b) SQL

Question 38.
Which of the following is open source database software?
(a) MySQL
(b) Oracle
(c) Foxpro
(d) MS Access
Answer:
(a) MySQL

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 39.
In the MySQL database, there exists a table named:
(a) key
(b) host
(c) user
(d) password
Answer:
(c) user

Question 40.
Which command is similar to rebooting the server in MySQL?
(a) Flush privileges;
(b) select_priv;
(c) Insert_priv;
(d) Update_priv;
Answer:
(a) Flush privileges;

Question 41.
Which one of the following is most popular for web Administration?
(a) MySQL
(b) Work bench
(c) HeidiSQL
(d) PhPMYAdmin
Answer:
(d) PhPMYAdmin

Question 42.
Which database tool used by developers and DBA’s mainly for visualization?
(a) PhPMYAdmin
(b) MYSQL Workbench
(c) HeidiSQL
(d) MySQL
Answer:
(b) MYSQL Workbench

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 43.
Which is open source tools helps in the administration of better database systems and GUI supports?
(a) PhPMYAdmin
(b) MYSQL Workbench
(c) HeidiSQL
(d) MySQL
Answer:
(c) HeidiSQL

Question 44.
How many major parts are needed that form a database?
(a) 2
(b) 3
(c) 4
(d) 5
Answer:
(b) 3

Question 45.
Which is a similar to an excel sheet containing multiple rows and columns?
(a) Rows
(b) Records
(c) Fields
(d) Tables
Answer:
(d) Tables

Question 46.
Which is standard Language used for accessing and manipulating databases?
(a) SQL
(b) Foxpro
(c) MS Access
(d) Oracle
Answer:
(a) SQL

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 47.
Which SQL command are used to define database schema?
(a) DDL
(b)DML
(c)DQL
(d) DCL
Answer:
(a) DDL

Question 48.
Which SQL command deals with the manipulation of data present in the data base?
(a) DDL
(b) DML
(c) DQL
(d) DCL
Answer:
(b) DML

Question 49.
Which of the following command is data query language?
(a) INSERT
(b) UPDATE
(c) DELETE
(d) SELECT
Answer:
(d) SELECT

Question 50.
Which commands are manage the transactions in SQL databases?
(a) DDL
(b) DML
(c) TCL
(d) DCL
Answer:
(c) TCL

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 51.
Which commands are that implement security on database objects?
(a) DDL
(b) DML
(c) TCL
(d) DCL
Answer:
(d) DCL

Question 52.
Which command is used to create new SQL database?
(a) New
(b) Select
(c) Create
(d) Insert
Answer:
(c) Create

Question 53.
Which command is used to remove any of the existing SQL Database?
(a) remove
(b) delete
(c) erase
(d) drop
Answer:
(d) drop

Question 54.
Which command is used to select suitable database for accessing?
(a) Open
(b) Use
(c) Select
(d) New
Answer:
(b) Use

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 55.
Which command is used to add new row to the table?
(a) Add
(b) Update
(c) Insert
(d) New
Answer:
(c) Insert

Question 56.
Which command is used to remove an existing record in a table?
(a) Remove
(b) Delete
(c) Erase
(d) Drop
Answer:
(b) Delete

Question 57.
Which condition is specified to delete entire column data?
(a) INTO
(b) FROM
(c) ORDERBY
(d) WHERE
Answer:
(d) WHERE

Question 58.
Which command is used to modifying and updating the existing record in a table?
(a) Add
(b) Update
(c) Insert
(d) Modify
Answer:
(b) Update

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 59.
Which command is used to sort the record in a table?
(a) WHERE
(b) MODIFY
(c) INTO
(d) ORDER BY
Answer:
(d) ORDER BY

Question 60.
Which clause is used to select data from more than two tables?
(a) FROM
(b) INTO
(c) JOIN
(d) COMBINE
Answer:
(c) JOIN

Question 61.
Sub queries are always written within the:
(a) file
(b) record
(c) field
(d) Parantheses
Answer:
(d) Parantheses

Question 62.
Which clause is not used in sub query?
(a) WHERE
(b) ORDER BY
(c) SELECT
(d) INSERT
Answer:
(b) ORDER BY

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 63.
Match the following:

(A) MySQL (i) DBMS
(B) WINDOWS (ii) Spreadsheet
(C) SQL (iii) RDBMS
(D) MS Excel (iv) OS

(a) (A) – (iii); (B) – (iv); (C) – (i); (D) – (ii)
(b) (A) – (iii); (B) – (i); (C) – (ii); (D) – (iv)
(c) (A) – (ii); (B) – (iv); (C) – (i); (D) – (iii)
(d) (A) – (ii); (B) – (i); (C) – (iii); (D) – (iv)
Answer:
(a) (A) – (iii); (B) – (iv); (C) – (i); (D) – (ii)

Question 64.
ODBMS Stands for:
(a) Objective Data Base Management System
(b) Object Data Base Management System
(c) Observe Data Base Management System
(d) Obstacle Data Base Management System
Answer:
(b) Object Data Base Management System

Question 65.
Which is called process of copying table contents into a file for future use? .
(a) Backup
(b) Save
(c) Store
(d) Copy
Answer:
(a) Backup

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 66.
Match the following.

(A) Table (i) Horizontal entity
(B) Column (ii) Single entry
(C) Row (iii) Attribute
(D) Record (iv) Rows and Columns

(a) (A) – (iii); (B) -;(ii); (C) – (i); (D) – (iv)
(b) (A) – (iv); (B) – (iii); (C) – (ii); (D) – (i)
(c) (A) – (iii); (B) – (i); (C) – (iv); (D) – (ii)
(d) (A) – (iv); (B) – (ii); (C) – (iii)- (D) – (i)
Answer:
(b) (A) – (iv); (B) – (iii); (C) – (ii); (D) – (i)

Question 67.
Match the following.

(A) Primary Key (i) Copy
(B) Foreign Key (ii) Unique value
(C) Super Key (iii) Compound Key
(D) Composite Key (iv) Group of Attribute

(a) (A) – (ii); (B) – (i); (C) – (iv); (D) – (iii)
(b) (A) – (ii); (B) – (iii); (C) – (iv); (D) – (i)
(c) (A) – (iii); (B) – (i); (C) – (iv); (D) – (ii)
(d) (A) – (iv); (B) – (i); (C) – (ii); (D) – (iii)
Answer:
(a) (A) – (ii); (B) – (i); (C) – (iv); (D) – (iii)

Question 68.
Match the following.

(A) Entity Strong (i) Double Rectangular Box
(B) Entity Weak (ii) Rhombus within rhombus
(C) Relationships (iii) Rectangular Box
(D) Between Entities (iv) Rhombus

(a) (A) – (iii); (B) – (ii); (C) – (iv); (D) – (i)
(b) (A) – (ii); (B) – (iv); (C) – (i); (D) – (iii)
(c) (A) – (ii); (B) – (i); (C) – (iii); (D) – (iv)
(d) (A) – (iii); (B) – (i); (C) – (iv); (D) – (ii)
Answer:
(d) (A) – (iii); (B) – (i); (C) – (iv); (D) – (ii)

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 69.
Match the following:

(A) Attribute (i) Double Ellipse
(B) Key Attribute (ii) Dotted Ellipse inside
(C) Derived Attribute (iii) Underline inside Ellipse
(D) Multivalued Attribute (iv) Ellipse

(a) (A) – (ii); (B) – (iii); (C) – (i); (D) – (iv)
(b) (A) – (ii); (B) – (i); (C) – (iv); (D) – (iii)
(c) (A) – (iv); (B) – (iii); (C) – (ii); (D) – (i)
(d) (A) – (iv); (B) – (i); (C) – (iii); (D) – (ii)
Answer:
(c) (A) – (iv); (B) – (iii); (C) – (ii); (D) – (i)

Question 70.
Match the following:

(A) PhPMyAdmin (i) Desktop App
(B) HeidiSQL (ii) Server Software
(C) Schema (iii) Web Admin
(D) XAMPP (iv) Structure

(a) (A) – (iii); (B) – (i); (C) – (iv); (D) – (ii)
(b) (A) – (iii); (B) – (ii); (C) – (iv); (D) – (i)
(c) (A) – (ii); (B) – (iv); (C) – (i); (D) – (iii)
(d) (A) – (ii); (B) – (i); (C) – (iii); (D) – (iv)
Answer:
(a) (A) – (iii); (B) – (i); (C) – (iv); (D) – (ii)

Question 71.

Choose the incorrect pair:
(a) Table – Excel sheet
(b) Queries – Views
(c) MySQL – Desktop App Tool
(d) CSV – Operating system
Answer:
(d) CSV – Operating system

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 72.
Choose the incorrect pair:
(a) Alter -. Modify
(b) Drop – Delete a Table
(c) Truncate – Delete all Table
(d) Delete – Delete a database
Answer:
(d) Delete – Delete a database

Question 73.
Choose the incorrect pair:
(a) INSERT – Add new rows
(b) UPDATE – Rename
(c) SELECT – Retrieve
(d) ROLLBACK – Restore
Answer:
(b) UPDATE – Rename

Question 74.
Choose the incorrect pair:
(a) COMMIT – Permanent Save
(b) ROLLBACK – Restore database
(c) SAVE POINT – Save Temporarily
(d) SETTRANSACTION – Save in Hard disk
Answer:
(d) SETTRANSACTION – Save in Hard disk

Question 75.
Choose the incorrect pair:
(a) JOIN – Update
(b) Grant – Give permission
(c) Revoke – Out permission
(d) Drop – Remove
Answer:
(a) JOIN – Update

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 76.
Choose the correct pair:
(a) WHERE – Query
(b) ORDER BY – Sorting
(c) GROUP BY – File
(d) SELECT – Database
Answer:
(b) ORDER BY – Sorting

Question 77.
Choose the correct pair:
(a) MySQL – Compiler
(b) Oracle – Operating system
(c) MS Access – RDBMS
(d) SQL – Objects
Answer:
(c) MS Access – RDBMS

Question 78.
Choose the correct pair:
(a) Atomicity – Changes
(b) Consistency – thumb rule
(c) Isolation – Concurrent
(d) Durability – Transaction
Answer:
(c) Isolation – Concurrent

Question 79.
Choose the correct pair:
(a) Table – Tuple
(b) Row – Record
(c) Column – Data
(d) Attribute – Row
Answer:
(b) Row – Record

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 80.
Choose the correct pair.
(a) Primary Key – Rows –
(b) Secondary Key – Columns
(c) Foreign Key – Copy of Primary Key
(d) Composite Key – Super Key
Answer:
(c) Foreign Key – Copy of Primary Key

Question 81.
Choose the incorrect statement:
(a) The famous Hierarchical database model was IMS.
(b) Hierarchical database model each record has a tree structure.
(c) The collection of record was called fields.
(d) The individual records are equal to rows.
Answer:
(c) The collection of record was called fields.

Question 82.
Choose the incorrect statement:
(a) The first developed network data model was IDS.
(b) Network model is similar to relational model.
(c) The Network model are handled many to many relationship.
(d) The limitation of network model is difficulty in design and maintenance.
Answer:
(b) Network model is similar to relational model.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 83.
Choose the incorrect statement:
(a) The most popular relational database is Foxpro.
(b) MySQL is an open source database.
(c) MySQL supports different platforms like windows, Linux and MAC operating systems.
(d) The features of RDBMS are high availability and high performance.
Answer:
(a) The most popular relational database is Foxpro.

Question 84.
Choose the correct statement:
(a) A single entry in a table is called as column.
(b) The horizontal entity in a table is known as Record or Row.
(c) Each row is known as Attributes.
(d) The vertical entity in a table is known as Tuple.
Answer:
(b) The horizontal entity in a table is known as Record or Row.

Question 85.
Choose the correct statement:
(a) SQL is a Standard Query Language is a standard language used for accessing and manipulating databases.
(b) The CREATE command is used to draw a Animation. .
(c) DROP command is used to delete the record in a Table.
(d) TRUNCATE command is used to delete a structure of the Table.
Answer:
(a) SQL is a Standard Query Language is a standard language used for accessing and manipulating databases.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 86.
Assertion (A):
A Database Management System (DBMS) is system software for creating and managing databases.
Reason (R):
The DBMS provides users and programmers with a systematic way to create, retrieve, update and manage data.
(a) Both A and R are true, and R is the correct explanation for A.
(b) Both A and R are true, but R is not the correct explanation for A.
(c) A is true, But R is false.
(d) A is false, But R is true.
Answer:
(a) Both A and R are true, and R is the correct explanation for A.

Question 87.
Assertion (A):
The table consists of several files.
Reason (R):
Table can be divide into smaller parts, in terms of column.
(a) Both A and R are true, and R is the correct explanation for A.
(b) Both A and R are true, but R is not the correct explanation for A.
(c) A is true, But R is false.
(d) A is false, But R is true.
Answer:
(d) A is false, But R is true.

Question 88.
Assertion (A):
A foreign key is a copy of the whole of its parent primary key.
Reason (R):
Foreign key values have to be unique.
(a) Both A and R are true, and R is the correct explanation for A.
(b) Both A and R are true, but R is not the correct explanation for A.
(c) A is true, But R is false.
(d) A is false, But R is true.
Answer:
(c) A is true, But R is false.

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 89.
Assertion (A):
An entity can be anything a real-world object or animation which is easily identifiable.
Reason (R):
Instances are the values for the entity.
(a) Both A and R are true, and R is the correct explanation for A.
(b) Both A and R are true, but R is not the correct explanation for A.
(c) A is true, But R is false.
(d) A is false, But R is true.
Answer:
(b) Both A and R are true, but R is not the correct explanation for A.

Question 90.
Assertion (A):
COMMIT is SQL TCL commands which is used to restore database to original form.
Reason (R):
ROLLBACK is SQL TCL commands which is used to permanent save.
(a) Both A and R are true.
(b) Both A and R are false.
(c) A is true, But R is false.
(d) A is false, But R is true.
Answer:
(b) Both A and R are false.

Question 91.
Pick the odd one out:
(a) SQL
(b) MySQL
(c) Oracle
(d) DBMS
Answer:
(d) DBMS

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 92.
Pick the odd one out:
(a) Windows
(b) MS SQL
(c) Linux
(d) MAC
Answer:
(b) MS SQL

Question 93.
Pick the odd one out:
(a) INSERT
(b) SELECT
(c) DROP
(d) UPDATE
Answer:
(c) DROP

Question 94.
Pick the odd one out:
(a) ALTER
(b) PhPMyAdmin
(c) MySQLworkbench
(d) HeidiSQL
Answer:
(a) ALTER

Question 95.
Pick the odd one out:
(a) DROP
(b) TRUNCATE
(c) DELETE
(d) GRANT
Answer:
(d) GRANT

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 96.
Pick the odd one out:
(a) ,(comma)
(b) ;(semicolon)
(c) :(colon)
(d) .(full stop)
Answer:
(b) ;(semicolon)

Question 97.
Which language is used to request information from a Database?
(a) Relational
(b) Structural
(c) Query
(d) Compiler
Answer:
(c) Query

Question 98.
The diagram gives a logical structure of the database graphically?
(a) Entity-Relationship
(b) Entity
(c) Architectural Representation
(d) Database
Answer:
(a) Entity-Relationship

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 99.
An entity set that does not have enough attributes to form primary key is known as:
(a) Strong entity set
(b) Weak entity set
(c) Identity set
(d) Owner set
Answer:
(b) Weak entity set

Question 100.
Command is used to delete a database.
(a) Delete database databasename
(b) Delete databasename
(c) Drop database database name
(d) Drop database name
Answer:
(d) Drop database name

Question 101.
Which type of below DBMS is MySQL?
(a) Object Oriented
(b) Hierarchical
(c) Relational
(d) Network
Answer:
(c) Relational

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 102.
MySQL is freely available and is open source.
(a) True
(b) False
Answer:
(a) True

Question 103.
represents a “tuple” in a relational database?
(a) Table
(b) Row
(c) Column
(d) Object
Answer:
(b) Row

Question 104.
Communication is established with MySQL using:
(a) SQL
(b) Network calls
(c) Java
(d) API’s
Answer:
(a) SQL

Samacheer Kalvi TN State Board 12th Computer Applications Important Questions Chapter 3 Introduction to Database Management System

Question 105.
Which is the MySQL instance responsible for data processing?
(a) MySQL Client
(b) MySQL Server
(c) SQL
(d) Server Daemon Program
Answer:
(b) MySQL Server

Question 106.
The structure representing the organizational view of entire database is known as …………. in MySQL database.
(a) Schema
(b) View
(c) Instance
(d) Table
Answer:
(a) Schema

TN Board 12th Computer Applications Important Questions