12-ஆம் வகுப்பு · சமச்சீர் கல்வி · 16 அத்தியாயங்கள் · 64 வினாக்கள்

12-ஆம் வகுப்பு கணினி அறிவியல் முக்கிய வினாக்கள் 12th Computer Science important questions 2027, chapter-wise

அத்தியாயம் வாரியாக 2, 3, 5 மதிப்பெண் வினாக்கள். ஒவ்வொரு வினாவுக்கும் "விடைக் குறிப்பு" அழுத்தி முக்கியப் புள்ளிகளைப் பாருங்கள். தமிழ் அல்லது ஆங்கில வழி மட்டும் வேண்டுமெனில் கீழே தேர்ந்தெடுங்கள்.

அத்தியாயங்கள்

அத்தியாயங்கள் · Chapters

அலகு 1: செயற்கூறுUnit 1: Function

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What is a subroutine?
    துணைநிரல் என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    A small, reusable unit of code that performs a specific task and can be called from other parts of a program. குறிப்பிட்ட பணியைச் செய்யும், மீண்டும் பயன்படுத்தக்கூடிய சிறிய நிரல் பகுதி.

  2. Differentiate between pure and impure functions.
    தூய, தூய்மையற்ற செயற்கூறுகளை வேறுபடுத்துக.
    விடைக் குறிப்பு / Answer hint

    Pure: same output for the same arguments, no side effects (e.g. strlen). Impure: output may differ or it changes external state (e.g. random(), functions modifying global variables). தூய: ஒரே உள்ளீட்டுக்கு ஒரே வெளியீடு, பக்க விளைவு இல்லை. தூய்மையற்ற: வெளியீடு மாறலாம், வெளி நிலையை மாற்றும்.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Explain interface and implementation with an example.
    இடைமுகம், செயல்படுத்தம் ஆகியவற்றை எடுத்துக்காட்டுடன் விளக்குக.
    விடைக் குறிப்பு / Answer hint

    Interface: what an object does (the set of operations/functions it offers). Implementation: how it does it (the code). E.g. a car's accelerator is the interface; the engine mechanism is the implementation. இடைமுகம்: என்ன செய்கிறது; செயல்படுத்தம்: எப்படிச் செய்கிறது. எ.கா. காரின் முடுக்கி, இயந்திரம்.

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Explain with examples the different types of parameters and arguments in a function definition.
    செயற்கூறு வரையறையில் உள்ள அளபுருக்கள், செயலுருபுகளின் வகைகளை எடுத்துக்காட்டுகளுடன் விளக்குக.
    விடைக் குறிப்பு / Answer hint

    Parameters are variables in the definition; arguments are values passed in the call. Parameters without type (let rec gcd a b) and with type (let rec gcd (a: int) (b: int) : int); type annotations; explain calling gcd 10 15. வரையறையில் உள்ளவை அளபுருக்கள்; அழைப்பில் அனுப்புபவை செயலுருபுகள்; வகையுடன், வகையின்றி அளபுருக்கள்.

அலகு 2: தரவு அருவமாக்கம்Unit 2: Data Abstraction

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What is an abstract data type (ADT)?
    அருவ தரவு இனம் என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    A type defined by its behaviour (values and operations) without specifying how it is implemented, e.g. stack, queue. செயல்படுத்தும் முறையைக் குறிப்பிடாமல் மதிப்புகள், செயல்பாடுகளால் வரையறுக்கப்படும் இனம்.

  2. What are constructors and selectors?
    ஆக்கிகள், தேர்வுகள் என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    Constructors build an abstract data type (e.g. makecity(name, lat, lon)); selectors retrieve information from it (e.g. getname(city)). ஆக்கிகள் தரவை உருவாக்கும்; தேர்வுகள் அதிலிருந்து தகவலைப் பெறும்.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Differentiate between list and tuple.
    பட்டியல், அணிகோவை (tuple) வேறுபடுத்துக.
    விடைக் குறிப்பு / Answer hint

    List: mutable, square brackets [ ], elements can be changed. Tuple: immutable, parentheses ( ), elements cannot be changed after creation. பட்டியல் மாற்றக்கூடியது [ ]; tuple மாற்ற இயலாதது ( ).

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. How will you facilitate data abstraction? Explain with a rational number example.
    தரவு அருவமாக்கத்தை எவ்வாறு செயல்படுத்துவாய்? விகிதமுறு எண் எடுத்துக்காட்டுடன் விளக்குக.
    விடைக் குறிப்பு / Answer hint

    Use constructors and selectors as an abstraction barrier: rational(n, d) constructs; numer(x) and denom(x) select. Operations like add_rational use only selectors, so the representation (list or pair) can change without affecting the program. rational(n, d) ஆக்கி; numer(x), denom(x) தேர்வுகள்; உள் அமைப்பு மாறினாலும் நிரல் பாதிக்காது.

அலகு 3: வரையெல்லைUnit 3: Scoping

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What is scope?
    வரையெல்லை என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    The part of a program in which a variable (name) can be accessed. ஒரு மாறியை அணுகக்கூடிய நிரலின் பகுதி.

  2. What is the LEGB rule?
    LEGB விதி என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    Order in which Python looks up names: Local → Enclosed → Global → Built-in. பெயர்களைத் தேடும் வரிசை: உள்ளூர் → உள்ளடக்கிய → உலகளாவிய → உள்ளமைந்த.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. What is a module? Write its characteristics.
    தொகுதி (module) என்றால் என்ன? அதன் பண்புகளை எழுதுக.
    விடைக் குறிப்பு / Answer hint

    A part of a program (file) containing related functions and data. Characteristics: contains instructions, processing logic and data; can be compiled separately; can be reused in other programs. தொடர்புடைய செயற்கூறுகள், தரவு கொண்ட நிரல் பகுதி; தனியே தொகுக்கலாம்; மீண்டும் பயன்படுத்தலாம்.

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Explain the types of variable scope with examples.
    மாறி வரையெல்லையின் வகைகளை எடுத்துக்காட்டுகளுடன் விளக்குக.
    விடைக் குறிப்பு / Answer hint

    Local (defined inside a function), enclosed (in an outer function for a nested function), global (defined at top level of the program), built-in (predefined names like print, len). Show a nested-function example and the order of lookup. உள்ளூர், உள்ளடக்கிய, உலகளாவிய, உள்ளமைந்த வரையெல்லைகள்; உட்பொதிந்த செயற்கூறு எடுத்துக்காட்டு.

அலகு 4: நெறிமுறையின் யுக்திகள்Unit 4: Algorithmic Strategies

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. Define an algorithm. Write two characteristics.
    நெறிமுறையை வரையறு. இரு பண்புகளை எழுதுக.
    விடைக் குறிப்பு / Answer hint

    A finite set of well-defined steps to solve a problem. Characteristics: input, output, finiteness, definiteness, effectiveness, correctness, simplicity. சிக்கலைத் தீர்க்கும் வரையறுக்கப்பட்ட படிகள்; உள்ளீடு, வெளியீடு, முடிவுடைமை, தெளிவு.

  2. What is time complexity?
    நேரச் சிக்கலளவு என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    The amount of time an algorithm takes as a function of input size, usually expressed with Big O notation, e.g. O(n) for linear search. உள்ளீட்டு அளவைப் பொறுத்து நெறிமுறை எடுக்கும் நேரம்; Big O குறியீடு.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Explain linear search with an example.
    நேரியல் தேடலை எடுத்துக்காட்டுடன் விளக்குக.
    விடைக் குறிப்பு / Answer hint

    Compare the search key with each element one by one from the start until found or the list ends. Example: search 25 in [10, 7, 25, 3] → found at index 2. Time complexity O(n). ஒவ்வொரு உறுப்புடனும் வரிசையாக ஒப்பிடுதல்; O(n).

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Explain binary search with an example and write its algorithm.
    இருமத் தேடலை எடுத்துக்காட்டுடன் விளக்கி அதன் நெறிமுறையை எழுதுக.
    விடைக் குறிப்பு / Answer hint

    Works on a sorted list: find mid = (low + high)//2; if key == a[mid] found; if key < a[mid] search left half (high = mid − 1), else right half (low = mid + 1); repeat until low > high. Example: search 40 in [10, 20, 30, 40, 50, 60]. Time complexity O(log n). வரிசைப்படுத்திய பட்டியல்; நடு உறுப்புடன் ஒப்பிட்டு பாதியாகக் குறைத்தல்; O(log n).

அலகு 5: பைத்தான் – மாறிகள் மற்றும் செயற்குறிகள்Unit 5: Python – Variables and Operators

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What are the different modes of programming in Python?
    பைத்தானில் நிரலாக்கத்தின் வெவ்வேறு முறைகள் யாவை?
    விடைக் குறிப்பு / Answer hint

    Interactive mode (commands typed at >>> prompt and executed immediately) and script mode (program saved in a .py file and run). ஊடாடும் முறை (>>>), உரைநிரல் முறை (.py கோப்பு).

  2. What are keywords? Give examples.
    முக்கியச் சொற்கள் என்றால் என்ன? எடுத்துக்காட்டுகள் தருக.
    விடைக் குறிப்பு / Answer hint

    Reserved words with special meaning that cannot be used as identifiers, e.g. if, else, while, for, def, return, True. சிறப்புப் பொருள் கொண்ட, அடையாளங்காட்டிகளாகப் பயன்படுத்த முடியாத சொற்கள்.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Explain the ternary operator with an example.
    மும்ம செயற்குறியை எடுத்துக்காட்டுடன் விளக்குக.
    விடைக் குறிப்பு / Answer hint

    Conditional expression: value_if_true if condition else value_if_false. Example: min = 50 if 49 < 50 else 70 → 50. x if நிபந்தனை else y; எ.கா. min = 50 if 49 < 50 else 70.

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Explain the different operators in Python with examples.
    பைத்தானின் பல்வேறு செயற்குறிகளை எடுத்துக்காட்டுகளுடன் விளக்குக.
    விடைக் குறிப்பு / Answer hint

    Arithmetic (+, −, *, /, %, **, //), relational (==, !=, >, <, >=, <=), logical (and, or, not), assignment (=, +=, −=…), conditional/ternary; give outputs for sample values like a = 100, b = 10. கணித, ஒப்பீட்டு, தருக்க, மதிப்பிருத்தல், நிபந்தனைச் செயற்குறிகள் — எடுத்துக்காட்டுகளுடன்.

அலகு 6: கட்டுப்பாட்டு அமைப்புகள்Unit 6: Control Structures

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What is the use of the range() function?
    range() செயற்கூறின் பயன் என்ன?
    விடைக் குறிப்பு / Answer hint

    Generates a sequence of numbers: range(start, stop, step), e.g. range(1, 10, 2) gives 1, 3, 5, 7, 9; commonly used in for loops. எண் வரிசையை உருவாக்கும்: range(1, 10, 2) → 1, 3, 5, 7, 9.

  2. Differentiate between break and continue.
    break, continue வேறுபடுத்துக.
    விடைக் குறிப்பு / Answer hint

    break exits the loop completely; continue skips the rest of the current iteration and moves to the next iteration. break சுற்றிலிருந்து வெளியேறும்; continue அடுத்த சுழற்சிக்குச் செல்லும்.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Write a program to display multiplication table of a given number.
    கொடுக்கப்பட்ட எண்ணின் பெருக்கல் வாய்ப்பாட்டைக் காட்டும் நிரலை எழுதுக.
    விடைக் குறிப்பு / Answer hint

    n = int(input()); for i in range(1, 11): print(n, 'x', i, '=', n * i). for i in range(1, 11): print(n, 'x', i, '=', n * i)

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Explain the if..elif..else statement with a suitable program.
    if..elif..else கூற்றை ஏற்ற நிரலுடன் விளக்குக.
    விடைக் குறிப்பு / Answer hint

    Used for multiple conditions; conditions are checked in order and the first true block executes. Example: read marks and print grade A (≥ 90), B (≥ 75), C (≥ 60), D (≥ 50), else Fail. பல நிபந்தனைகள்; வரிசையாகச் சோதித்து முதல் உண்மைத் தொகுதி செயல்படும்; மதிப்பெண்ணுக்கு தரம் காட்டும் நிரல்.

அலகு 7: பைத்தான் செயற்கூறுகள்Unit 7: Python Functions

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What is a lambda function?
    lambda செயற்கூறு என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    An anonymous one-line function: lambda arguments: expression, e.g. sum = lambda a, b: a + b. பெயரற்ற ஒருவரிச் செயற்கூறு: lambda a, b: a + b.

  2. What is recursion?
    தற்சுழற்சி என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    A function calling itself. It must have a base condition to stop, e.g. factorial(n) = n * factorial(n − 1) with factorial(0) = 1. தன்னைத்தானே அழைக்கும் செயற்கூறு; நிறுத்த அடிப்படை நிபந்தனை தேவை.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Explain the different types of arguments in Python functions.
    பைத்தான் செயற்கூறுகளின் செயலுருபு வகைகளை விளக்குக.
    விடைக் குறிப்பு / Answer hint

    Required (positional) arguments, keyword arguments (name = value), default arguments (def f(x, y = 10)), variable-length arguments (*args). கட்டாய, முக்கியச்சொல், இயல்புநிலை, மாறும் நீள (*args) செயலுருபுகள்.

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Explain scope of variables (local and global) in Python functions with an example program, including the use of the global keyword.
    பைத்தான் செயற்கூறுகளில் உள்ளூர், உலகளாவிய மாறிகளின் வரையெல்லையை global முக்கியச்சொல்லுடன் எடுத்துக்காட்டு நிரலால் விளக்குக.
    விடைக் குறிப்பு / Answer hint

    Local variables are created inside a function and exist only there; global variables are defined outside and readable inside. To modify a global inside a function use 'global c'. Example: c = 1; def add(): global c; c = c + 2; print(c) → 3. உள்ளூர் மாறி செயற்கூறுக்குள் மட்டும்; உலகளாவிய மாறியை மாற்ற global c; எடுத்துக்காட்டு நிரல்.

அலகு 8: சரங்கள் மற்றும் சர கையாளுதல்Unit 8: Strings and String Manipulation

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What is string slicing? Give an example.
    சரத் துண்டாக்கல் என்றால் என்ன? எடுத்துக்காட்டு தருக.
    விடைக் குறிப்பு / Answer hint

    Extracting a substring using [start:end:step], e.g. s = 'THIRUKKURAL'; s[0:5] → 'THIRU'. [start:end:step]; s[0:5] → 'THIRU'.

  2. Why are strings called immutable?
    சரங்கள் ஏன் மாற்ற இயலாதவை?
    விடைக் குறிப்பு / Answer hint

    Characters of a string cannot be changed in place after creation; s[0] = 'A' raises TypeError. A new string must be created instead. உருவாக்கிய பின் எழுத்துகளை மாற்ற இயலாது; புதிய சரம் உருவாக்க வேண்டும்.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Write the use of any three string functions with examples.
    மூன்று சரச் செயற்கூறுகளின் பயனை எடுத்துக்காட்டுகளுடன் எழுதுக.
    விடைக் குறிப்பு / Answer hint

    len('Chennai') → 7; 'chennai'.upper() → 'CHENNAI'; 'Madurai'.find('du') → 2; 'a,b'.split(',') → ['a', 'b']; 'hello'.capitalize() → 'Hello'. len(), upper(), find(), split(), capitalize() — எடுத்துக்காட்டுகள்.

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Write a program to check whether a given string is a palindrome.
    கொடுக்கப்பட்ட சரம் பாலின்ட்ரோம் ஆ எனச் சோதிக்கும் நிரலை எழுதுக.
    விடைக் குறிப்பு / Answer hint

    s = input('Enter a string: '); if s == s[::-1]: print('Palindrome') else: print('Not a palindrome'). Explain s[::-1] reverses the string; e.g. 'MADAM' is a palindrome. s == s[::-1] எனில் பாலின்ட்ரோம்; எ.கா. MADAM.

அலகு 9: பட்டியல்கள், அணிகோவைகள், தொகுப்புகள் மற்றும் அகராதிUnit 9: Lists, Tuples, Sets and Dictionary

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What is a set in Python?
    பைத்தானில் தொகுப்பு (set) என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    An unordered collection of unique (non-duplicate) elements in curly braces, e.g. {1, 2, 3}; supports union, intersection, difference. தனித்த உறுப்புகளின் வரிசையற்ற தொகுப்பு {1, 2, 3}.

  2. What is a dictionary? Give an example.
    அகராதி என்றால் என்ன? எடுத்துக்காட்டு தருக.
    விடைக் குறிப்பு / Answer hint

    A collection of key: value pairs, e.g. marks = {'Tamil': 90, 'English': 85}; values are accessed by keys. சாவி: மதிப்பு இணைகள்; marks = {'Tamil': 90}.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Differentiate between append(), extend() and insert().
    append(), extend(), insert() வேறுபடுத்துக.
    விடைக் குறிப்பு / Answer hint

    append(x) adds one element at the end; extend([..]) adds several elements at the end; insert(i, x) adds an element at position i. append ஒன்றை இறுதியில்; extend பலவற்றை இறுதியில்; insert குறிப்பிட்ட இடத்தில்.

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Explain the set operations with examples.
    தொகுப்புச் செயல்பாடுகளை எடுத்துக்காட்டுகளுடன் விளக்குக.
    விடைக் குறிப்பு / Answer hint

    A = {1, 2, 3, 4}, B = {3, 4, 5}. Union A | B = {1, 2, 3, 4, 5}; intersection A & B = {3, 4}; difference A − B = {1, 2}; symmetric difference A ^ B = {1, 2, 5}. Also the method forms union(), intersection(), difference(), symmetric_difference(). ஒன்றிப்பு, வெட்டு, வேறுபாடு, சமச்சீர் வேறுபாடு — A, B எடுத்துக்காட்டுடன்.

அலகு 10: பைத்தான் இனக்குழுக்கள் மற்றும் பொருள்கள்Unit 10: Python Classes and Objects

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What is a class?
    இனக்குழு என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    A template or blueprint that defines data members (attributes) and member functions (methods) for creating objects. பொருள்களை உருவாக்குவதற்கான வார்ப்புரு; தரவு உறுப்புகள், வழிமுறைகள் கொண்டது.

  2. What is the purpose of the __init__ method?
    __init__ வழிமுறையின் நோக்கம் என்ன?
    விடைக் குறிப்பு / Answer hint

    It is the constructor, executed automatically when an object is created, used to initialise instance variables. பொருள் உருவாகும்போது தானாக இயங்கும் ஆக்கி; மாறிகளுக்குத் தொடக்க மதிப்பளிக்கும்.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Differentiate between class variables and instance variables.
    இனக்குழு மாறிகள், நிகழ்வு மாறிகளை வேறுபடுத்துக.
    விடைக் குறிப்பு / Answer hint

    Class variables are shared by all objects (defined inside the class, outside methods). Instance variables are unique to each object (defined with self inside methods). இனக்குழு மாறி எல்லாப் பொருள்களுக்கும் பொது; நிகழ்வு மாறி (self) ஒவ்வொரு பொருளுக்கும் தனி.

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Write a Python program using a class to find the area and circumference of a circle with constructor and destructor.
    ஆக்கி, அழிப்பி கொண்ட இனக்குழுவைப் பயன்படுத்தி வட்டத்தின் பரப்பு, சுற்றளவு காணும் பைத்தான் நிரலை எழுதுக.
    விடைக் குறிப்பு / Answer hint

    class Circle: pi = 3.14; def __init__(self, r): self.r = r; def area(self): return Circle.pi * self.r ** 2; def circumference(self): return 2 * Circle.pi * self.r; def __del__(self): print('Object deleted'). Create c = Circle(5) and print both results. class Circle; __init__-இல் ஆரம்; area(), circumference(); __del__ அழிப்பி.

அலகு 11: தரவுத்தளக் கருத்துகள்Unit 11: Database Concepts

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What is DBMS?
    DBMS என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    Database Management System: software that stores, retrieves and manages data in a database, e.g. MySQL, Oracle. தரவைச் சேமிக்க, மீட்க, மேலாண்மை செய்யும் மென்பொருள்.

  2. What is a primary key?
    முதன்மைச் சாவி என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    A field (or set of fields) that uniquely identifies each record in a table; it cannot be NULL or duplicate. அட்டவணையில் ஒவ்வொரு பதிவையும் தனித்துவமாக அடையாளம் காட்டும் புலம்.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Explain the types of relationships in a database.
    தரவுத்தளத்தில் உள்ள உறவு வகைகளை விளக்குக.
    விடைக் குறிப்பு / Answer hint

    One-to-one (a student – one admission number), one-to-many (a department – many staff), many-to-one, many-to-many (students – courses). ஒன்றுக்கு-ஒன்று, ஒன்றுக்கு-பல, பலவற்றுக்கு-ஒன்று, பலவற்றுக்கு-பல.

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Explain the different database models.
    வெவ்வேறு தரவுத்தள மாதிரிகளை விளக்குக.
    விடைக் குறிப்பு / Answer hint

    Hierarchical (tree, parent–child, IMS), network (graph, many-to-many), relational (tables with rows and columns, E. F. Codd), entity-relationship (ER diagrams: entities, attributes, relationships), object model (objects, classes, methods). படிநிலை, வலைப்பின்னல், உறவுமுறை (கோட்), ER, பொருள் மாதிரிகள்.

அலகு 12: கட்டமைக்கப்பட்ட வினவல் மொழி (SQL)Unit 12: Structured Query Language (SQL)

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. Differentiate DDL and DML commands.
    DDL, DML கட்டளைகளை வேறுபடுத்துக.
    விடைக் குறிப்பு / Answer hint

    DDL (Data Definition Language) defines structure: CREATE, ALTER, DROP, TRUNCATE. DML (Data Manipulation Language) changes data: INSERT, UPDATE, DELETE. DDL அமைப்பு: CREATE, ALTER, DROP. DML தரவு: INSERT, UPDATE, DELETE.

  2. What is a constraint? Name any two.
    கட்டுப்பாடு என்றால் என்ன? இரண்டைக் குறிப்பிடுக.
    விடைக் குறிப்பு / Answer hint

    Rules applied on table columns to keep data valid: PRIMARY KEY, NOT NULL, UNIQUE, CHECK, DEFAULT. சரியான தரவை உறுதி செய்யும் விதிகள்: PRIMARY KEY, NOT NULL, UNIQUE.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Explain the ORDER BY and GROUP BY clauses with examples.
    ORDER BY, GROUP BY உட்பிரிவுகளை எடுத்துக்காட்டுகளுடன் விளக்குக.
    விடைக் குறிப்பு / Answer hint

    ORDER BY sorts results: SELECT * FROM student ORDER BY name DESC; GROUP BY groups rows for aggregates: SELECT gender, COUNT(*) FROM student GROUP BY gender. ORDER BY வரிசைப்படுத்தும்; GROUP BY குழுவாக்கி COUNT போன்றவற்றுக்கு.

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Write SQL statements to create a table Student (Admno, Name, Age, Place), insert two records, display students older than 16 and delete a record.
    Student (Admno, Name, Age, Place) அட்டவணையை உருவாக்கி, இரு பதிவுகளைச் சேர்த்து, 16 வயதுக்கு மேற்பட்டோரைக் காட்டி, ஒரு பதிவை நீக்கும் SQL கூற்றுகளை எழுதுக.
    விடைக் குறிப்பு / Answer hint

    CREATE TABLE Student (Admno INTEGER PRIMARY KEY, Name CHAR(20) NOT NULL, Age INTEGER, Place CHAR(20)); INSERT INTO Student VALUES (101, 'Arun', 17, 'Madurai'); INSERT INTO Student VALUES (102, 'Banu', 16, 'Salem'); SELECT * FROM Student WHERE Age > 16; DELETE FROM Student WHERE Admno = 102; CREATE TABLE, INSERT INTO, SELECT … WHERE Age > 16, DELETE FROM … WHERE.

அலகு 13: பைத்தான் மற்றும் CSV கோப்புகள்Unit 13: Python and CSV Files

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What is a CSV file?
    CSV கோப்பு என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    Comma Separated Values: a plain text file storing tabular data where each line is a record and fields are separated by commas; opens in Excel. காற்புள்ளியால் பிரிக்கப்பட்ட மதிப்புகள் கொண்ட உரைக் கோப்பு; ஒவ்வொரு வரியும் ஒரு பதிவு.

  2. What is the use of the next() function with csv reader?
    csv reader-உடன் next() செயற்கூறின் பயன் என்ன?
    விடைக் குறிப்பு / Answer hint

    It skips the first row (usually the header) and moves the reader to the next row. முதல் வரியை (தலைப்பு) தவிர்த்து அடுத்த வரிக்குச் செல்லும்.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Differentiate between csv.reader() and csv.DictReader().
    csv.reader(), csv.DictReader() வேறுபடுத்துக.
    விடைக் குறிப்பு / Answer hint

    csv.reader() returns each row as a list; csv.DictReader() returns each row as a dictionary with header names as keys. reader() ஒவ்வொரு வரியையும் பட்டியலாக; DictReader() அகராதியாக (தலைப்புகள் சாவிகள்).

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Write a Python program to write data into a CSV file and read it back.
    CSV கோப்பில் தரவை எழுதி மீண்டும் படிக்கும் பைத்தான் நிரலை எழுதுக.
    விடைக் குறிப்பு / Answer hint

    import csv; rows = [['Name', 'Mark'], ['Arun', 90], ['Banu', 85]]; with open('student.csv', 'w', newline='') as f: csv.writer(f).writerows(rows); with open('student.csv', 'r') as f: for row in csv.reader(f): print(row). csv.writer(f).writerows(); csv.reader(f) சுற்றில் அச்சிடல்; with open() பயன்பாடு.

அலகு 14: பைத்தானில் C++ நிரல்களை இறக்குமதி செய்தல்Unit 14: Importing C++ Programs in Python

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What is a scripting language?
    உரைநிரல் மொழி என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    A language that is interpreted rather than compiled and used to automate tasks or glue programs together, e.g. Python, JavaScript, Perl. தொகுக்கப்படாமல் விளக்கப்படும், பணிகளைத் தானியக்கமாக்கும் மொழி; பைத்தான்.

  2. What is the use of the os.system() function?
    os.system() செயற்கூறின் பயன் என்ன?
    விடைக் குறிப்பு / Answer hint

    It executes an operating-system command from Python, e.g. os.system('g++ pali.cpp -o pali') to compile a C++ program. பைத்தானிலிருந்து இயங்குதளக் கட்டளையை இயக்கும்; C++ நிரலைத் தொகுக்க.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Differentiate between compiler and interpreter.
    தொகுப்பி, விளக்கி வேறுபடுத்துக.
    விடைக் குறிப்பு / Answer hint

    Compiler translates the whole program into machine code before execution (faster run, C++). Interpreter translates and executes line by line (easier debugging, Python). தொகுப்பி முழு நிரலையும் முன்கூட்டியே மொழிபெயர்க்கும்; விளக்கி வரிவரியாக இயக்கும்.

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Explain how a C++ program is executed from Python using the sys and getopt modules.
    sys, getopt தொகுதிகளைப் பயன்படுத்தி பைத்தானிலிருந்து C++ நிரல் எவ்வாறு இயக்கப்படுகிறது என விளக்குக.
    விடைக் குறிப்பு / Answer hint

    Write the C++ file; in Python, read the file name from the command line with sys.argv and getopt.getopt(argv, 'i:', ['ifile=']); build the compile command 'g++ file.cpp -o file' and run it using os.system(); then run the executable. Run as: python pycpp.py -i file. sys.argv, getopt மூலம் கோப்புப் பெயர்; os.system('g++ …') தொகுத்தல்; இயக்கக்கூடிய கோப்பை இயக்குதல்.

அலகு 15: SQL மூலம் தரவைக் கையாளுதல்Unit 15: Data Manipulation through SQL

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What is SQLite?
    SQLite என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    A lightweight, serverless relational database stored in a single file; Python accesses it through the built-in sqlite3 module. சேவையகம் இல்லாத, ஒற்றைக் கோப்பு உறவுமுறைத் தரவுத்தளம்; sqlite3 தொகுதி.

  2. What is the use of a cursor?
    கர்சரின் பயன் என்ன?
    விடைக் குறிப்பு / Answer hint

    A cursor object executes SQL queries and fetches results: cursor = connection.cursor(); cursor.execute(sql). SQL வினவல்களை இயக்கி முடிவுகளைப் பெறும் பொருள்.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Differentiate between fetchone(), fetchmany() and fetchall().
    fetchone(), fetchmany(), fetchall() வேறுபடுத்துக.
    விடைக் குறிப்பு / Answer hint

    fetchone() returns the next single row; fetchmany(n) returns the next n rows; fetchall() returns all remaining rows as a list of tuples. fetchone ஒரு வரி; fetchmany(n) n வரிகள்; fetchall மீதமுள்ள அனைத்தும்.

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Write a Python program to create a table in SQLite, insert records and display them.
    SQLite-இல் அட்டவணை உருவாக்கி, பதிவுகளைச் சேர்த்து, காட்டும் பைத்தான் நிரலை எழுதுக.
    விடைக் குறிப்பு / Answer hint

    import sqlite3; con = sqlite3.connect('school.db'); cur = con.cursor(); cur.execute('CREATE TABLE IF NOT EXISTS student (rollno INTEGER PRIMARY KEY, name TEXT, mark INTEGER)'); cur.execute("INSERT INTO student VALUES (1, 'Arun', 90)"); con.commit(); cur.execute('SELECT * FROM student'); print(cur.fetchall()); con.close(). connect, cursor, CREATE TABLE, INSERT, commit, SELECT, fetchall, close.

அலகு 16: PyPlot மூலம் தரவுக் காட்சிப்படுத்தல்Unit 16: Data Visualization using PyPlot

2 மதிப்பெண் வினாக்கள் · 2 marks

  1. What is data visualization?
    தரவுக் காட்சிப்படுத்தல் என்றால் என்ன?
    விடைக் குறிப்பு / Answer hint

    Representing data in graphical form (charts, graphs, maps) so that patterns and trends are easy to understand. தரவை வரைபடங்களாகக் காட்டுதல்; போக்குகளை எளிதில் புரிந்துகொள்ள.

  2. Name the types of charts that can be drawn using matplotlib.
    matplotlib மூலம் வரையக்கூடிய வரைபட வகைகளைக் குறிப்பிடுக.
    விடைக் குறிப்பு / Answer hint

    Line chart, bar chart, pie chart, histogram, scatter plot, box plot. கோட்டு, பட்டை, வட்ட, நிகழ்வெண் செவ்வகம், சிதறல் வரைபடங்கள்.

3 மதிப்பெண் வினாக்கள் · 3 marks

  1. Differentiate between bar chart and histogram.
    பட்டை வரைபடம், நிகழ்வெண் செவ்வகப்படம் வேறுபடுத்துக.
    விடைக் குறிப்பு / Answer hint

    Bar chart compares categories with gaps between bars (plt.bar). Histogram shows frequency distribution of continuous data with adjacent bars (plt.hist). பட்டை வரைபடம்: வகைகள், இடைவெளியுடன். நிகழ்வெண் செவ்வகம்: தொடர் தரவு, இடைவெளியின்றி.

5 மதிப்பெண் வினாக்கள் · 5 marks

  1. Write a Python program to draw a pie chart of marks in five subjects with labels and percentages.
    ஐந்து பாடங்களின் மதிப்பெண்களுக்கு லேபிள், சதவீதத்துடன் வட்ட வரைபடம் வரையும் பைத்தான் நிரலை எழுதுக.
    விடைக் குறிப்பு / Answer hint

    import matplotlib.pyplot as plt; sizes = [89, 80, 90, 100, 75]; labels = ['Tamil', 'English', 'Maths', 'Science', 'Social']; plt.pie(sizes, labels=labels, autopct='%.2f'); plt.axis('equal'); plt.show(). plt.pie(sizes, labels=labels, autopct='%.2f'); plt.show().

இவை CampusPro தயாரித்த பொதுத் தேர்வு மாதிரி வினாக்கள்; அரசுத் தேர்வுத் துறையின் அதிகாரப்பூர்வ வினாக்கள் அல்ல. பாடநூல் பயிற்சி வினாக்கள், ஒரு மதிப்பெண் வினாக்கள், முந்தைய ஆண்டு வினாத்தாள்களையும் படியுங்கள். பிழை கண்டால் கீழே உள்ள படிவத்தில் தெரிவியுங்கள். Exam-pattern questions written by CampusPro from the Samacheer Kalvi textbook; not official DGE questions. Also practise textbook exercises, one-mark questions and previous papers.

மற்ற பாடங்கள்

இயற்பியல் · வேதியியல் · கணிதம் · உயிரி-தாவரவியல் · உயிரி-விலங்கியல் · கணினி அறிவியல்

அடுத்து பாருங்கள் · Next, try

Chat on WhatsApp