0% found this document useful (0 votes)
3 views1 page

Class 12 Computer Science Pre-Test Exam

Uploaded by

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

Class 12 Computer Science Pre-Test Exam

Uploaded by

Ratna Rajya
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Shree Ratna Rajya Laxmi Secondary School

Pre-Test Exam Group B[5x6=30]


Class: 12 M Time: 1.30 Hrs F.M: 50 Short Questions
Subject: Computer Science P.M: 20 5. Explain the role of a system analyst.
Group A[1x4=4] 6. Explain software quality.
Multiple Choice Questions 7. Write a function to add any two numbers in JavaScript.
8. Explain features of object-oriented programming.
1. Which type of JavaScript language is ___ 9. Difference between the library and user defined function.
a. Object-Oriented 10. Explain switch case statement with example in JavaScript
b. Object-Based Group C [8x2=16]
c. High-level Long Questions
d. Abstraction 11.a. WAP to read the salary of 26 employees and count the
2. What is the extension of a C language source file? number of employees who are getting salary between 20 to 40
a. .c thousand. 5
b. .cpp b. What is string manipulation. Explain one string function. 3
c. .h 12. Define system development model. Explain prototype model.
d. .docx
The End
3. Which feature of OOP indicates code reusability?
a. Abstraction
b. Polymorphism
c. Encapsulation
d. Inheritance
4. Software Debugging is known as ______________.
a) identifying the task to be computerized
b) creating program code
c) creating the algorithm
d) Finding and correcting errors in the program code

Common questions

Powered by AI

A library function is a pre-written function provided by the programming language/library, such as printf() in C, which performs a specific operation. A user-defined function, on the other hand, is written by the programmer to perform particular tasks within the program. The key difference is that library functions provide standard operations optimized for performance, whereas user-defined functions offer customization based on the specific needs of the project .

The switch case statement provides a cleaner syntax for comparing the same expression against multiple cases, improving code readability and maintenance. Unlike if-else statements, switch case is more efficient and easier to follow when the number of conditions is large. However, it is limited by its reliance on the comparison of a single value and does not support complex logical conditions as if-else statements do .

Inheritance improves code reusability by allowing a new class to inherit properties and behavior (methods) from an existing class. This mechanism enables developers to create a hierarchy of classes that reuse common logic, reducing redundancy, enabling the application of polymorphism, and facilitating code maintenance and extension .

Encapsulation in object-oriented programming is the concept of bundling the data with the methods that operate on that data. This feature restricts direct access to some of the object's components and can prevent the accidental modification of data. Encapsulation leads to increased security, a clear separation of concerns, and the ability to change code implementation without affecting other parts of the program .

A system analyst plays a crucial role in software development, primarily responsible for understanding and documenting the requirements of a system. They act as a bridge between stakeholders and the technical team, analyze business requirements, translate them into technical specifications, and ensure that the final product meets the intended needs .

Software quality significantly impacts the development process as it ensures the software meets the specified requirements and functions reliably in different environments. High-quality software reduces maintenance costs, minimizes user complaints, and delivers value consistently .

Prototyping in the system development model involves creating an early model of a solution to validate and refine design concepts. It allows for frequent iterations based on user feedback, aids in capturing precise requirements, and helps in identifying potential problems early in development. Prototyping enhances the quality of the final product by ensuring it meets user needs and expectations before full-scale development begins .

Debugging is essential in the software development lifecycle as it identifies and resolves errors, improving code quality and reducing future maintenance. Effective debugging involves using techniques like code inspection, unit testing, and employing debugging tools to step through the code execution to isolate and fix anomalies. It ensures software reliability and functionality .

Object-based programming supports the use of encapsulated objects but lacks features like inheritance and polymorphism essential to object-oriented programming. While object-based design can simplify the architecture by focusing on data encapsulation, object-oriented design provides richer abstractions through the combination of encapsulation, inheritance, and polymorphism, offering enhanced code reuse, modularity, and scalability for complex software systems .

String manipulation involves performing operations on strings like concatenation, slicing, and formatting. A commonly used string function is addition or concatenation, which combines two or more strings end-to-end, enabling transformation and adaptation of text values to fit specific contexts or requirements .

You might also like