#### 12th Standard Computer Science English Medium Reduced Syllabus Important Questions - 2021 Part - 1

12th Standard

Reg.No. :
•
•
•
•
•
•

Computer Science

Time : 27:36:00 Hrs
Total Marks : 165

Multiple Choice Questions

20 x 1 = 20
1. Which of the following is a unit of code that is often defined within a greater code structure?

(a)

Subroutines

(b)

Function

(c)

Files

(d)

Modules

2. Which of the following are expressed using statements of a programming language?

(a)

Functions

(b)

Algorithm

(c)

Interface

(d)

Implementation

3. Which of the following functions that retrieve information from the data type?

(a)

Constructors

(b)

Selectors

(c)

recursive

(d)

Nested

4. In which data representation, a definition for each function is known

(a)

User defined

(b)

Buil-in

(c)

Abstract

(d)

Concrete

5. The____________ can be implemented using singly linked list or doubly linked list

(a)

(b)

(c)

(d)

6. The basic idea of ________ is to structure programs so that they operate on abstract dat(a)

(a)

Encapsulatio

(b)

Polymorphism

(c)

Data type

(d)

Data Abstraction

7. A Function always first look up for a variable name in its______ scope

(a)

Local

(b)

Enclosed

(c)

Global

(d)

Built-in

8. Which of the following could be designed to get a solution of a given problem?

(a)

Program

(b)

Algorithm

(c)

Flowchart

(d)

Input/Output

9. _______are languages that uses meaningful statements about time and space complexity?

(a)

Time and space trade

(b)

Asymptotic notations

(c)

Complexity notations

(d)

Algorithmic notations

10. From the following statement absence of which one no message is displayed on the screen? variable = input ("prompt string")

(a)

Variable

(b)

input

(c)

"prompt string"

(d)

" "

11. The output function ______ is used to display the result of the Python Program.

(a)

out ()

(b)

write ()

(c)

print ()

(d)

execute ()

12. In Python, for loop uses the ____ function in the sequence to specify the initial final and increment values.

(a)

Input ()

(b)

print ()

(c)

range ()

(d)

sequence ()

13. Which function is called anonymous un-named function

(a)

Lambda

(b)

Recursion

(c)

Function

(d)

define

14. Which of the following is used as placeholders or replacement fields which get replaced along with format( ) function?

(a)

{ }

(b)

< >

(c)

++

(d)

^^

15. Using sort (), the default sorting is

(a)

ascending

(b)

descending

(c)

no sorting

(d)

criteria sorting

16. __________ represents an abstraction of the sequence of numbers

(a)

Dictionary

(b)

List

(c)

Set

(d)

Tuple

17. Which of the following are the key features of an Object Oriented Programming language?

(a)

Constructor and Classes

(b)

Constructor and Object

(c)

Classes and Objects

(d)

Constructor and Destructor

18. Which of the following is a simple abstraction of complex real world data gathering environment?

(a)

Data redundancy

(b)

Data consistency

(c)

Data abstraction

(d)

Data model

19. Identify the function call statement in the following snippet.
if __name__ =='__main__':
main(sys.argv[1:])

(a)

main(sys.argv[1:])

(b)

__name__

(c)

__main__

(d)

argv

20. In the command python <filename.py> - i <c++ filename> where i denotes.

(a)

Information

(b)

Input mode

(c)

ios

(d)

Interpreter

21. 2 Marks

15 x 2 = 30
22. Define Function with respect to Programming language.

23. Construct on algorithm that arranges meetings between these two types so that they change their color to the third type. In the end, all should display the same color.

24. How a class defines a data abstraction?

25. What is modular programming?

26. What is an Algorithm?

27. What is Sorting?

28. Give an example. How the time efficiency of an algorithm is measured.

29. What are the three asymptotic notations used to represent time complexity of algorithms?

30. Write the syntax of input () used in python.

31. Write a program in python to check if the accepted number even or odd.
a = int(input("Enter any number:"))
if a%2==0:
print (a, "is an even number")
else:
print (a, "is an odd number")

32. What is String?

33. Do you modify a string in Python?

34. How will you delete a string in Python?

35. What is the theoretical difference between Scripting language and other programming language?

36. Write a note on main (sys.argv [1]).

37. 3 Marks

15 x 3 = 45
38. Write an algorithm to check whether the entered number is even or odd.

39. Differentiate Concrete data type and abstract datatype

40. Write a note on Data Abstraction

41. Discuss about Algorithmic complexity and its types

42. What do you understand by Dynamic programming?

43. Design an algorithm to find square of the given number and display the result.

44. Write the different factors in which the time efficiency of an algorithm its measured

45. Write the steps to do dynamic programming.

46. Write a pseudo code that defines Fibonacci Iterative algorithm with Dynamic programming approach.

47. Fill up the blanks to get the following output from Python code given.
Output:
Enter Number 1 : 34
Enter Number 2 : 70
The Sum = 104
Code:
X = $\overset { (1) }{ \_ \_ \_ \_ \_ }$ (input ("Enter Number 1:"))
Y = $\overset { (2) }{ \_ \_ \_ \_ \_ }$ ($\overset { (3) }{ \_ \_ \_ \_ \_ }$ ("Enter Number 2 :"))
$\overset { (4) }{ \_ \_ \_ \_ \_ }$ ("The sum =", $\overset { (5) }{ \_ \_ \_ \_ \_ }$)

48. How the data in RDBMs is stored? Explain.

49. List the data types used in SQL.

50. How will you generate queries and retrieve data from the table? Explain?

51. Write an algorithm for executing c++ program pali_cpp.cpp using python program.pall.py.

52. Explain how a connect to be made to a database (Academy through python SQlite3.

53. 5 Marks

14 x 5 = 70
54. How will you facilitate data abstraction. Explain it with suitable example

55. Explain the types of scopes for variable or LEGB rule with example.

56. Write any five benefits in using modular programming.

57. Explain the concept of Dynamic programming with suitable example.

58. Describe in detail the procedure Script mode programming

59. Explain input() and print() functions with examples.

60. How will access all elements of a list? Explain with an example

61. Explain with an example how will you return multiple values in tuples.

62. Explain the components of DBMS

63. Explain ALTER command in detail.

64. Write the rules to be followed to format the data in a CSV file.

65. Write a program to set data at runtime and writing it in a CSV file.

66. Write a python program to execute the following C++ program
To implement Multilevel Inheritance:
// C++ program to implement Multilevel Inheritance
// Now select File ⟶New in Notepad and type the C++ program
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 vehicles" << 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

67. 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 :-

 Icode :- integer and act as primary key Item Name :- Character with length 25 Rate :- Integer Record to be added :- 1008, Monitor,15000