Plus One Computer Science Model Question Papers Paper 2

Plus One Computer Science Model Question Papers Paper 2 are part of Plus One Computer Science Previous Year Question Papers and Answers. Here we have given Plus One Computer Science Model Question Papers Paper 2.

BoardSCERT
ClassPlus One
SubjectComputer Science
CategoryPlus One Previous Year Question Papers

Answer all question from 1 to 5 
Plus One Computer Science Model Question Papers Paper 1

Question 1.
Abacus was discovered by the ………..
Plus One Computer Science Model Question Papers Paper 2

Question 2.
The name given to a storage location is known as ……………
Plus One Computer Science Model Question Papers Paper 2.1

Question 3.
………………….. statement takes the program out of the loop even though the test expression is true.
Plus One Computer Science Model Question Papers Paper 2.2

Question 4.
Name the header file required for a us­ing console I/O function.
Plus One Computer Science Model Question Papers Paper 2.3

Question 5.
Write the full form of FTTH.
Plus One Computer Science Model Question Papers Paper 2.4

Answer any nine questions from 6 to 16
Plus One Computer Science Model Question Papers Paper 2.5

Question 6.
On what factors, the action of the Turing machine depends?
Plus One Computer Science Model Question Papers Paper 2.6

Question 7.
Express the integer number -39 in sign and magnitude representation.

Plus One Computer Science Model Question Papers Paper 2.7
Plus One Computer Science Model Question Papers Paper 2.8

Question 8.
What is a control unit?
Plus One Computer Science Model Question Papers Paper 2.9

Question 9.
“It is better to give proper documenta­tion within the program”. Give a rea­son.
Plus One Computer Science Model Question Papers Paper 2.10

Question 10.
Mention the purpose of tokens in C++. Write names of any four tokens in C++.
Plus One Computer Science Model Question Papers Paper 2.32

Question 11.
What is a variable? List the two values associated with it.
Plus One Computer Science Model Question Papers Paper 2.11

Question 12.
Declare an array of size 5 and initialize it with the number 8, 7, 2, 4 and 6.
Plus One Computer Science Model Question Papers Paper 2.12

Question 13.
Consider the following C++ statements:
Plus One Computer Science Model Question Papers Paper 2.13
char word [20];
cin>>word;
cout<<word;
gets (word) ;
puts (word) ;
If the string entered is “HAPPY NEW YEAR”, predict the output and justify your answer.
Plus One Computer Science Model Question Papers Paper 2.14

Question 14.
What will be the output of the state­ment?
Plus One Computer Science Model Question Papers Paper 2.15

Question 15.
a. Define Intranet.
Plus One Computer Science Model Question Papers Paper 2.16
b. Write the structure of an email ad­dress.
Plus One Computer Science Model Question Papers Paper 2.17

Question 16.
How does a Trojan horse affect a com­puter?

Answer any nine questions from 17 to 27.
Plus One Computer Science Model Question Papers Paper 2.18
Question 17.
Fill in the blanks:
Plus One Computer Science Model Question Papers Paper 2.19
a. (o.625)10 = (……………. )2
b. (38o)10 = (………. )16
c. (437)8 = (………………………… )2

Question 18.
What are the methods of representing characters in computer memory?
Plus One Computer Science Model Question Papers Paper 2.20

Question 19.
Differentiate between freeware and shareware.
Plus One Computer Science Model Question Papers Paper 2.33

Question 20.
Write a C++ program to accept an in­teger number and print its reverse. (Hint: If 234 is given, the output must be 432).
Plus One Computer Science Model Question Papers Paper 2.21

Question 21.
What are the limitations of a flow-chart?
Plus One Computer Science Model Question Papers Paper 2.34

Question 22.
Raju wants to add value 1 to the vari­able ‘p’ and store the new value in ‘p’ itself. Write four different statements in C++ to do the task.
Plus One Computer Science Model Question Papers Paper 2.22

Question 23.
Compare and discuss the suitability of three loops in different situations.
Plus One Computer Science Model Question Papers Paper 2.23

Question 24.
Define an array. Also, write an algo­rithm for searching an element in the array using any one method that you are familiar with.
Plus One Computer Science Model Question Papers Paper 2.25

Question 25.
Write a program to find the sum and average of elements in a 2D array.
Plus One Computer Science Model Question Papers Paper 2.26

Question 26.
Write a program for swapping the val­ues of two variables.

Answer any two questions from 28 to 30
Plus One Computer Science Model Question Papers Paper 2.27

Question 27.
Write a program to combine two strings if they are different and find its length.

Question 28.
Briefly explain various types of memory
Plus One Computer Science Model Question Papers Paper 2.28

Question 29.
Explain the different jump statements available in C++.
Plus One Computer Science Model Question Papers Paper 2.29

Question 30.
How are computer network classified based on size?
Plus One Computer Science Model Question Papers Paper 2.30

Answer

Answer 1.
Mesopotamians

Answer 2.
variable

Answer 3.
break

Answer 4.
Stdio.h

Answer 5.
Fibre To The Home

Answer 6.
The action of a Turing machine is de­termined by:

  1. the current state of the machine.
  2. the symbol in the cell currently be­ing scanned by the head.
  3. a table of transition rules, which serve as the ‘program’ for the machine.

Answer 7.
The number is negative, so a first bit (MSB) is 1
7-bit binary equivalent of 39
= (100111)2
So -39 can be written as (1100111)2

Answer 8.
Control unit (CU) is responsible for ac­tivating and controlling the operations of the units of the computer. Each of the functional units has its own func­tion, but none of these will perform the function until it is asked to, this task is assigned to the control unit.

Answer 9.
Documentation is an on-going process. that starts in the problem study phase of the system and continues till its implementation and operation. We can write comments in the source code as part of the documentation. It provides suffi­cient information in a program to un­derstand its working. If the program is documented, it helps to understand the logic we applied. It helps the debugging process as well as a program modification at a later stage.

Answer 10.
Tokens or lexical units are the funda­mental building blocks of the program. C++ has five types of tokens. They are keywords, identifiers, literals, punc­tuators, and operators.

Answer 11.
Variables are the names given to memory locations. There are two values associated with a variable. They are R-value and L-value. The R-value represents the data and L­value represents the memory address of the variable.

Answer 12.

int A[5];
A[5] = {8, 7, 2, 4, 6};
OR
int A[5] = {8, 7, 2, 4, 6};

Answer 13.
The output will be,
HAPPY
HAPPY NEW YEAR
Because cin statement reads till a whi­te space. But the function gets( ) is a con­sole input function used to accept a string of characters including white spaces from the standard input device (keyboard).

Answer 14.
It displays ‘a’ on the screen. If an inte­ger value is given as the argument, it will be considered as an ASCII value and the corresponding character will be dis­played.

Answer 15.
a. A private network inside a company or organisation is called intranet.
b. The structure of an e-mail address is, user-name@domainname
eg., [email protected] Here username is vinu domain name is gmail.com

Answer 16.
It appears as a useful software but it is a harmful software and it will delete useful software or files. They allow malicious user access to confidential and personal information in the computer through the network without the knowledge of the user.

Answer 17.
Plus One Computer Science Model Question Papers Paper 2.31

Answer 18.
Characters are representing as binary codes in computer memory. Various codes are ASCII (American Standard Code for Information Interchange), EB­CDIC (Extended Binary Coded Decimal Interchange Code), ISCII (Indian Stan­dard Code for Information Interchange/ Indian Script Code for Information In­terchange) and Unicode.

Answer 19.
Freeware refers to copyrighted com­puter software which is made available for use free of charge for an unlimited period. In these, all the features are free. Shareware refers to commercial soft­ware that is distributed on a trial basis. It is distributed without payment and with limited functionality. All the fea­tures are not free.

Answer 20.

#include <iostream> 
using namespace std; int main( )
{
int num, c, digit, rev=o; 
cout<<“Enter the number: ";
cin> >num; 
c = num; 
while(num != o)
{
digit = num % 10; 
rev = (rev * 10)+ digit;
num = num/10;
}
cout<<“The reverse of the number is” 
< <rev; 
return o;
}

Answer 21.
1. Flowcharts are very time consum­ing and laborious to draw with proper symbols and spacing.
2. Owing to the symbol-string nature of flowcharting, any change or modifi­cation in the logic of the algorithm usu­ally requires a completely new flow­chart.
3. There are no standards determining the amount of detail that should be in­cluded in a flowchart.

Answer 22.
p = p + 1;
p+ + ;
++p;
p+=i;

Answer 23.
for loop:

  1. Entry controlled loop.
  2. Initialization along with loop defini­tion.
  3. No guarantee to execute the loop body at least once.

while loop:

  1. Entry controlled loop.
  2. Initialization before loop definition.
  3. No guarantee to execute the loop body at least once.

do….while loop:

  1. Exit controlled loop.
  2. Initialization before loop definition.
  3. Will execute the loop body at least once even though the condition is False.

Answer 24.
An array is a collection of elements of the same type placed in contiguous memory locations.
Algorithm for Linear search
Step 1: Start
Step 2: Accept a value in N as the num­ber of elements of the array
Step 3: Accept N elements into the ar­ray AR
Step 4: Accept the value to be searched in the variable ITEM
Step 5: Set LOC = -1
Step 6: Starting from the first position, repeat Step 7 until the last element
Step 7: Check whether the value in ITEM is found in the current position. If found then store the position in LOC and Go to Step 8, else move to the next posi­tion.
Step 8: If the value of LOC is less than o then display “Not Found”, else display the value of LOC + 1 as the position of the search value.
Step 9: Stop

Answer 25.

#include <iostream>
#include <cstdlib> using namespace std; int main()
{
int m, n, i, j, s = o, A[io][io]; float avg;
cout<<“Enter the order of matrix:”;
cin>>m>>n;
cout<<“Enter the elements of matrix\n”;
for (i=o; i<m; i++)
{
for (j=o; j<n; j++) cin > > A[i] [j ];
}
for (i=o; i<m; i++)
{
for (j=o; j<n; j++) s = s + A[i][j];
}
avg = s/(m*n);
cout<<“Sum of the elements of matrix:”<<s;
cout<<“Average of the elements of matrix:”< <avg;
}

Answer 26.

#include <iostream> 
using namespace std; "
void swapfint & x, int & y)
{
int t = x;
x = y;
Y = t;
}
int main()
{
int m, n; m = 10; n = 20;
cout<<“Before swapping m= ”<< m <<“ and n= ”<<n; swap(m, n);
cout<<“\nAfter swapping m= ”<< m <<“ and n= ”<<n; return o;
}

Answer 27.

#include <iostream>
#include <cstring> 
using namespace std; 
int main( )
{
char s1[2o], s2[2o], s3[2o]; 
cout<<“Enter two strings: ”;
cin>>si>>s2; 
int n=strcmp(s1, S2);
if (n= = o)
cout<<“\nThe input strings are same”; 
else	
{	
cout<<“\nThe input strings are not
same”;
strcpy(s3, s1); 
strcat(s3, S2);
cout<<“\nString after concatenation is: ”<<S3;
cout<<“\nLength of the new string is” j 
<<strlen(s3);	
}
return o;
}

Answer 29.
Memory is a place where we can store data, instructions, and results in temporarily or permanently. Memory can be  classified into two:
1. Primary memory: Also refers to the main memory. It holds data, intermediate results and results of ongoing jobs; temporarily. This includes mainly; three types of memory.

i.RAM (Random Access Memory): The microprocessor can read from and write to. The contents of RAM are lost when power is switched off. Therefore, RAM is a volatile memory.

ii. ROM (Read Only Memory): It can perform only read operations and its contents cannot be easily altered. ROM is non-volatile; the contents are retained even after the power is switched off. It is used to hold boot up program is known as Basic Input Output System (BIOS). This software runs when the computer is switched on or ‘boots up’. Different types of ROM are PROM (Programmable ROM), EPROM (Erasable Programmable ROM), EEPROM (Electrically Erasable Programmable ROM)

iii. Cache memory: It is a small and fast memory between the processor and RAM. Frequently accessed data, instructions, intermediate results, etc. are stored in cache memory for quick access. Cache is more expensive than RAM.

iv. Secondary memory:
Also known as auxiliary memory. It holds data and information permanently. Various devices in this type are a magnetic storage device (magnetic tape, hard disk), an optical storage device (Compact Disc (CD), Digital Versatile Disk (DVD), Bluray DVD), semiconductor memory (USB flash drive, flash memory cards).2 9. The statements that facilitate the transfer of program control from one place to another are called jump statements.
They are:

  • return statement: It is used to transfer control back to the calling program or to come out of a function.
  • goto statement: It can transfer the program control to anywhere in the function. The target destination of a goto statement is marked by a label, which is an identifier.
  • break statement: When a break statement is encountered in a program, it takes the program control outside the immediately enclosing loop (for, while, do…while) or switch statement. Execution continues from the statement immediately after the control structure.
  • continue statement: It is used for skipping over a part of the code within the loop-body and forcing the next iteration. The break statement forces termination of the loop, but continue statement forces next iteration of the loop.
  • exit() function: It terminates the pro­gram itself. And can be used in a pro­- gram only if we include the header file process.h.

Answer 30.
1. Personal Area Network (PAN): It is used to connect devices situated in a small radius by using guided media or unguided media.

2. Local Area Network (LAN); This is used to connect computers in a single room or buildings of one location by using twisted pair wire or coaxial ca­ble. Data transfer rate is high and the er­ror rate is less.

3. Metropolitan Area Network (MAN): It is a network spread over a city. MAN have lesser speed than LAN and the er­ror rate is less. Here optical fiber cable is used, eg., Cable TV network.

4. Wide Area Network (WAN): This is used to connect computers over a large geographical area. It is a network of net­works. Here the computers are con­nected using telephone lines or Micro­wave station or satellites. The error rate in rate in data transmission is high, eg., internet.

We hope the Plus One Computer Science Model Question Papers Paper 2 help you. If you have any query regarding Plus One Computer Science Model Question Papers Paper 2, drop a comment below and we will get back to you at the earliest.