Question Bank I Puc Computer Science 2024-25-4
Question Bank I Puc Computer Science 2024-25-4
BANGALORE – 560035
3. Mention two types of data you deal with while browsing the Internet.
PRIMUS PU COLLEGE, BANGALORE
7. Name any two input devices used to enter data into a computer system.
9. Name the two primary services of the software required to make a computer
functional.
17. Why is the execution time of machine code less than that of source code?
18. Name any two secondary storage devices available at your school or home.
6. Mention any two device drivers installed on your computer and their functions.
10. List the types of software required for a computer to function and explain their
primary services.
12. What are the advantages of using a GUI-based operating system over a
command line interface?
14. How does a file management system protect data in secondary memory?
15. Explain the difference between input and output devices with examples. 3
16. What is the function of the memory controller in a computer system?
17. Describe the significance of binary numbers in computer memory.
18. Explain the process of data transfer between components through the system
bus.
1. Draw and explain the block diagram of a computer system, detailing the
functionality of each component.
5. Explain the process by which a computer converts high-level language code into
machine code, including the roles of compilers and interpreters.
6. What are the key differences between proprietary software and freeware
software? Provide examples of each and discuss their benefits and drawbacks.
7. Illustrate the data transfer process between CPU, primary memory, and
secondary storage through the system bus. Describe each step in detail.
8. Discuss the significance of the system bus in a computer system, including the
functions of the data bus and address bus.
9. Explain how the operating system manages different I/O devices, including the
role of device drivers and security measures implemented by the OS.
4
10. Describe the evolution of computer memory from primary to secondary
memory, including the different types and their respective roles in data storage
and processing.
12. Analyze the role of the memory management system in an operating system
and its impact on the performance of a computer system.
13. What is the significance of the clock speed in a microprocessor, and how does
it affect the performance of a computer system?
15. Explain the importance of using both system software and application software
in a computer. Provide examples and discuss their roles in enhancing computer
functionality.
5
CHAPTER 2:
1. What is encoding?
2. Explain the significance of the code value 65 for the key "A."
3. Define ASCII.
6. What is ISCII?
16. What is the decimal value of the ASCII code for the character 'D'?
18. What is the hexadecimal value for the Unicode character 'अ'?
6
19. Explain the importance of standard encoding schemes.
2. Explain how the word 'DATA' is encoded using ASCII and converted to binary.
10. What are the different number systems mentioned in the document?
13. Discuss the advantages of using Unicode over other encoding schemes.
14. How is the binary value of a character obtained from its ASCII code?
15. What are the common issues with non-standard encoding schemes?
2. Explain the encoding process of the word 'DATA' using ASCII and its binary
conversion in detail.
3. Describe the ISCII encoding scheme and its impact on Indian language
computing.
5. Explain the Unicode standard, its development, and its global impact on
computing.
11. Explain the process of encoding and decoding data in computer systems.
12. Describe the different types of number systems and their applications in
computing.
13. Discuss the advantages and disadvantages of ASCII, ISCII, and Unicode.
14. Explain the role of encoding schemes in data security and encryption.
15. Describe the future trends and developments in encoding schemes and
8
number systems.
PRIMUS PU COLLEGE, BANGALORE
9
CHAPTER 3:
EMERGING TRENDS
18. What is the relationship between Big Data and business value?
10
19. What is the role of sensors in the Internet of Things?
2. Explain how AI is integrated into digital personal assistants like Siri or Alexa.
14. How can hidden patterns in Big Data be valuable for businesses?
15. What are the main benefits of data analytics in scientific research?
16. Describe the impact of Big Data on data storage and processing techniques.
3. Describe the process and significance of training and testing models in Machine
Learning.
fields.
5. Analyze the characteristics of Big Data and their implications on data processing.
6. Discuss the infrastructure and components necessary for the Internet of Things.
7. How does the Web of Things create a unified interface for IoT devices?
10. Discuss the challenges and solutions in handling the veracity and value of Big
Data.
11. How can data analytics transform decision-making processes in businesses and
research?
12. Explain the relationship between Big Data, AI, and IoT in modern technology.
13. Discuss the potential future developments and challenges in IoT and smart
technologies.
14. Analyze the role of AI and Machine Learning in enhancing IoT capabilities.
15. How can emerging trends like AI, Big Data, and IoT shape the future of digital
societies?
12
CHAPTER 4:
1. Define an algorithm.
2. What is pseudocode?
4. How can you improve an algorithm that fails for certain inputs?
8. Describe the algorithm for checking whether a number is within a specific range.
9. Explain how to handle time addition in pseudocode when minutes exceed 60.
13. Describe the pseudocode to classify numbers as "Single Digit," "Double Digit," or "Big."
15. What improvements can be made to an algorithm that only accepts positive integers up to
100?
16. Explain the algorithm for determining the winner in a coin-flipping game.
17. Write the pseudocode to print all multiples of 5 between 10 and 25.
18. How do you write an algorithm to read the marks of three subjects and calculate the
14 aggregate?
3. Describe the algorithm for adding hours and minutes, including the necessary conditionals.
4. Write the pseudocode and draw the flowchart for calculating the area and perimeter of a
rectangle.
7. Write a detailed algorithm to classify numbers as "Single Digit," "Double Digit," or "Big."
8. Describe the steps involved in writing an algorithm for the total water bill calculation.
9. Explain the process of improving an algorithm that fails for certain inputs with a detailed
example.
11. Describe the process of writing an algorithm that accepts only positive integers up to 100.
12. Explain the steps involved in designing an algorithm for a coin-flipping game with detailed
conditionals.
13. Write a detailed algorithm to print all multiples of 5 between 10 and 25.
14. Describe the process of writing an algorithm to read the marks of three subjects and
calculate the percentage.
15. Explain the significance of iterative and branching steps in algorithm design with examples
18.
CHAPTER 5:
2. Define a program.
PRIMUS PU COLLEGE, BANGALORE
15. Describe how Python uses indentation for blocks and nested blocks.
17. What are Python libraries and why are they important? 17
18. Describe how to download and install Python.
19. How does Python handle errors during execution?
2. Explain the process of writing and executing a Python program from installation to running a
script.
3. Discuss the various features of Python that make it a preferred language for beginners.
5. Describe in detail the steps involved in writing a Python program in script mode and running
it.
7. Discuss the significance of Python in the context of modern programming and software
development.
8. Explain the use of comments in Python with examples and describe their importance.
9. Describe the rules for naming identifiers in Python and explain why these rules are
important.
10. Explain the concept of high-level and low-level programming languages and their
differences.
11. Discuss the use of Python in web development and provide examples of popular web
services built with Python.
12. Explain how Python handles memory management and the concept of object IDs.
13. Describe the process of debugging in Python and common techniques used.
14. Explain with examples the different types of operators available in Python.
15. Discuss the role of Python in education and why it is a good choice for learning
18 programming.
FLOW OF CONTROL
12. What are the two types of control structures supported by Python?
18. What will be the output of the following code: `num1 = 5; num2 = 3; print(num1 - num2)`?
1. Write a Python program to find the positive difference between two numbers.
5. What are the key differences between `if`, `if..else`, and `if..elif` statements?
12. How does the `break` statement alter the flow of a loop?
14. Write a Python program to print the first ten natural numbers using a loop.
18. How can you ensure a program outputs only positive differences between two numbers?
1. Write a Python program to create a simple calculator that performs basic arithmetic
operations.
3. How can you implement a nested loop structure in Python? Provide an example.
4. Describe the importance of control structures in managing the flow of a Python program.
6. How does Python handle multiple conditions using `if..elif..else`? Provide a code example.
8. Describe the use of loops in Python with examples of `for` and `while` loops.
9. Write a Python program to print all prime numbers between 1 and 50.
10. How does the `break` statement work within nested loops? Provide a code example.
12. Write a Python program that uses `if..else` statements to categorize the input number as
positive, negative, or zero.
13. Describe how a flowchart can aid in writing complex Python programs.
14. Provide a detailed explanation of the `continue` statement and its applications with
examples.
15. Write a Python program to simulate a basic login system, validating user input for
username and password.
21
CHAPTER 7:
FUNCTIONS
13. Describe how you can import a specific function from a module.
14. What happens if a global variable and a local variable have the same name within a
function?
17. How does Python handle multiple imports of the same module?
22
18. What is the role of indentation in Python function definitions?
19. How can you handle an error if a user enters an invalid input in the traffic light program?
20. What message is displayed if the traffic light color entered is "RED" in the traffic light
program?
4. Explain with an example how a function can return multiple values in Python.
6. Write a function that calculates the sum of the first `n` natural numbers.
7. What is the purpose of the `return` statement in a Python function? Give an example.
8. Explain the difference between positional and keyword arguments with examples.
10. Write a short program to demonstrate the use of the `global` keyword.
11. Describe the flow of execution in a Python program with multiple function calls.
12. Explain the concept of module in Python and how it helps in program development.
13. Write a short program to demonstrate the use of the Python Standard Library.
14. How can you reuse functions from another program or module? Explain with an example.
15. Write a function to simulate a traffic light system and explain its components.
17. Describe how function headers and function calls work in Python.
18.
23
19. Write a short program that includes both user-defined functions and built-in functions.
20. Explain the significance of the colon (`:`) at the end of a function header in Python.
### 5 Marks Questions
1. Write a Python program that demonstrates the use of both global and local variables within
multiple functions.
4. Describe in detail the process of creating, calling, and executing a user-defined function in
Python.
5. Write a Python program that simulates a traffic light system using functions. Include
appropriate user input handling and output messages.
8. Discuss the role and benefits of the Python Standard Library in program development.
Provide examples of commonly used modules and functions.
9.
10. Explain the different types of function arguments in Python (positional, keyword, default,
variable-length) with examples.
11. Write a detailed program that demonstrates the use of modules in Python. Show how to
import modules, use functions from them, and handle namespace conflicts.
12. Discuss the importance of modularity and reusability in programming. Use Python
functions and modules to illustrate your points.
13. Write a comprehensive guide on how to create and use user-defined functions in Python,
24
including examples, best practices, and common pitfalls to avoid.
CHAPTER 8:
STRINGS
3. How can you access the last character of a string using negative indexing?
12. How does the membership operator `in` work with strings?
13. Describe the use of the `not in` operator with an example.
14. Explain string slicing with the third index specifying step size. Provide an example.
19. What error occurs if you try to change a character in a string using indexing? 25
20. How does the `+` operator function when used with strings?
### 3-Mark Questions
1. Explain the difference between positive and negative indexing in strings. Provide examples
for each.
2. What is the output of the following code and why: `str1 = 'Hello World!'; str1[0:5] + str1[-
6:]`?
3. Describe the use of the `len()` function with a string. What does it return?
5. Explain the immutability of strings with an example. What error is produced when trying to
modify a string?
7. How can you use a `while` loop to traverse a string? Provide code and explain the output.
8. Describe the `title()` method and give an example of its use. What is its output?
9. Explain the concept of string slicing. How would you extract a substring from a string?
10. What are built-in functions in Python? Provide examples of three built-in functions used
with strings.
11. How can you concatenate strings using the `+` operator? Provide an example with two
strings.
12. What does the `*` operator do with strings? Provide examples of its use.
13. How does Python handle strings as sequences of characters? What operations can be
performed on them?
14. Provide an example of using the `in` operator with strings. What does it check?
15. What is the output of `str1[::-1]` if `str1 = 'Hello World!'`? Explain the slicing used.
16. Describe the process of traversing a string using a `for` loop. Provide an example.
26
17. How does negative indexing work in string slicing? Provide an example.
18. What are the advantages of using built-in functions in Python? Provide examples of two
such functions.
19. How can you repeat a string multiple times in Python? Provide code examples.
20. Explain the use of the `len()` function with an example. What does it return when applied
to a string?
1. Explain the concept of string immutability in Python. Why is it important? Provide examples
and describe the errors that occur when trying to change a string.
3. What are string slicing and traversal? Explain with examples of how to use slicing to extract
substrings and how to traverse strings using loops.
4. How does Python handle negative indexing in strings? Provide detailed examples and
explain the outputs.
5. Discuss the built-in functions available for string manipulation in Python. Provide examples
and explain how they are used to perform common operations on strings.
6. Describe the process of traversing a string using both `for` and `while` loops. Provide code
examples and explain the output of each method.
7. Explain the slice operation `str1[n:m:k]` in detail. How does it differ from simple slicing?
Provide examples and describe the outputs.
8. What is the significance of the `len()` function in string manipulation? How is it used in
various string operations? Provide detailed examples.
9. Describe the concept of string immutability with respect to memory management and
efficiency in Python. Provide examples and discuss the implications of immutability.
10. How can you use the `+`, `*`, and `in` operators with strings in Python? Provide
comprehensive examples and explain the results of each operation. 27
11. Discuss the various methods for accessing and manipulating string data in Python. Provide
examples for indexing, slicing, and built-in methods. Explain the outputs and any errors that
may occur.
12. Explain the use of built-in string methods like `title()`, `len()`, and `print()`. How do these
methods simplify string operations in Python? Provide examples and describe their outputs.
13. Describe the different ways to slice a string in Python. How can slicing be used to
manipulate and extract parts of a string? Provide detailed examples.
14. How do you handle string traversal in Python? Explain the differences between using `for`
loops and `while` loops. Provide examples and describe their outputs.
15. What are the common string operations available in Python? Describe concatenation,
PRIMUS PU COLLEGE, BANGALORE
repetition, membership, and slicing with examples for each. How do these operations enhance
string manipulation?
28
CHAPTER 9:
LISTS
9. What error occurs when you try to concatenate a list with a string?
12. What will the 'not in' operator return if the element is not present in the list?
17. How can you create an empty list using the list() function?
1. Explain with examples how a list can contain elements of different data types.
2. How can you use list indices to access elements in a list? Provide examples.
3. Describe the error and its reason when an index is out of range in a list.
6. Explain with examples the result of concatenating a list with elements of different data
PRIMUS PU COLLEGE, BANGALORE
types.
7. What is the result of replicating a list using the repetition operator? Provide an example.
8. How do the 'in' and 'not in' operators work in the context of lists? Provide examples.
10. How can you traverse a list using both a for loop and a while loop? Provide examples.
11. Explain with examples how to use the len() function with lists.
12. How can you create a list from a sequence using the list() function? Provide examples.
13. Describe the append() method and provide examples showing its usage.
14. What is the difference between the append() and extend() methods in lists? Provide
examples.
15. How does the insert() method work in lists? Provide examples.
16. Explain with examples how the count() method works in lists.
17. Describe how the index() method works and provide examples.
18. How can you remove an element from a list using the remove() method? Provide an
example.
30
19. What is the difference between the pop() and clear() methods in lists? Provide examples.
20. How can you sort a list using the sort() method? Provide an example.
1. Explain with detailed examples the various ways to access elements in a list using indices.
2. Describe with examples the mutability of lists and how it affects the contents of a list.
3. Provide a detailed explanation of list concatenation and the errors that may occur with
examples.
4. Illustrate with examples how repetition and membership operators work with lists.
6. Explain how to traverse a list using both for and while loops with detailed examples.
7. Provide a detailed explanation of the various list methods and built-in functions with
examples.
8. Describe how to use the append() and extend() methods in lists with detailed examples.
9. Explain the process of inserting elements at specific indices in a list with examples.
10. Provide a detailed explanation of the count() and index() methods in lists with examples.
11. Describe how to remove elements from a list using different methods with examples.
12. Explain with detailed examples the difference between the pop() and clear() methods in
lists.
13. Illustrate with examples how to sort a list using the sort() method and explain the optional
parameters.
14. Explain the concept of nested lists and provide examples of accessing elements in nested
lists.
31
CHAPTER 10:
3. How can you access the first element of a tuple named `tuple1`?
10. What is the result of concatenating the tuples `(1, 2, 3)` and `(4, 5, 6)`?
16. Write the code to count the number of occurrences of the element `10` in the tuple `(10,
20, 10, 30)`.
2. How can you concatenate two tuples and store the result in a new tuple? Provide an
example.
5. How can you use the `not in` operator with tuples? Provide an example.
9. How can you find the index of an element in a tuple? Provide a code example.
11. Describe how the repetition operator works when applied to a tuple with a single element.
12. How can you slice a tuple to get every second element? Provide an example.
13. Explain the use of the `len()` function with tuples and provide a code example.
14. How can you convert a list to a tuple? Provide a code example.
17. How can you reverse the elements of a tuple? Provide a code example.
33
18. Describe how to check if an element exists in a tuple.
19. How can you append multiple elements to an existing tuple? Provide a code example.
20. Explain the immutability of tuples and its significance in Python programming.
1. Describe in detail how to access elements in a tuple using both positive and negative
indexing with examples.
2. Explain the concept of tuple immutability with relevant examples and discuss its
implications.
PRIMUS PU COLLEGE, BANGALORE
3. How can you concatenate, repeat, and slice tuples? Provide examples and explain the
results.
4. Discuss the use of the `in` and `not in` operators with tuples, providing examples and their
outputs.
5. Explain the methods and built-in functions available for tuples in Python, including `len()`,
`tuple()`, `count()`, and `index()` with examples.
6. Describe the process of creating tuples with different types of elements, including single
elements, lists, and other tuples. Provide code examples.
7. How can you modify a list element inside a tuple? Explain with an example.
8. Discuss the use of the repetition operator with tuples, including its syntax and behavior with
different types of tuples.
9. How can you extend an existing tuple using the concatenation operator? Provide detailed
examples and explain the results.
10. Describe the slicing operation for tuples, including different ways to slice and access
subsets of tuple elements. Provide examples.
11. Explain the concept of nested tuples and how to access their elements. Provide examples
and discuss their applications.
12. How can you convert other data structures, such as strings and lists, to tuples? Provide
34
examples and explain the process.
13. Discuss the significance of tuple immutability in Python programming and its advantages
over mutable data structures like lists.
14. Provide a comprehensive explanation of tuple methods and built-in functions, including
their syntax, usage, and examples.
15. Describe how to reverse the elements of a tuple and explain the different ways to achieve
this. Provide code examples.
35
CHAPTER 11:
SOCIETAL IMPACT
2. What is a 'Netizen'?
5. What is cyberbullying?
3. Describe the role of personal computers and the Internet in spreading digital technologies.
10. Discuss the potential risks associated with social media usage.
15. How can one ensure their digital footprints are secure?
18. Explain the role of the Indian IT Act in regulating digital activities. 37
19. What are the best practices for protecting personal data online?
20. Discuss the importance of using strong passwords for online security.
2. Explain the significance of digital footprints and their implications for personal privacy.
5. Explain how cybercrime can be prevented and the role of laws in this context.
8. Discuss the concept of a digital citizen and the responsibilities associated with it.
9. Explain the measures one can take to protect their digital footprints.
11. Explain the role of digital technologies in enhancing productivity and efficiency.
12. Discuss the importance of data protection laws in the digital age.
13. Explain the concept of net etiquettes and their importance in online interactions.
14. Discuss the impact of digital technologies on personal and professional life.
15. Explain the significance of being a responsible netizen and the practices involved.
******************************
38