Nios Class 12th Computer Science Solved Previous Year Question Paper in English Medium
SOLVED PAPER – I
- Answer the following question briefly.
(a) What are the two main characteristics of a Computer system?
Ans Two main characteristics of a computer system:-
- Accuracy: Computer always give 100% rate result, it never give wrong result.
- Speed: Processing speed of computer is very fast.
(b) Name two input and output devices.
Ans Two Input and output devices are:
- Input Devices: Keyboard, Mouse.
- Output Devices: Monitor, Printers.
(c) What is ‘My Computer’?
Ans. My Computer: My Computer is the entry point of your computer’s folder structure and resources. My computer is the most important Desktop item.
(d) Explain the term EDI?
Ans. EDI stands for Electronic Data Interchange. EDl refers to Computer to Computer Exchange business document in a standard and agreed formed. EDI is the key to paperless office. EDI has become major means of business communication among large campaign in USA.
(e) What is Automatic Memory Management?
Ans. Java is Automatic Memory Management.
(f) What is FTP? List at least two objectives of FTP?
Ans. FTP: FTP stands for File Transfer Protocol, is an internet utility software used to upload and down load files.
Click here to Download Full PDF
List at Least two objectives of FTP.
- Provide reliable transfer of data over the network.
- Provides transfer statistics / diagnostics.
- 3. Answer the following question.
(a) What are the five basic activities performed in data processing?
Ans. (i) Collection: Collection of data include following activities.
(a) Origination the data.
(b) Measuring the data.
(c) Recording the data.
(d) Comparing the data.
(ii) Conversion: Once the data is collected, it is converted from its sources documents to a form that is more suitable for processing. Conversion of data includes the following activities.
(a) Coding the data for further classification.
(b) Classifying the data.
(c) Verifying the data.
(d) Transforming the data.
(iii) Manipulation: Once data is collector converted. It can be manipulated to obtain the information. Manipulation of data includes the following activities.
(a) Sorting the data.
(b) Calculating the data.
(c) Summarizing the data.
(d) Comparing the data.
(iv) Storing the Data: It includes the following activities.
(a) Storing the data on a stored device for future use.
(b) Retrieving the data for finding the or information.
Click here to Download Full PDF
(v) Communicating the Data or Information: In this process data or information is communicated to the appropriate department or person in the form of soft ‘copy and hard copy.
(b) List the two major function of operating system?
Ans. Major functions of operating system.
- It establishes an interface between the computer hardware and the user.
- It keeps track of users account to deny the unauthorized access of user.
- If assigns processors of different task being performed by the computer system.
- It allocates main memory and other storage areas to the computer system programs as well as users programs and data.
- Manages input/output operations.
- Interpred command and instructions given by the users.
- It allows the other system program and user program to execute.
- Establishes data security and integrity.
(c) Name the characteristics of Java programming language. Explain any one of them?
Ans. Following are the salient features of Java.
(a) Java is simple and small.
(b) Java is object oriented.
(c) Java’s complied code is profable.
(d) Java is architecture – neutral.
(e) Java is dynamic.
(f) Java has its own automatic memory management scheine.
(g) Java supports multi-threading.
(h) Java is robust.
(i) Java programs are secured.
(j) Java’s application can easily be distributed.
Click here to Download Full PDF
Explain:
- Java Simple and Small: Java is simple because the Complicated Features of C++like pointers, operator overloading and multiple inheritance are not included in Java. Thus it is easy to learn program in Java. Java’s component is small in size and complexity in comparison to other development tools.
- (a) What is topology? Name some common network topologies? Explain any of them?
Ans. Topology: The geometric arrangement of computers in a network is known as topology. Bus, Star and Ring are a few names of common topologies.
Name some common network topologies.
- Bus Topology
- Star Topology
- Ring Topology
Explanation of one.
Star Topology: In star topology each node is connected to a central files server though their independent and dedicated cable. The cables of all the nodes are connected to the file server though hub. Hub is a device that serves as the central point where cable of all the nodes is connected. Hub accumulates the information flow and then distributes them to various groups and users.
Star network is frequently used to connect one or more small computer or peripheral devices to a large local computer or CPU. Star topology or its variation is used by much organization in a time sharing system.
Click here to Download Full PDF
(b) Write a program using pointers to prints all the values of an integer array x having four values as 10, 20, 30, and 40. 10, 20, 30, 40.
Ans.
# include <10 stream.h>
Void main ()
Into a [5], i;
For (i=1;i<5++)
a [i] -5 x 1:
For (i=0; i=4, I ++)
C out << a: [i];
}
- Answer the following question,
(a) What is the purpose of size of operators in C++?
Ans. Size of ( ) operator is used to find the number of bytes, occupied by a variable or constant in the memory
(b) What are literals? Name the various types of literals in C++?
Ans. Literal are such indentifies, whose value do not change during the execution of a program, while literal or constant remains same at the time of program execution
Various types of Literals in C++ are:
(a) Integer Constants
(b) Character Constants
(c) Floating Constants
(d) String-Constants
(c) What is the function of logical operators in C++?
Ans. Logical Operators: Logical operators are used to combine two or more relational expressions. There are three logical operators in C++ and they are,
(i) && AMD operator.
(ii) :: OR operator
(iii) ! Not operator.
Click here to Download Full PDF
(d)Assume the variable total starts with the value 10. What will be the output of the following code?
(e) What is Modularity?
Ans. The act of partitioning a program into individual and independent modules or components is called modularity.
(f) What is data encapsulation?
Ans. Data encapsulation also known as information hiding. It is the process of combining both data and function that operates data, under a single unit and this unit is called a class. The data of a class only be accessed by the function of the class. Soft is not possible to access the data of a class directly. In this way data number of a class become safe are considered far away from accidental alteration.
- Answer the following question.
(a) What will be the value of variable x after the execution of the following program?
Ans.
Void main ( )
{
int x;
int digit = 0;
x=1
While (digit = 10)
{++x
++ Digit :}
C out<<x;
Value of variable 12
(b) Explain the operation of ‘if else statement in C++ with the help of a flow diagram?
Ans. This is an extended form of simple if statement. Using this statement user can explicitly define the statement to be executed if the condition is evaluated as false if there are single statements to be executed in both true and false case they may be written out enclosing in curly braces.
Format
If (Condition)
Statement l;
Else Statement 2;
e.g.
a = 25;
b = 15;
If (a >b)
C out<<” a is greater than b”.
Else
Cout << “b is greater than a”;
In the above example, if the condition is true then the statement written after eise will be executed.
Click here to Download Full PDF
(c) What is Token? List its various types?
Ans. Token: A Token is a group of character that conveys some meaning to the compiler when presented in a lien of program. C++ uses following types to token.
(i) Keywords
(ii) Identifiers
(iii) Literals
(iv) Punctuators
(v) Operators
(d) What is Polymorphism? How is it implemented in C++?
Ans. Polymorphism: Polymorphism is a concept oop, which employs that operations may behave ferently on different class. The behavior depends on the types of data used in the operation. For example the Operator may have a polymorphic behavior. It Produce a sum of given two numbers whereas if the operands are strings them it will produce a third ting by concatenating them.
(e) Find the errors if any in the following program code?
#include <10 stream.h>
Void main ()
{Int x;
Cin >> x;
For (int y = 0, y < 10, y++);
C out >> X+y:}
Errors: 6 – Multiple declarations for ‘y’.
6 – Declaration syntax error
7 – Illegal structure operation
8 – Expreation syntax
8 – for statement missing}
8 – Compound statement missing}
8 – ‘Y’ is assigned a value that is never used.
- (a): Identity the header file (s) for the following built in functions:
Ans. Put Char (): This function is used to display the inputted character on the screen. This function too is available in stdio.h header files. .
For example.
#include <10 steam.h>
#include
Void main ()
Char x;
X = get char ()
Put char (X)
(b) Distinguish between local and global variables.
Ans. The variables which are declared within the body of a function are called local variables. A local variable has a local scope, i.e., it can be used only in that function in which it is declared. The portion of the program in which a variable is retained in the memory is known as scope of a variable. A variable may be local to a function or a compound statement.
The variables which are declared outside any function are known as global variable. A global variable can be used any function. Generally global variable are declared at the top of the program i.e. before function definition.
(c) Write a structure specification for the “student’ having variables:
Roll no, Name, class and Date of Birth
Struet student
Char name [20];
Int cls, roll no, D.O.B
- Write a program that will accept a 1 character grade code and depending on this grade code the employee is display as per the following table.
Grade Code Pay A
- 50,000
- 30,000
- 0,000
# include <10 stream.h>
# include
Void main ()
char ch;
Cout << “/h Enter a character for greade;”:
Ch = get ch; switch (ch)
Case A’:
Cout<<“Salary is 50,000”;
break;
Case ‘B’;
Cout << “Salary is 30,000”;
Break;
Case ‘C’
Cout << “Salary is 10,000”;
Break;
Default:
Cout << “Invalid grade”,
Click here to Download Full PDF
- Answer the following questions:
(a) List the Features of enumerated data types.
Ans. An enumerated data type is that which can hold a finite list of value that a data type can take. An enumerated variable is declared by using enum key board for example, errúm month {Jan, Feb, March, April} enum days [Sun, Mon,Tue, Wed, Fri]
- (b) What is a class?
Ans. Class: A class is an abstraction the describes the properties important to an application and ignores the rest. Each object is said to be an instance of its class. Once a class has been defined, we can create any number of objects associated with the class.
(c) What is an object? How can it be created?
Ans. Object: An entity that has some characteristics is called an object In real world an object simply exists, but with in a programming language each object has a unique handle by which it can be uniquely referenced. In real world a book, a copy, a pen, a bus, a car, etc. are object but in a programming language a window, a button, a scroll bar etc. are object which are; of their relevant class. In programming world interact by sending message to one another and interact without having to know the details other’s data or code.
(d) What is Abstract class?
Ans. Abstract Class: An abstract class that be used to create objects. An abstract class acts a class and can be inherited by other class’s derived class.
(e) What are the different forms of inheritance?
Ans. Lateritance: Inheritance is a feat object-oriented programming that enables the sharing of attributes and operation among classes based on hierarchical relationship. By implementing the concept a new class can in all the features of existing class. The class from which a new class: A from the inherited feature, a new class may contain i own
features too. In this way every class contain the features of both the classes. Inheritance allows. Existing classes to be adapted to new application without the need for modification.
(f) What is a derived class?
Ans. By specifying the relationship of derived class with the base using the visibility mode, we can define a derived class. The new class is called derived class.
- Answer the following questions.
(a) Name two ways in which a file can be opened in C++.
Ans. (1) Using the Constructer (Function) of a class,
(ii) Using the member Function () of the class.
(b) What is the difference between X [2] and IX + 2]
Ans. X [2) – Arya *(X+2) – Pointer
(c) Name the input and output pointers used in the file operations.
Ans. Input pointers used in a file operation is write ()
Output pointers used in file operation is read ().
(d) Explain the file mode parameters:
(1) Ios:: app : The ios :: app mode allow only addition of record at the end of life.
(i) Ios:: ate: The ios : ate mode allow addition and modification of record anywhere in the fire.
(e) Define a 2 dimensional array X having 2 raws and 6 columnist of the int data type.
Ans. int X (2) [6]
Leave a Reply