0% found this document useful (0 votes)
36 views14 pages

1 Pu Imp Ques With Ans

The document contains a comprehensive list of important questions for a final exam in Computer Science for I PUC students. It covers various topics including microcontrollers, cache memory, robotics applications, Python programming, algorithms, data types, and cybersecurity. Additionally, it includes practical coding exercises, definitions, and explanations of key concepts in computer science.

Uploaded by

nithuk118
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views14 pages

1 Pu Imp Ques With Ans

The document contains a comprehensive list of important questions for a final exam in Computer Science for I PUC students. It covers various topics including microcontrollers, cache memory, robotics applications, Python programming, algorithms, data types, and cybersecurity. Additionally, it includes practical coding exercises, definitions, and explanations of key concepts in computer science.

Uploaded by

nithuk118
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

I PUC COMPUTER SCIENCE IMPORTANT QUESTIONS FOR FINAL EXAM

1. What is the main difference between a microcontroller and a microprocessor?

2. Write a note on cache memory

3. Write the applications of robotics.

4. Write a pseudocode to check the number is odd or even

1
5. Define repetition, membership, and slicing operations on strings

2
6. Mention types of execution modes to run the python coding.
1.Interactive mode: interactive mode allows execution of individual statement instantaneously.
2.Script mode: in script mode we can write a python program in a file , save it and then use the
interpreter to execute it.

7. What is the purpose of the `break` statement in loops?


The break statement alters the normal flow of execution as it terminates the current loop and
resumes execution of the statement following that loop.
Ex: num=0
for num in range(10):
num=num+1
if num==8:
break
print(‘num has value’ +str(num))
print(‘encountered break!!out of loop’)
8. What is the syntax for defining a user-defined function in Python?
Function defined to achieve some tasks as per the programmers requirement is called a user
defined function.

9. What is big data? explain the characteristics of big data

3
10. Explain any five arithmetic operators used in python

11. Mention any two operations performed on tuples.


1. Concatenation
2. Repetation
3. Membership
4. slicing
12. What is a 'Digital Citizen'?
A person who develops the skills and knowledge to effectively use the internet and other digital
technology, especially in order to participate responsibly in social and civic activities.
Some who is skilled in using the internet in order to communicate with others, buy and sell things,
and take part in politics, and who understands how to do this in a safe and responsible way.
13. What is the role of passwords in online security?
They protect your electronic accounts and devices from unauthorized access, keeping your
sensitive personal information safe. The more complex the password, the more protected
your information will be from cyber threats and hackers.

4
14. Explain the term 'system bus' and its components

15. Expand the terms i) ASCII ii) ISCII iii) IC


ASCII : American Standard Code For Information Interchange.
ISCII: Indian Script code for Information Interchange.
Or
Indian Standard code for Information Interchange.
IC : Integrated Circuit

5
16. Mention any three measures to reduce the risk of cybercrime.

17. Write any three characteristics of a good algorithm.

18. Write a pseudocode to find factorial of a number.

Step 1: Declare N and F as integer variable.


Step 2: Initialize F=1.
Step 2: Enter the value of N.
Step 3: Check whether N>0, if not then F=1.
Step 4: If yes then, F=F*N
Step 5: Decrease the value of N by 1 .
Step 6: Repeat step 4 and 5 until N=0.
Step 7: Now print the value of F.

6
19. Write any three rules for naming an identifier in python programming.

20. Define repetition, membership, and slicing operations on lists.

7
21. Draw the functional block diagram of computer system and briefly explain its

components.

8
22. What is an operating system? Mention the functions of operating system.

23. What is robotics? Explain its types and mention its advantages.

24. Write different flowchart symbols and its functions.

25. Explain any five relational operators used in python

26. What is a function? Write the advantages of functions in python programming

27. Briefly explain the following built in functions for list manipulations

a. sorted( ) b. append( ) c. extend( ) d. insert( ) e. count( )

28. Briefly explain the following built in functions for String manipulations

a. len() b. lower( ) c. upper( ) d. partition( ) e. split( )

29. Solve the following


i) 11110.1101(2)=?(10)
ii) 564.32(8)=?(10)
iii) FACE(16)=?(2)

9
30. Predict the output of the following python code
(i)
a = True
b = False
c = False

if a or b and c:
print ("GEEKSFORGEEKS")
else:
print ("geeksforgeeks")
(ii)
def doThis():

global count

for i in (1, 2, 3):


count += 1

doThis()

print (count)
(iii)
num1 = 10
num2 = 20
result = num1 + num2
print(result)
(iv)
list1 = [1, 2, 3]
list2 = [4, 5]
list1.extend(list2)
print(list1)
(v)
dictionary = {1:'1', 2:'2', 3:'3'}
del dictionary[1]
dictionary[1] = '10'
del dictionary[2]
print (len(dictionary

31. Write a python program to generate the pattern


*
**
***
****
*****
32. ) Identify the date type of a class variables for the following:

a) >>> num1 = 10

10
>>> type(num1)

Ans: <class ‘int’>

b)>>> num2 = -1210


>>> type(num2)

Ans: <class ‘int’>

c)>>> var1 = True


>>> type(var1)

Ans: <class ‘Bool’>

d)>>> float1 = -1921.9


>>> type(float1)

Ans: <class ‘float’>

e)>>> float2 = -9.8*10**2


>>> print(float2, type(float2)) -980.0000000000001

Ans: -980.0000000000001, <class ‘float’>

f) >>> var2 = -3+7.2j


>>> print(var2, type(var2)) (-3+7.2j)

Ans: (-3+7.2j), < class ‘Complex’>

g) >>> list1 = [5, 3.4, "New Delhi", "20C", 45]


#print the elements of the list list1
>>> print(list1)

Ans: [5, 3.4, 'New Delhi', '20C', 45]

h) >>> list1 = [5, 3.4, "New Delhi", "20C", 45]


#print the elements of the list list1
>>> print(list1)

Ans:[5, 3.4, 'New Delhi', '20C', 45]

i) >>> set1 = {10,20,3.14,"New Delhi"}


>>> print(type(set1))
>>> print(set1)

Ans: <class ‘set’>, {10, 20, 3.14, "New Delhi"}

11
j) >>> myVar = None
>>> print(type(myVar))
>>> print(myVar)

Ans: <class ‘None’>, None

k) >>> dict1 = {'Fruit':'Apple', 'Climate':'Cold', 'Price(kg)':120}


>>> print(dict1)
>>> print(dict1['Price(kg)']) 120

Ans: ) {'Fruit': 'Apple', 'Climate': 'Cold', 'Price(kg)': 120}

120
l) >>> num1 = 5
>>> num2 = 6
>>> num1 + num2
Ans: 11
m) >>> num1 = 5
>>> num2 = 6
>>> num1 - num2
Ans: -1
n) >>> num1 = 5
>>> num2 = 6
>>> num1 * num2
Ans: 30
o) >>> num1 =36
>>> num2 = 6
>>> num1 // num2
Ans: 0
p) >>> num1 = 2
>>> num2 =3
>>> num1 ** num2
Ans: 8

33. Solve the following


i) 10010.101(2)=?(10)
ii) 24.13(8)=?(10)
iii)FF(16)=?(2)

34. Predict the output of the following python code


i.
x,y=2,3
x,y=x+2,y+3
print(x,y)
ii.
a=1
a+=3
print(a)
iii.

12
name=”python”
print(“Hello “,name)
iv.
a=2
print(a>=20)

v. x,y=8,6
x,y=y,x
print(“x=”,x,”y=”,y)

35. Write a python program to generate the pattern


1
12
123
1234
12345
36. what are input devices? Mention any two input devices.

37. what are output devices? Mention any two output devices.

38. What is artificial intelligence? Mention advantages of artificial intelligence.

39. Explain different data types in python.

40. Explain if statement with syntax and example.

41.Explain if-else statement with syntax and example.

42.Explain if-elif-else statement with syntax and example.

43.Explain while loop with syntax and example.

44.Explain for loop with syntax and example.

45.Explain indentation and rules of indenatation.

46. Explain any 6 string methods and built in functions of strings

47. Explain any 6 tuple methods and built in functions of strings

48. What is dictionary? Explain adding new item and modifying an existing item in

dictionary.

49.Explain net etiquettes in detail.

50.Explain communication etiquettes in detail.

51. Explain Intellectual Property Rights.

13
52.Explain Violation of IPR. 67.Explain cybercrime in detail.

53. What is virus and malware?

54.What is hacking? Explain types of hacking.

55.Explain identity theft in detail.

56.Briefly explain digital technology Impact on Health.

14

You might also like