0% found this document useful (0 votes)
81 views5 pages

Answer Any Number of Questions From (A) To (E) - Each Carries 1 Score. (5 X 1 5)

The document contains a model question paper for an exam with questions in C++, HTML, SQL, JavaScript and other subjects. It provides instructions to answer different types and numbers of questions carrying 1, 2, 3 or 5 scores. The questions assess knowledge of programming concepts like data types, operators, functions, control structures etc. for languages and basics of technologies like database, web development, mobile apps and ERP systems.

Uploaded by

37 Riya Thomas
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)
81 views5 pages

Answer Any Number of Questions From (A) To (E) - Each Carries 1 Score. (5 X 1 5)

The document contains a model question paper for an exam with questions in C++, HTML, SQL, JavaScript and other subjects. It provides instructions to answer different types and numbers of questions carrying 1, 2, 3 or 5 scores. The questions assess knowledge of programming concepts like data types, operators, functions, control structures etc. for languages and basics of technologies like database, web development, mobile apps and ERP systems.

Uploaded by

37 Riya Thomas
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/ 5

Model Question Paper 2021 March

Answer the following questions from 1 to 44 up to a maximum Score of 60.


1. Answer any number of questions from (a) to (e). Each carries 1 Score. (5 x 1 = 5)
(a)The basic building block of C++ program is called
Ans: Tokens
(b) Name the built-in function used to find the length of a string in C++.
Ans: strlen()
(c) Expand CMS
Ans: Content Management System
(d) Number of columns in a relation is called
Ans: Degree
(e) Name the technology used to send multimedia content using mobile phones.
Ans: MMS
Answer any number of questions from 2 to 21. Each carries 2 Scores. (20 x 2 = 40)
2. Name any four fundamental datatypes in C++.
Ans: int, char, float, double, void
3. Write the valid identifiers from the following: (a) abc12 (b) float (c)number (d) p-qr
Ans: abc12, number
4. What is header file ? Write an example.
Ans: A header file is a file with extension .h which contains C++ function declarations and macro
definitions. Example: iostream.h
5. Write the syntax of an array with an example.
Ans: Data-type arrayName [ size ] ;
Example: int a [10] ;
6. Write array declaration statement for the following:
(a) To store roll number of 60 students in a class.
Ans: int roll [60] ;
(b) To store percentage of total mark of 25 students.
Ans: float markper [25] ;
7. Differentiate abs( ) and pow( ) in C++.
Ans: abs( ) - Used to find the absolute value of an integer. E.g. abs(-5) = 5
pow( ) - Used to find the power of a number. E.g. pow(5, 2) = 52 . Returns 25.
8. Name the function used in C++ to
(a) convert uppercase character to lowercase.
Ans: tolower( )
(b) check whether the given character is digit or not.
Ans: isdigit( )
9. What is the difference between container tag and empty tag ?
Ans: Tags that require opening tag and closing tag are known as container tags. E.g. <HTML>
Tags that do not require closing tag is known as empty tag. E.g. <BR>, <IMG>
10. Write the use of <U> and <I> tag.
Ans: <U> Used for underlining a text
<I> Used for italicizing a text
11. Write the difference <SUB> tag and <SUP> tag.
Ans: <SUB> tag is used for subscripting a text and <SUP> tag is used for superscripting a text.
12. Write any two attributes of <BODY> tag.
Ans: Background, bgcolor
13. Differentiate Colspan and Rowspan of <TD> tag in html.
Ans: Colspan is used to specify the number of columns the data spans. Rowspan is used to specify the
number of rows the data spans.
14. What is the use of <A> tag ? Write the main attribute of <A> tag.
Ans: <A> tag is used for internal or external linking. Href is the main attribute.
15. List any two attribute of <TR> tag.
Ans: Align, bgcolor
16. Write any two data types in JavaScript.
Ans: Number - Represent all numbers
String - Represent any combination of characters
17. Write the use of <SCRIPT> tag in JavaScript. Write the use of language attribute of <SCRIPT> tag.
Ans: Java Script code is written inside the <SCRIPT> tag in an HTML document. Language attribute
specifies which scripting language to be used.
18. List the two numerical datatype in SQL.
Ans: int, dec
19. Write the difference between PRIMARY KEY and NOT NULL column constraints in SQL.
Ans: Most tables require a primary key. It can be considered as a combination of UNIQUE
and NOT NULL. NOT NULL specifies that the column cannot have NULL values.
20. Write the name of any two ERP Packages
Ans: Tally ERP, SAP
21. Write the name of any two mobile Operating System.
Ans: Android, iOS
Answer any number of questions from 22 to 41. Each carries 3 Scores. (20x3 = 60)
22. Identify and correct the errors in the following C++ statements, if any.
(a) cout<<75;
Ans: No error/ cout<< “75”;
(b) cout>> "welcome"
Ans: cout<< "welcome" ;
(c) cin>>a<<b;
Ans: cin>>a>>b ;
23. (a) What is string in C++ ?
Ans: Sequence of one or more characters enclosed in double quotes is known as a string in C++
(b) Name the input function used to accept string including white spaces.
Ans: cin.get( )/cin.getline( )/gets( )
(c) Name the header file required to use the above function.
Ans: cstdio is the header file of gets() / iostream is the header file of cin.get( ) and cin.getline( )
24. Compare call by value method and call by reference method.
Ans:
Call by value method Call by reference method

Ordinary variables are used as formal parameters Reference variables are used as formal
parameters

Actual parameters may be constants or variables. Actual parameters will be variables only.
The changes made in the formal arguments do The changes made in the formal arguments do
not reflect in actual arguments. reflect in actual arguments.

25. List any three attribute of <MARQUEE>


Ans: Height, width, bgcolor
26. What is the difference between static webpage and dynamic webpage?
Ans:
Static web page Dynamic web page
Contents and layout is fixed Contents and layout may change during run time
Never use databases Database is used
No Server side application Runs Server side application
Easy to develop Programming skills is required
27. Write the basic structure of an HTML document.
Ans:
<HTML>
<HEAD>
<TITLE> This is the Title </TITLE>
</HEAD>
<BODY>
Hello, Welcome to Web
</BODY>
</HTML>
28. Compare client side scripting and server side scripting.
Ans:
Client side scripting Server side scripting
Script is copied to the client browser Script remains in the server
Executed in the client browser Executed in the server
Used for validation of data at the client Used to connect to databases
Users can block Users cannot block
Browser type and version effects the Browser type does not affect script
script working working
29. Which tag is used to create ordered list in HTML ? Write the two attribute of it.
Ans: <OL> tag is used to create ordered list. Type and start are it's two attributes.
30. Write tag to create the following control using <INPUT> tag in HTML.
(a) Text Box
Ans: < Input type = "text">
(b) Password
Ans: <Input type ="password">
(c) Checkbox
Ans: <Input type = "checkbox">
31. Write HTML code to create the following list.
5.APPLE
6. MANGO
7.ORANGE
Ans:
<HTML>
<HEAD><TITLE> List </TITLE></HEAD>
<BODY>
<OL type="1" start = "5">
<LI> APPLE </LI>
<LI> MANGO </LI>
<LI> ORANGE</LI>
</OL>
</BODY>
</HTML>
32. Write the three logical operators with example in JavaScript.
Ans: && (AND), || (OR) and ! (NOT) are the three logical operators
E.g. var a=0, b= 1, c, d, e;
c = a && b ;
d = a || b ;
e=!a;
33. Write the use of the following built-in function in JavaScript.
(a)charAt( )
Ans: It returns the character at a particular position, and the position starts from 0.
(b) to UpperCase( )
Ans: It is used to convert the characters to uppercase letter.
(c) isNaN( )
Ans: This function is used to check whether a value is number or not. It returns true if the value is
not a number.
34. List the name of three types of webhosting,
Ans: Shared hosting, Dedicated hosting and Virtual Private Server.
35. What is free hosting ?
Ans: Free hosting provides web hosting services free of charge. There may be restriction on the
uploading file size. Free hosting service usually provide either their own sub domain or as a directory
service. E.g. blogspot.in
36. Write the name of any three users of database.
Ans: Database administrator, Application programmers and sophisticated users.
37. Define the following terms in DBMS.
(a) Entity
Ans: An entity is a person or a thing in the real world that is distinguishable from others. E.g.
student, bank
(b) Tuple
Ans: The rows in a relation are known as tuples.
(c) Attribute
Ans: The columns in a relation are known as attributes.
38. Write three DDL Commands in SQL.
Ans: CREATE, ALTER and DROP.
39. Write the Syntax of SELECT Command in SQL.
Ans :SELECT <column_name>[<column_name>,<column_name>,….] FROM <table_name> ;

E.g. SELECT admNo, name FROM Student;


40. Writ the name of any three functional units of ERP.
Ans: Financing Module, Manufacturing Module and HR Module
41. Briefly explain the following mobile communication services.
(a) SMS
Ans: SMS (Short Message Service) is a mobile communication service which allows sending text
messages. 160 characters are allowed in a single SMS.
(b) GPS
Ans: GPS (Global Positioning System) is also a mobile communication service. It is a satellite
based navigation system used to locate geographical position of an object.
(c) SmartCard
Ans: A smart card is a plastic card embedded with a chip or memory that stores and transacts
data. E.g. ATM card or credit card.
Answer any number of questions from 42 to 44. Each carries 5 Scores. (3x5 = 15)
42. Briefly explain the tokens in C++.
Ans: There are 5 tokens in C++ which are explained below.
C++ Tokens

Keywords Identifiers Literals Punctuators Operators


(Reserved words with (User defined (Constants that ( Special characters ( Symbols used
pre-defined meaning) words used for never change their used for specific for some
E.g.: if, case naming ) value during purposes) operations)
E.g. add, student execution) E.g. ; , {, ], *, ) E.g. +, -, <= , =
E.g. 35, a

43. What is the use of <table> tag ? Briefly explain any four attribute of <table> tag.
Ans: <table> tag is used to insert a table in an HTML file. Its attributes are
1. Border – Specifies border thickness. Zero means no border
2. Bordercolor – To assign colour to the border
3. Cellspacing – To set space between the cells
4. Cellpadding – To set space between content and cell border
44. Explain any five advantages of DBMS.
Ans:
1. Controlling redundancy
The storing of the same data in multiple locations ( redundancy ) can be avoided with the use of DBMS.
Redundancy makes memory wastage.
2. Data consistency
Data inconsistency (Multiple values for the same data) can be avoided using DBMS.
3. Efficient data access
Data can be accessed efficiently using the techniques available in DBMS.
4. Data integrity
Integrity refers to the overall completeness, accuracy and consistency of the data in the database. Data integrity
is imposed through the use of standard rules and procedures.
5. Data security
DBMS provides data security. Data security refers to the protection of data against accidental or intentional
disclosure or unauthorized modification or destruction by unauthorized persons.

Best wishes. T. Subair, HSST Computer Science, GVHSS Payyoli

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy