0% found this document useful (0 votes)
42 views32 pages

C++ Structures and Memory Management Questions

The document contains a comprehensive set of questions and tasks related to C++ programming, focusing on structures, pointers, memory allocation, and object-oriented programming concepts. It includes comparisons between data structures, memory allocation types, and programming paradigms, along with practical programming exercises. Each chapter is organized with questions that assess understanding of fundamental programming principles and data structures.

Uploaded by

ajinm006
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)
42 views32 pages

C++ Structures and Memory Management Questions

The document contains a comprehensive set of questions and tasks related to C++ programming, focusing on structures, pointers, memory allocation, and object-oriented programming concepts. It includes comparisons between data structures, memory allocation types, and programming paradigms, along with practical programming exercises. Each chapter is organized with questions that assess understanding of fundamental programming principles and data structures.

Uploaded by

ajinm006
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

Plus Two Question Paper Chapter Wise

Chapter 1
1. Represent a structure named student will attributes of different types and give the advantages of using
structure. (Scores : 3)
2. Choose the indirection or value at operator used in C++ from the options given below. (Score: 1)
(a) ++ (b) * (c) & (d) +
3. Write the syntax for the following : (Scores: 2)
(a) Declaration of pointer variable in C++.
(b) Dynamic memory allocation in C++.
4. Give the definition of structure data type in C++. Write down the syntax to define a structure in C++. (2)
5. Define the term self-referential structure. Give example. (Scores: 2)
6. Structure within a structure is termed as (Score: 1)
7. Dynamic memory allocation in C++ is done using _______ operator. (Score: 1)
8. In C++, the operator which is used for dynamic memory allocation is ________. (Score: 1)
9. Orphaned memory blocks are undesirable. How can they be avoided ? (Scores: 2)
10. Discuss problems created by memory leaks. (Scores: 2)
11. What is meant by memory leak in programming ? (Scores: 2)
12. Read the following C++ statements and find the output. (Scores: 2)
int ar [ ] = {15, 45, 34, 12, 23};
int * ptr = ar;
cout << * ptr << ‘\t’ ;
cout << * (ptr + 2) ;
13. How will you free the allocated memory? (Score: 1)
14. Define a structure called time to group the hours, minutes and seconds. Also write a statement that
declares two variables current-time and next-time which are of type struct time. (Scores: 2)
15. Read the following C++ statements. (Scores: 2)
int*p, a=5;
p=&a;
(i) What is the specialty of the variable p ?
(ii) What will be the content of p after the execution of second statement ?
16. Write a C++ program to store and print information (name, roll and marks) of a student using structure. 3
17. Write a program in C++ to input the total marks obtained by a group of students in a class and display
them in descending order using pointer. (Scores: 3)
18. Compare Arrays and Structures. (Scores : 3)
19. Compare the aspects of arrays and structures. (Scores : 3)
20. Differentiate between array and structure. (Scores : 3)
21. Run time allocation of memory is triggered by the operator_____ (Score: 1)
22. Represent the names of 12 months as an array of strings. (Scores : 2)
23. A structure can contain another structure. Discuss. (Scores : 2)
24. If 'ptr' is a pointer to the variable 'num', which of the following statements is correct?
(i) 'ptr' & 'num' may be of different data types.
(ii) If 'ptr' points to 'num', then 'num' also points to 'ptr'.
(iii) The statement num = & ptr is valid.
(iv) *ptr will give the value of the variable 'num’. (Score: 1)
25. What is the difference between structure and class? (Scores: 2)
26. State any two differences between static and dynamic memory allocation. (Scores: 2)
27. Name the data structure where memory allocation is done only at the time of execution. (Score: 1)
28. Identify the correct errors in the following code fragment:
Struct
{
int regno:
char name [20];
float mark = 100;
}; (Scores: 2)
29. What is self referential structure? (Score: 2)
30. What is the difference between the two declaration statements given below:
(a) int *ptr = new int (10);
(b) int *ptr = new int [10]; (Score: 2)
31. What is a Pointer in C++? Declare a pointer and initialize with the name of your country.(Score: 3)
32. Define a structure named 'Time' with elements hour, minute and second. (Scores: 2)
33. Read the following C++ code:
int a[5] = {10, 15, 20, 25, 30};
int *p = a;
Write the output of the following statements :
(a) cout <<* (p + 2);
(b) cout << p + 3; (Scores: 2)
34. What are the different memory allocations used in C++? Explain. (Scores: 3)
35. Consider the given structure definition.
struct complex
{
int real;
int imag;
};
(a) Write a C++ statement to create a structure variable.
(b) Write a C++ statement to store the value 15 to the structure member real. (Scores: 2)
36. Write the use of * and & operators used in pointer. (Scores: 2)
37. Distinguish between Array and Structure. (Scores: 3)
38. The__________operator is used to allocate memory location during run time(execution). (Score: 1)
39. What is a pointer variable in C++? Write the syntax or example to declare a pointer variable. (Scores: 2)
40. Write any two differences in static and dynamic memory allocation. (Scores: 2)
41. Write any two features of dynamic memory allocation. (Scores: 2)
42. Define structure. Write any two differences between structure and array. (Scores: 3)
43. Define Nested Structure with an example. (Scores : 2)
44. What is memory leak? (Scores : 2)
45. Compare Array and Structure in table form. (Scores : 3)
46. Which keyword is used to define a structure in C++ ? (Score : 1)
47. What is the use of structure data type in C++ programs ? (Scores : 2)
48. Explain the reason for memory leak in programming. (Scores : 2)
49. Compare static and dynamic memory allocations in C++. (Scores : 3)
50. (i) In C++, define a structure named ‘student’ with rollno, name and mark as its members. (Scores : 1)
(ii) State the advantages of using structures over arrays. (Scores : 2)
51. Compare the two types of memory allocations in C++. (Scores : 3)
52. Structure is a_______data type.
(a) Fundamental
(b) Derived
(c) User defined (Score: 1)
53. Define Structure. (Scores : 2)
54. What is meant by memory leak in C++ Programming ? (Scores : 2)
55. Find and correct error in the program code given below :
int a = 5;
float *p;
p=&a;
cout <<p; (Scores : 2)
56. If int num=5; write C++ statements to declare a pointer variable and store the address of num into it. (2)
57. The keyword used to define structure data type in C++ is__________ (Score: 1)
58. Which of the following operator is used for dynamic memory allocation ?
(a) * (b) & (c) new (d) delete (Score: 1)
59. What is meant by self-referential structure ? (Scores: 2)
60. How does static memory allocation differ from dynamic memory allocation ? (Scores: 2)
61. What is memory leak? (Scores: 2)
62. ________is the keyword to define a structure. (Score : 1)
63. Which operator is used to get the address of a variable in C++? (Score : 1)
64. What is Nested Structure ? (Scores : 2)
65. How will you free the allocated memory in C++? (Scores : 2)
66. Discuss any two reasons for memory leak. (Scores : 2)
67. In C++ ________ operator is used to get the address of a memory location. (Score: 1)

Chapter 2

1. Compare static and dynamic polymorphism. (Scores : 3)


2. Distinguish between Procedural Oriented Programming and Object Oriented Programming. (Scores : 2)
3. Write short note about polymorphism. (Scores : 3)
4. A program is implemented to find the area of a circle and area of a rectangle with two functions having
same name but with different signature.
Name the concept (Score: 1)
Explain this concept by writing the above program. (Scores : 2)
5. Differentiate between Data Abstraction and Data Encapsulation. (Scores: 3)
6. Default access specifier is
(a)private (b) public (c) protected (d) none (Score: 1)
7. Showing only the essential features and hiding complexities from Outside World refers to_____(Score: 1)
8. What is the difference between static and dynamic memory allocation ? (Scores : 2)
9. What is the object oriented programming paradigm ? Give any two advantages. (Scores: 3)
10. Briefly explain about any three concepts of OOP. (Scores: 3)
11. Define the following OOP terms : (Scores: 3)
(a) Data Abstraction
(b) Inheritance
(c) Function overloading
12. The ability of data to be processed in more than one form is called_______ (Score: 1)
13. What is Procedural Oriented Programming? What are the disadvantages of Procedural Oriented
Programming? (Score: 3)
14. The wrapping up of data end functions into a single unit is called_______ (Score: 1)
15. What is polymorphism ? Give an example. (Scores: 3)
16. Distinguish between Procedure Oriented Programming and Object Oriented Programming. (Scores: 2)
17. In inheritance the existing class is called__________. (Score: 1)
18. Write any two advantages of using object oriented programming language. (OOP) (Scores: 2)
19. What is polymorphism? Write short notes about the types of polymorphism. (Scores: 3)
20. _________are individual instances of class. (Score : 1)
21. Explain data abstraction with an example. (Scores : 2)
22. Define Polymorphism. What are its types? (Scores : 3)
23. Which type of inheritance has one base class and two or more sub-classes ? (Score : 1)
24. Write any two features of Object Oriented Programming. (Scores : 2)
25. What is polymorphism in OOP? Which are the two classifications of it? (Scores : 2)
26. _________protect data from unauthorized access.
(a) Polymorphism
(b) Encapsulation
(c) Data abstraction (Score: 1)
27. Write any two advantages of Object Oriented Programming. (Scores : 2)
28. What do you mean by Inheritance in C++? (Scores : 2)
29. Identify the type of inheritance that has two base classes and one derived class.
(a) Multi level inheritance (b)Multiple inheritance
(c) Hierarchical inheritance (d) Hybrid inheritance (Score: 1)
30. What is polymorphism in Object Oriented Programming ? Name the two types of polymorphism. (2)
31. How do the access labels of class data type implement data hiding? (Scores: 2)
32. The ability of a message or data to be processed in more than one form is called___________
(a) Polymorphism (b) Encapsulation
(c) Data abstraction (d) Inheritance (Score : 1)
33. Write any two advantages of using object oriented programming over procedure-oriented programming.
(Scores : 2)
34. List any four different forms of inheritance. (Scores : 2)
35. Write any two advantages of using OOP. (Scores : 2)
36. Explain different types of inheritances which use more than two classes. (Scores : 2)

Chapter 3

1. Attempting to insert in an already full stack leads to______ (Score: 1)


2. Name the different end points of the data structure queue. (Score: 1)
3. In ________ data structure, the element added atlast will be removed first. (Score: 1)
4. Explain how push operation is done in a stack. (Scores : 2)
5. Write an algorithm to perform POP operation in a stack. (Scores : 2)
6. Name any four operations on data structures. (Scores : 2)
7. What do you mean by stack overflow and stack underflow ? (Scores : 2)
8. Prepare a short note on linked lists. (Scores : 2)
9. Explain the situations “overflow” and “underflow” in data structure operations. (Scores : 2)
10. What are PUSH and POP operations in a Stack ? (Scores : 2)
11. Write notes on Linked list. (Scores : 2)
12. Briefly explain about POP operation in a STACK data structure. (Scores : 2)
13. Linked lists usually do not have the problem of overflow. Discuss. (Scores : 2)
14. Describe about QUEUE data structure. (Scores : 2)
15. Write two advantages of linked list data structure over arrays. (Scores : 2)
16. Consider the following cases: (Scores: 3)
(1) Paper cups are arranged on a dining table one above the other.
(2) Many people are waiting in a row to take tickets for a cinema.
Identify and compare the data structure that you know in connection with the above mentioned contexts.
17. Queue follows the______principle. (Score: :1)
18. How does Stack overflow and underflow occur? (Scores: 2)
19. Write a procedure to implement traversal operation in a linked list. (Scores: 2)
20. Name the data structure that follows LIFO principle.
(a) stack (c) array (b) queue (d) linked list (Score: 1)
21. Write an algorithm to perform insertion operation in a Queue. (Scores: 2)
22. Match the following: (Scores: 2)

23. Write an algorithm to add a new item into a stack. (Scores: 2)


24. What is data structure? How are they classified ? (Scores: 3)
25. Write short note on : (Scores: 3)
(a) Linked list
(b) Circular Queue
(c) Stack
26. Each node in a linked list has a________to the next node. (Score: 1)
27. Differentiate static and dynamic data structure. Give an example for each. (Score: 2)
28. Write an algorithm to add a new item into a queue. (Score: 3)
29. In a linked list, the link part of the last node contains_______data. (Score: 1)
30. List the different operations performed on data structures. (Scores: 2)
31. Write an algorithm to insert a new item into a Queue. (Scores: 3)
32. The__________data structure follows First In First Out (FIFO) principle. (Score: 1)
33. What is polymorphism, ? Which are the different types of polymorphism ? (Scores: 2)
34. Illustrate Linked List with suitable diagram. (Scores: 2)
35. Explain about operations performed on STACK data structure. (Scores: 3)
36. Write the algorithm to add an item in to a queue which is not empty? (Scores: 2)
37. Explain about the operations performed on stack data structure. (Scores: 3)
38. The process of combining all the elements of two sorted data structure is called________ (Score : 1)
39. Write the algorithm to perform POP operation. (Scores : 2)
40. Write a short note about Linked List. (Scores : 3)
41. What is the advantage of circular queue over linear queue ? (Scores : 2)
42. Write an algorithm to perform PUSH operation in a stack. (Scores : 3)
43. Explain any three operations performed on data structures. (Scores : 3)
44. What is linked list ? (Scores : 2)
45. Explain the situations 'overflow' and 'underflow' in some operations on data structures. (Scores : 3)
46. Write an algorithm to perform pop operation on a STACK. (Scores : 3)
47. Name the data structure that follows LIFO principle to organize data. (Score: 1)
48. Explain the situations 'overflow' and 'underflow' in data structure operations. (Scores: 2)
49. Prepare short note on linked list. (Scores: 2)
50. Write an algorithm to perform pop operation in a stack. (Scores: 3)
51. Name the data structure that follows FIFO principle.
(a) Stack (b) Queue (c) Array (d) Linked List (Score : 1)
52. List any two operations on data structures. (Scores : 2)
53. What is meant by STACK underflow? (Scores : 2)
54. Write an algorithm to perform a POP operation in a STACK. (Scores : 3)

Chapter 4

1. HTTPS stands for (Score: 1)


2. Name the attributes of <HTML> tag. (Score: 1)
3. How will you distinguish a static webpage from a dynamic webpage ? (Scores: 2)
4. Distinguish between static web page and dynamic web page. (Scores: 2)
5. Differentiate client side scripting and server side scripting. (Scores: 3)
6. Define the following terms : (Scores: 2)
(a) HTTPS
(b) Software ports
7. What is a tag ? What are the different types of tags in HTML ? (Scores: 2)
8. What are the features of Dynamic Web Page ? (Scores: 2)
9. Write HTML code for a webpage of an institution with the following features. It should have a marquee
welcoming users, a heading in different fonts and a picture and address of the institution. (Scores: 3)
10. Briefly explain about any two attributes of <BODY> tag. (Scores: 3)
11. Explain the different types of scripting languages. (Scores: 3)
12. (i) What is meant by attribute in HTML ? (1)
(ii) Write name and meaning of any two attributes of <BODY> tag. (2)
(iii) Write HTML code segment to display H 2 SO 4 . (2)
13. (a) How do container tags differ from empty tags ? Give an example for each type. (2)
(b) Explain the use of the following HTML tags. Also mention any one of its attributes. (3)
(i) <MARQUEE> (ii) <P> (iii) <FONT>
14. Classify the following scripting language into client side and server side:
ASP, PHP, JavaScript, VBScript (Scores : 2)
15. Write any one use of client side scripting. (Score: 1)
16. Fill the following table with appropriate points to distinguish between <P> tag and <BR> tag.

(Scores : 3)

17. Default port number for HTTPS is_________ (Score: 1)


18. What are the various types of client side scripting languages ? (Scores: 2)
19. Develop a web page of an organization with the following features : (Scores: :3)
(a) Has an image as background.
(b) Welcomes users with a marquee in attractive fonts.
(c) Displays address of the organization.
20. What is the difference between PHP and JavaScript. (Scores : 2)
21. Expand the name of the language which is used to develop webpage. (Score: 1)
22. Write an HTML code for a web page for your supermarket named "HELPLINE SUPERMARKET" with
the following details and features. (Scores: 5)
a) A heading followed by a paragraph of 2 sentences about the district using text formatting tags and
attributes.
b) Give postal address of the supermarket with phone number and email id.
c) Include a marquee that "Hurry up, 50% off for all purchase".
23. Explain and compare the features of any four scripting languages. (Scores : 5)
24. The space between content and cell border in a table can be changed using______attribute. (Score: 1)
25. Write the HTML code fragment to insert an image "[Link]" aligned in center of a webpage. (2)
26. List and explain any three attributes of BODY tag in HTML. (Scores: 3)
27. Name the different types of communication on the web and explain briefly. (Scores: 3)
28. What is a web server ? (Scores: 2)
29. Categorize the following tags in HTML appropriately.
<br>, <h1>, <img>, <table> (Score: 2)
30. What are scripts in web programming ? (Score: 2)
31. Differentiate Client-side Scripting and Server-side Scripting. (Score: 3)
32. Differentiate between static web page and dynamic web page. (Scores: 3)
33. Explain the various attributes of <BODY> tag. (Scores: 5)
34. An HTML document is saved with a name having__________extension. (Score: 1)
35. Write any one attribute of <SCRIPT> tag. (Score: 1)
36. Write any three differences between static and dynamic web pages. (Scores: 3)
37. Explain about container tag and empty tag with an example. (Scores: 2)
38. Write HTML code to display the following in a web page :
(i) A³B5
(ii) x>y (Scores: 2)
39. Which tag is used to insert an image into a web page ? (Score: 1)
40. Write an empty tag used in HTML. (Score: 1)
41. Briefly explain about web server. (Scores: 2)
42. Differentiate static and dynamic web pages. (Scores: 3)
43. The____________tag identifies the document as an HTML document. (Score: 1)
44. Briefly explain about any two attributes of <BODY> tag. (Scores: 2)
45. Write the use of any four tags given below.
<B>, <U>, <SUB>, <PRE>, <IMG>, <BR>. (Scores: 2)
46. What is the basic structure of an HTML document? (Scores : 2)
47. Explain about Link, Alink and Vlink. (Scores : 3)
48. Explain about following HTML tags with example :
(a) <BR>
(b) <HR>
(c) <S>
(d) <SUB>
(e) <STRONG> (Scores : 5)
49. Distinguish dynamic web page from static web page. (Scores : 2)
50. Prepare a short note on Cascading Style Sheet. (Scores : 2)
51. Write any two attributes of <FONT> tag and their effects in the web page. (Scores : 2)
52. What is the use of each of the following text formatting tags in HTML?
(a) <STRONG> (b) <SUP> (c) <U> (Scores : 3)
53. List any three features of web server. (Scores : 3)
54. How does client side scripting differ from server side scripting ? (Scores : 3)
55. Compare static webpage and dynamic webpage. (Scores : 2)
56. Write basic structure of an HTML file. (Scores : 2)
57. Mention the purpose of 'Alt' attribute in <IMG> tag. (Scores : 2)
58. A web page is to be developed for Kerala Tourism.
(a) Write the basic structure of HTML program to design the page. (Scores : 2)
(b) Which attribute will be used to give green colour to the background ? (Score : 1)
(c) Write the HTML statement to insert an image file "[Link]". (Score : 1)
(d)Write the HTML statement to scroll the text "God's own country". (Score : 1)
59. What is meant by empty tag in HTML ? Write any three empty tags. (Scores : 3)
60. Compare client-side scripting and server-side scripting. (Scores : 3)
61. Compare <Q> and <BLOCKQUOTE> tags. (Scores : 3)
62. Explain <SCRIPT> tag and its attribute. (Scores : 3)
63. Write HTML statements for displaying the following text :
(a) H₂O
(b) a² + b² (Scores : 2)
64. Match the following : (Scores : 2)
A B
(a) <BODY> (i) Size
(b) <A> (ii) Text
(c) <IMG> (iii) Name
(d) <HR> (iv) Src

65. List and explain the following tags with two attributes:
(a) <BODY>
(b) <MARQUEE>
(c) <FONT> (Scores : 3)
66. Distinguish between static web page and dynamic web page. (Scores: 3)
67. Explain the two types of communication over the web. (Scores: 2)
68. Write any two attributes used with <BODY> tag and specify their effects in the webpage. (Scores: 2)
69. Name any four text formatting tags in HTML and write down the use of each. (Scores: 4)
70. __________tag is used to include scripting code in an HTML page. (Score : 1)
71. Compare Static and Dynamic Web Pages. (Scores : 3)
72. Classify the following scripting languages into Client side and Server side.
JavaScript, PHP, VBScript, ASP (Scores : 2)
73. Compare container and empty tags in HTML. (Scores : 2)
74. List and explain any four text formatting tags in HTML. (Scores : 2)
75. List any two text formatting tags. (Scores : 2)
76. (a) Write the basic structure of an HTML document. (Scores : 3)
(b) Write the HTML code for the following : (Scores : 2)
(i) To display a scrolling text “welcome to my webpage” with 5 second delay in scrolling.
(ii) To display the text H2SO4.
77. Mention the purpose of 'src' attribute in <IMG> tag. (Scores : 2)
78. Write the basic structure of a HTML document. (Scores : 3)

Chapter 5

1. The <DD> tag gives_ (Score: 1)


2. Write HTML code to design the following table in a web page : (Scores : 3)
Class 2021 2022 2023
Plus ONE 65% 68% 63%
Plus TWO 87% 92% 90%

3. <DL> tag is used to create definition list in web pages. Write down the other tags used along with this
and mention each of their purpose. (Scores : 2)
4. List down the values of Type attribute used with <INPUT> tag to create any four types of input
control (Scores : 2)
5. Which of the following is used to divide the browser window into different sections ? (Score: 1)
(a) <DIV> (b) <FRAMESET> (c) <FRAME> (d) <FORM>
6. Which of the following is used for creating controls in a form in HTML ? (Score: 1)
(a) <TABLE> (b) <OL> (c) <INPUT> (d) <FRAME>
7. In HTML _______ tag is used to create hyperlink. (Score: 1)
8. The Hyper Reference of <A> is represented by_______attribute. (Score : 1)
9. List the values of Type attribute of <INPUT> tag. (Scores : 2)
10. Name any four attributes of <TD> tag. (Scores : 2)
11. Write the HTML code to display the following list : (Scores : 3)
1. Input devices
• Keyboard
• Mouse
• Scanner
2. Output devices
• Monitor
• Printer
12. Write the HTML code for the following :
13. (a) To create an email hyperlink to dhsekerala@[Link] (1)
(b) To insert a video file video 1.mp4 in the webpage (1)
14. Differentiate between cellspacing and cellpadding. (Scores : 2)
15. Create a table with 5 types of fruit names, use headings as serial number, name and cost (Scores : 5)
16. Create an Ordered list of five fruits numbered using small Roman numerals. (Scores : 5)
17. Rahim wants to connect his webpage to [Link].
Write the tag and attributes required for these. (Scores: 2)
18. Write an HTML code to display a user registration form as shown below: (Scores : 5)

19. A link to a particular section of the same document is called_______ (Score: 1)


20. Write an HTML code to display a list of hardware and software of a company in the following format:
I. Hardware
1. Cables
(i) UTP
(ii) Coaxial
(iii) Fiber optic
2. Storage Devices
(i) USB
(ii) HardDisk
(iii) Tape
II. Software
1. Application Software
(i) MS Office
(ii) Inventory Management System
2. System Software
(i) Compilers
(ii) Assemblers (Scores : 5)
21. Create a web page using frames for Tourism department showing list of tourist places in Kerala. When a
place is selected a detailed description should be available in a separate window.(Scores : 5)
22. Create a form that accepts information regarding a student. Fields necessary are name, age, class, sex,
roll number, hobbies and date of birth. Use appropriate form controls. (Scores : 5)
23. Which HTML tag is used to create ordered list? (Score: 1)
24. (i) Name the tag and attribute used for creating links in webpages. (Score : 1)
(ii) Write HTML code segment to create the target of the hyperlink to the website (Scores : 2)
[Link]
25. Write an HTML code for a web page to show the following details in blue background:
Components of a Computer
• Hardware
1. RAM
2. ROM
3. Hard Disk
• Software
1. System Program
• Application program (Scores : 3)
26. <FORM> tag contains some other tags to facilitate interaction between user and web page. Write any two
control tags and explain their mode of interaction. (Scores : 2)
27. Write the HTML code to create the following list :
(1) RAM
(2) Registers
(3) Mother Board (Scores : 3)
28. Explain the HTML tag <table> and its attributes. (Scores : 3)
29. Write short note about the tags used to create a table in HTML. (Scores : 3)
30. Write notes on the different tags used to divide the browser window into different sections. (Scores : 3)
31. Differentiate between ordered and unordered lists in HTML. (Scores : 3)
32. Identify errors in the following HTML code:
(a) <UL type="A" start = 5 >
(b) <h1><b> web programming </b></i></h1>
(c) <img src='[Link]' size = 50 >
(d) <a href="Contact@ [Link]">
(e) <frameset rows="50%. 25%, 25%">
<frame src="[Link]">
<frame src="[Link]">
</frameset> (Scores: 5)
33. NORESIZE is an attribute of__________tag. (Score: 1)
34. List and explain any three attributes of INPUT tag in HTML. (Score: 3)
35. Name and explain any two attributes of FORM tag. (Score: 2)
36. What are the different kinds of lists available in HTML ? Briefly explain about the tags used for each
kind. (Scores: 3)
37. Differentiate the following HTML code fragment : (Score: 1)
<A Href="[Link] [Link]"> Higher secondary <1A>
<A Href = Mailto: "[Link]"> SCERT <1A>
38. Write any one attribute of <FRAMESET> tag. (Score: 1)
39. The Hyper Reference of <A> is represented by_______attribute. (Score : 1)
40. Check the given HTML code. Fill the missing code to generate an output as shown in the figure.
<HTML>
<body>
<form name= 'loginForm'>
username:
<input type="text">
password:
...........................................
<input type=”............” value = "Login">
...........................................
</form>
</body>
</html> (Score: 3)
41. Write HTML tag for the following:
(a) Hyperlink to the website [Link]
(b) email link to dhseexam@[Link] (Scores: 2)
42. Describe the use of 'action' and 'method' attributes of <FORM> tag. (Scores: 2)
43. Write HTML code to display the following table in a web page. (Scores: 5)

44. What is a hyperlink? Explain about the different types of hyperlinks available in HTML. (Scores: 3)
45. Explain about various kinds of Lists in HTML with example. (Scores: 5)
46. Which attribute of <input> tag is used to make different kinds of controls like Text box, Radio button,
Submit button etc. ? (Score: 1)
47. Write the HTML code to create a web page which includes, the following table. (Scores: 3)
48. List three types of Lists supported by HTML. Explain about them (Scores : 3)
49. Differentiate between internal and external linking in HTML. (Scores : 2)
50. What is graphical hyperlink ? (Scores : 2)
51. <EMBED> tag is used to_________ (Score : 1)
52. Write the two tags associated with <DL> tag and the use of each in making a definition list. (Scores : 2)
53. What is hyper linking in a web page ? Name the tag used for it. (Scores : 2)
54. What is the use of Action attribute in <FORM> tag ? (Scores : 2)
55. Write HTML code to display the following list in a web page.
Higher Secondary Education
• Science group
• Humanities group
• Commerce group (Scores : 3)
56. List any three values provided to Type attribute of <INPUT> tag and specify the use of each. (Scores : 3)
57. What is meant by nesting of <FRAMESET>? Explain its need. (Scores : 3)
58. Write HTML code to create a table in a web page as shown below. (Scores : 5)

59. Explain different tags used with <DL> tag to create definition list. (Scores : 2)
60. List any two attributes of <FORM> tag. (Scores : 2)
61. Write an example for an email link using <A> tag ? (Scores : 2)
62. Compare 'type' attribute of <OL> tag and <UL> tag. (Scores : 3)
63. Explain the use of 'name' attribute in <A> tag. (Scores : 3)
64. List and explain any three attributes of <INPUT> tag in HTML. (Scores : 3)
65. Write the HTML code to create the following table : (Scores : 5)

66. Which attribute is used with <A> tag to specify the name of the web page to be linked ? (Score: 1)
67. The HTML tag used to specify a data item in a definition list in a web page is____________ (Score: 1)
68. Distinguish between Rowspan and Colspan used in the creation of tables in web pages. (Scores: 2)
69. Write an HTML code to create a table as shown below. (Scores: 3)

70. Explain the three types of lists that can be created in HTML documents. Name the tags required for each.
(Scores: 3)
71. __________attribute of <OL> tag enables to change the beginning value of the list. (Score : 1)
72. Link to a particular section of the same document is called__________ (Score : 1)
73. What is the use of <EMBED> tag in HTML? (Scores : 2)

Chapter 6

1. "TRUE AND FALSE are used to represent boolean values." State if the above given statement is correct
or not. (Score: 2)
2. Classify the following values in JavaScript into suitable data types. (Score: 2)
67.4, “true”, false, 0
3. Write any two built in – Functions used in JavaScript. (Score: 2)
4. List any three built-in functions of JavaScript and specify the use of each function. (Scores : 3)
5. Write a for loop in JavaScript to display the numbers from 1 to 10 in a web page. (Scores : 3)
6. Which are the data types in JavaScript ? Write down the keyword used to declare variable in JavaScript. 2
7. Write the names of the following : (Score: 2)
(a) Operator used for adding two strings in JavaScript.
(b) Function used in JavaScript to convert string type data containing numbers to number data type.
8. Explain the use of for loop with an appropriate example. (Scores : 3)
9. Write short note about Data types in JavaScript. (Scores : 3)
10. Briefly explain about any two control structures in JavaScript. (Scores : 3)
11. Discuss about different ways of adding JavaScripts to a webpage. (Scores : 3)
12. Name the following : (Scores : 3)
(a) Built-in function used in JavaScript to get the character at a particular position in a string.
(b) Built-in function in JavaScript used to check whether a value is number or not.
(c) Data type used in JavaScript for representing true or false values.
13. Write the uses of the following built in functions in JavaScript : (Scores : 3)
(a) typeof( )
(b) isNaN( )
(c) charAt( )
14. Consider the following JavaScript code to find the sum of numbers upto a given limit. (Scores : 3)
Fill the blanks.
_________ sumLimit( )
{
_________ sum = 0, i, limit;
limit =
_________ (document. [Link]. _________);
_________ (i = 1; i <= limit; i++)
sum += i;
[Link]. _________ = sum;
}
15. Develop a webpage that implements a JavaScript function that takes two numbers as input and displays
their product. (Scores: 2)
16. Give the function in JavaScript that converts a string type data containing numbers to number type.
(Score: 1)
17. Design a web page with form tag which accepts a number in a textbox and another textbox which should
display either odd or even. Write a function in JavaScript to check whether the number is odd or even. (2)
18. Develop a web page that accepts a number after validation and prints the factorial of it. (Scores: 2)
19. JavaScript provide a large number of built-in functions.
a) Name any two of them with an example. (Scores : 2)
b) The property which returns the size of the string is (Score: 1)
20. A virtual machine for executing JavaScript code is_____ (Score: 1)
21. Discuss about six built in functions used in JavaScript. (Scores : 3)
22. Design a procedure in JavaScript that takes two strings as input and displays the concatenated strings as
output. (Scores: 2)
23. State whether the following statements are true or false :
(a) JavaScript is the only client side scripting language. (Score: 1)
(b) JavaScript is a case sensitive scripting language . (Score: 1)
(c) The keyword used to declare a variable in JavaScript is VAR. (Score: 1)
24. The following code in HTML will call the Show Message () in JavaScript.
<input type="button" value="show" onClick="ShowMessage ();">
Modify the code to call the ShowMessage() when :
(a) User moves the mouse over the button.
(b) User presses any key on the keyboard. (Scores : 2)
25. Consider two strings "Education is the most powerful weapon" and "you can use to change the world".
Write JavaScript code to : (Scores : 2)
(a) Store these strings in two variables.
(b) Combine the two string variables.
26. Predict the output of the following code :
<HTML>
<BODY>
<SCRIPT Language="JavaScript">
var i, s=0);
for (i=1; i <=10; i+=2)
s +=i;
[Link]("sum = " +s);
</SCRIPT>
</BODY>
</HTML> (Scores: 2)
27. Identify suitable JavaScript data types for the following:
(a) "super computer"
(b) "true"
(c) 67.5 (Scores: 3)
28. Write the JavaScript code to display "Welcome to Kerala" inside the <h1>, tag as shown in the HTML
page.
<HTML>
<Body>
<Script lang="javascript">
<h1>.….</h1>
</Body>
</script>
</HTML> (Score: 2)
29. Consider a string "Gandhiji". Write JavaScript code fragment to do the following tasks.
(a) Convert the string to upper case.
(b) Find the length of the string.
(c) Display the 3rd letter in the string. (Score: 3)
30. Explain the two purpose of '+' operator used in JavaScript. (Scores: 2)
31. Explain any two data types in JavaScript. (Score: 2)
32. In client side scripting, processing is done by___________ (Score: 1)
33. Briefly explain the different ways in which a JavaScript code can be inserted in a web page. (Scores: 3)
34. Write JavaScript statements for storing an integer value to a variable. (Scores: 2)
35. Write the names and their use of any two built-in-functions in JavaScript. (Scores: 2)
36. Explain about any two control structures used in JavaScript with example. (Scores: 3)
37. Write JavaScript statements to create a number and string variables. (Scores: 2)
38. Briefly explain about any two built-in functions available in JavaScript. (Scores: 2)
39. What are the different control structures used in JavaScript ? Explain any one with an example. (3)
40. The JavaScript function given below is used to display the sum of digits of a given number. Fill in the
blanks to complete the function.
<Script language="JavaScript">
___________sum digit()
{ var n, s;
n = [Link].txt1._________
for (s = 0;_______; n = n/10)
s= s+____________;
[Link]=s;
}
</script> (Scores: 2)
41. What are the data types in JavaScript ? (Scores : 2)
42. Write any four comparison operators in JavaScript. (Scores : 2)
43. What are the mouse events in JavaScript ? Explain. (Scores : 3)
44. How will you declare a variable in JavaScript ? Give an example. (Scores : 2)
45. Write a JavaScript code to display the numbers from 1 to 100. (Scores : 2)
46. List three data types in JavaScript and give example for each. (Scores : 3)
47. Explain the working of the following JavaScript functions and specify the output of each.
(a) isNaN("254")
(b) "Covid-19".charAt(3)
(c) "MASK".toUpperCase() (Scores : 3)
48. Classify the following values in Java script into suitable data types ?
(27.4, false, "true", 25) (Scores : 2)
49. Write the uses of '+' operator in Java script. (Scores : 2)
50. Write the syntax of any three built-in functions in Java script. (Scores : 3)
51. Name the keyword used to declare a variable in JavaScript. (Score: 1)
52. Which of the following data is represented by Boolean data type in JavaScript ?
(a) 1 (b) TRUE
(c) "true" (d) true (Score: 1)
53. Write down the use of any two built-in functions in JavaScript with the help of examples.
(Scores: 2)
54. Write a JavaScript code to display the sum of the first 100 natural numbers. (Scores: 3)
55. The keyword used to declare a variable in JavaScript is_____________ (Score : 1)
56. Write the syntax and use of any two built-in functions used in JavaScript. (Scores : 2)
57. Compare 'OnKeyDown' and 'OnKeyUp' events of JavaScript. (Scores : 3)
Chapter 7

1. Name a protocol that provides secure file transfer. (Score: 1)


2. Give an example for FTP client software. (Score: 1)
3. What is web hosting ? (Score: 1)
4. Name the type of web hosting in which client leases the entire webserver and it’s resources. (Score: 1)
5. To transfer the files of the website from our computer to the web server ________software is used. (1)
6. What type of hosting will you use to support a government website ? Give its advantages. (Scores: 2)
7. Write short note about virtual private server. (Scores: 2)
8. Briefly explain the following terms : (Scores: 3)
(a) Free hosting
(b) CMS
(c) Responsive web design
9. Briefly describe the three methods of web hosting. (Scores: 3)
10. Briefly explain the need of applying responsive web design while developing websites today. (Scores: 2)
11. What is free hosting ? (Scores: 2)
12. Compare shared hosting and dedicated hosting. (Scores: 2)
13. List the factors to be taken into consideration while buying hosting space on a web server. (Scores: 2)
14. What type of web page designing is called responsive web design? (Scores : 1)
15. An example of a virtualization software is________ (Score: 1)
16. Discuss steps involved in registering the domain name of your school web site. (Scores : 2)
17. What is the advantage of using SFTP protocol in FTP software? (Scores: 3)
18. New domain names are checked in the database of ________before approving registration.(Scores : 1)
19. What is Responsive Web Design? What is its significance in modern computing devices? (Scores: 3)
20. VPS stands for__________ (Score: 1)
21. What is FTP client software ? Differentiate FTP and SFTP. (Score: 3)
22. Give the full form of VPS. (Score: 1)
23. Distinguish between shared hosting and dedicated hosting. (Scores: 3)
24. Write a note about different types of web hosting. (Scores: 3)
25. The IP address of a web server connected to a domain name stored in___________ (Score: 1)
26. Explain about various types of web hosting. (Scores: 3)
27. Write the full form of VPS. (Score : 1)
28. Write a short note about Content Management System. (Scores : 3)
29. Write any two limitations of free hosting. (Scores : 2)
30. What is the use of FTP client software ? Give an example. (Scores : 2)
31. Prepare short notes on three types of web hosting. (Scores : 3)
32. Write any two examples for FTP client software. (Scores : 2)
33. What is meant by free hosting? (Scores : 2)
34. Compare shared hosting and dedicated hosting. (Scores : 3)
35. The full form of VPS is
(a) Virtual Premium Service (b) Virtual Private Service
(c) Virtual Premium Server (d) Virtual Private Server (Score: 1)
36. Explain the merits and demerits of free hosting. (Scores: 3)
37. CMS stands for___________ (Score : 1)
38. What do you mean by Web Hosting ? Briefly explain shared hosting. (Scores : 3)

Chapter 8

1. Discuss the levels of data abstraction in DBMS. (Scores : 3)


2. Write down the four components of DBMS. (Scores : 2)
3. In RDBMS, number of rows in a table is known as ________. (Score : 1)
4. a) Define the following terms in RDBMS :
(i) Primary Key (1)
(ii) Attributes (1)
b) Briefly explain any three operations in relational algebra. (3)
5. The smallest unit of stored data in DBMS is called _________. (Score : 1)
6. Define the term data independence. What are the different levels of data independence ? (Scores : 2)
7. What is Data independence ? Explain different types of data independence. (Scores : 3)
8. (a) Write short note on three types of users of DBMS. (3)
(b) Explain the two unary operations in relational algebra. (2)
9. The number of attributes of a relation is called ________. (Score : 1)
10. List any four advantages of DBMS. (Scores : 2)
11. Write short note about any two operations on relational algebra. (Scores : 3)
12. (i) What is meant by Database ? (1)
(ii) List any four advantages of DBMS. (2)
(iii) Define the terms primary key and alternate key. (2)
13. Write short note about following terminologies in RDBMS : (Scores : 3)
(a) Relation
(b) Domain
(c) Foreign key
14. What are the major advantages of relational model over other data models? (Score: 1)

15. Classify the following operations in relational algebra into unary and binary operations :
(1) UNION (2) SELECT (3) SET DIFFERENCE (4) PROJECT (Score: 1)
16. Explain about SELECT, INTERSECTION and SET DIFFERENCE operations with example. (3)
17. Discuss advantages of DBMS. (Scores : 3)
18. Create a database schema for the relation VEHICLE. (Scores : 2)
19. _________in a table gives the complete data of a particular entity.
(a) Tuple (b) Attribute
(c) Domain (d) Schema (Score: 1)
20. In the ACCOUNT relation shown below

a) Identify the primary keys and candidate keys. (Score : 1)


b) Select all account holders with balance greater than 2,00,000. (Score : 1)
21. As part of your school project you are asked to create a relation STUDENT contains the details of 10
students with the fields RollNo., Name, Date of Birth and Score in IT. The constraints required are -
RollNo. is the primary key, name cannot be empty and score in IT should be less than 60. Based on this
table STUDENT answer the following queries in relational algebra.
(a) Display the details of students whose score is greater than 50.
(b) Display the name of students whose score lies between 45 and or equal to 60. (Scores : 5)
22. What is a primary key? What is the significance of primary key in a relation ? (Scores : 2)
23. Define the following terms:
(a) Relation
(b) Candidate key
(c) Tuples and attributes (Scores: 3)
24. Explain any two components of DBMS. (Score: 2)
25. Consider the following table :

(a) Identify the degree and cardinality of the given table.


(b) Identify a suitable primary key for the given table. (Score: 2)
26. List and explain different database users in DBMS. (Score: 3)
27. The number of rows in a relation is called_______ (Score: 1)
28. Explain different levels of data abstraction in DBMS. (Scores: 3)
29. Describe the 'union' and 'intersection' operations in relational algebra with suitable example. (Scores: 3)
30. Expand RDBMS. (Score: 1)
31. Find the Cardinality and Degree of following relation student. (Scores: 2)

32. Explain about UNION, INTERSECTION and SET DIFFERENCE operations in Relational Algebra.
(Scores: 3)
33. List any four advantages of DBMS. (Scores: 2)
34. Distinguish between the terms degree and cardinality used in RDBMS. (Scores: 2)
35. Consider the following relations :
Arts relation :
Adm no. Name Batch
3001 Manju Al
3009 Cristy C1
4010 Fazil B1
3090 Arun K2

Sports relation :
Adm no. Name Batch
4015 Arjun Bl
4010 Fazil B1
3005 Fathima C2

Find the result of following relational algebra operation.


(a) Arts∩ Sports
(b) Arts U Sports
(c) Sports - Arts (Scores: 3)
36. List down the components of DBMS. (Scores : 2)
37. Define Data Independence. (Scores : 2)
38. With suitable diagram, explain the levels of database abstraction. (Scores : 3)
39. Which are the four components of DBMS ? (Scores : 2)
40. If a table has 10 rows and 5 columns, what will be its degree and cardinality? (Scores : 2)
41. Explain three types of data abstractions in DBMS. (Scores : 3)
42. Observe the following tables in DBMS.

(a) Explain UNION operation with the help of the above two tables. (Scores : 2)
(b) What will be the result if INTERSECTION operation is performed on these tables ? (Scores : 2)
(c) Which operation is to be performed to get the list of students in Football from class 12A ? (Score : 1)
43. Who are the users of a data base ? (Scores : 2)
44. List any four advantages of DBMS. (Scores : 2)
45. Explain the different levels of data abstraction in DBMS ? (Scores : 3)
46. Define the following RDBMS terms:
(a) Degree (b) Cardinality (Scores : 2)
47. List and explain any two relational algebra operations. (Scores : 3)
48. The level of data abstraction in DBMS that is closest to the user is known as__________
(a) Physical level (b) Logical level
(c) View level (d) Conceptual level (Score: 1)
49. If a table STUDENT has 5 columns and another table TEACHER has 3 columns, the Cartesian product
STUDENT X TEACHER will have_____________columns. (Score: 1)
50. Explain any four advantages of DBMS. (Scores: 4)
51. List the four components of DBMS. (Scores: 2)
52. A_________ key is set of one or more attributes that can uniquely identify tuples within the relation.
(Score : 1)
53. Abstraction of the database can be viewed as__________levels.
(a) two levels (b) four levels
(c) one level (d) three levels (Score : 1)
54. List any four advantages of DBMS over conventional file system. (Scores : 2)
55. Discuss the following RDBMS terms:
(i) Tuple
(ii) Cardinality (Scores : 2)
56. Explain any two relational algebra operations. (Scores : 2)
Chapter 9

1. Give the correct syntax of the queries in SQL for the following:
(a) Renaming a table
(b) Deleting rows from a table
(c) Changing definition of a column
(d) Removing columns from a table
(e) Adding a new column (Scores : 5)
2. Identify the essential clause used with SELECT command in SQL. (Score: 1)
(a) FROM (b) WHERE (c) ORDER BY (d) GROUP BY
3. Give the output obtained with the pattern match "---" in the string "board". (Score: 1)
4. Briefly explain any three aggregate or column functions in SQL. (Scores : 3)
5. List any three column constraints of SQL and mention each of their purpose. (Scores : 3)
6. Assume that Employee is a table with the column names Emp_Code, Emp_Name, Designation and
Salary. Write SQL statements for the following : (Scores : 3)
(a) Display the details of all employees.
(b) Show the details of employees with salary 30000 and above.
(c) Find the number of employees whose designation is “Programmer”.
7. Write SQL queries for the following : (Scores : 3)
(a) To create a table with the following fields
Employee name
Designation
Basic pay
DA
Gross pay
(b) To display all employees whose Basic pay is more than 50,000.
(c) To update the DA of employees whose designation is manager to 20% of Basic pay.
8. The full form of DML is _________. (Score: 1)
9. What happens when we use DELETE FROM command without A WHERE clause ? (Score: 1)
10. If a table named "mark" has field's reg_No. Sub_Code and marks write SQL statements for the following:
(a) List the subject codes eliminating duplicates.
(b) List the marks obtained by students with subject codes 3001 and 3002.
(c) Arrange the table based on marks for each subject.
(d) List all the students who have obtained marks above 90 for the subject codes 3001 and 3002.
(e) List the contents of the table in the descending order of marks. (Scores : 5)
11. Distinguish between DDL and DML and give examples for each type. (Scores : 5)
12. Null values in tables are specified as "null". State whether true or false. (Score: 1)
13. Classify the following commands into DDL, DML and DCL in SQL : (Scores : 2)
Delete, Drop, Restore, Update
14. Write the differences between WHERE and HAVING clauses in SQL. (Scores : 2)
15. Which command is used to delete the table?
(a) delete from (b) drop table
(c) delete table (d) drop view (Score: 1)
16. Differentiate between CHAR and VARCHAR data types in SQL. (Scores : 3)
17. Explain any three aggregate functions in SQL. (Scores : 3)
18. Write short note about data types in SQL. (Scores : 3)
19. Name the most appropriate SQL data type required to store the following data :

(a) Name of a student (maximum 70 characters)


(b) Date of Birth of a student
(c) Percentage of marks obtained (correct to 2 decimal places) (Scores: 3)
20. Consider the given table SPORTS and write relational expressions for the following questions :

(a) Select the name of all players.


(b) Select name and goals scored by players who have scored more than 70 goals.
21. Write short notes on any three data types in SQL. (Scores: 3)
22. Write SQL queries based on the table STUDENT given below:

(a) Add a new field percentage to the table.


(b) Update percentage of all students. (Percentage = Total/3)
(c) Find the average of column total from student in commerce batch.
(d) Delete all students in Humanities batch.
(e) Find the number of students whose percentage is greater than 90. (Scores: 5)
23. Differentiate DELETE and DROP in SQL. Write the syntax of DELETE and DROP. (Score: 3)
24. Explain about different components of SQL. (Scores: 3)
25. Explain any two constraints used in SQL. (Scores: 2)
26. Briefly explain about any two column constraints used in SQL. (Scores: 2)
27. Write short note about constraints in SQL. (Scores: 2)
28. Distinguish between DROP and DELETE commands used in SQL. (Scores: 2)
29. Write short note about numeric and string data types of SQL. (Scores: 3)
30. Describe about any two DML commands of SQL. (Scores: 3)
31. Explain the rules for naming a table or column in SQL. (Scores : 3)

32. Write SQL queries based on the table PRODUCT given below:

(a) Set PID as a primary key.


(b) Display the Name, Price of the product having highest price.
(c) Change the Name of Supplier 'Exotic Liquids' to 'Singapore Foods'.
(d) Delete all products of supplier Tokyo Traders'.
(e) Display Pname and Supplier of all products in the ascending order of price. (Score: 5)
33. A table named 'student' with fields Roll no, Name, Batch, Mark, Grade is given. Write SQL statements
for the following:
(a) To display the details of all students in 'Science' batch.
(b)To display the details of these students having grade A or A+.
(c) To count the number of students in each batch.
(d) To change the grade of the student to A+ whose Roll no. is 50.
(e) Remove the details of student whose Roll no. Is 10. (Scores: 5)
34. Consider the given table 'Bill' and write SQL statements for the following questions :
(a) To update the values of the column Total with Unit price * Quantity.
(b) To list all tuples of Bill table.
(c) To insert new tuple to Bill table with the following values:
1118, "Brown Rice", "05-03-2020", 42, 6.
(d) To display maximum unit price.
(e) To Delete the row with Itemcode = 1008 from Bill Table. (Scores: 5)
35. Explain any three column constraints in SQL. (Scores : 3)
36. Define VIEW in SQL. How it is created ? (Scores : 2)
37. What is the advantage of using VARCHAR data type over CHAR data type in SQL ? (Scores : 2)
38. List any three constraints used with CREATE TABLE command and specify the use of each.
(Scores : 3)
39. Explain the use of any three DML commands in SQL. (Scores : 3)
40. Briefly describe three optional clauses used with SELECT command in SQL. (Scores : 3)
41. What is the difference between CHAR and VARCHAR data types in SQL ? (Scores : 2)
42. Expand the term SQL. Explain any two major components of SQL. (Scores : 3)
43. Compare DELETE and DROP commands in SQL. (Scores : 3)
44. What is meant by column constraints ? Write any 4 column constraints in SQL. (Scores : 3)
45. Explain the use of any three aggregate functions in SQL. (Scores: 3)
46. Distinguish between CHAR and VARCHAR data types of SQL. (Scores: 2)
47. What is the use of SELECT command in SQL ? Write down its syntax of usage. (Scores: 2)
48. List and explain any three aggregate functions in SQL. (Scores : 3)
49. Distinguish between CHAR and VARCHAR datatypes of SQL. (Scores : 2)
50. What is the difference between PRIMARY KEY and UNIQUE Constraints ? (Scores : 2)

Chapter 10
1. PHP is
(a) freeware
(b) proprietary
(c) both
(d) none (Score: 1)
2. Compare Indexed and associative arrays in PHP. (Score: 2)
3. Write a PHP program to display prime numbers below 50. (Scores : 3)
4. Explain the two types of arrays used in PHP. Give example for each type. (Scores : 3)
5. Explain briefly about any three core data types in PHP. (Scores : 3)
6. (i) In PHP, which symbol is used to begin a variable name ? (1)
(ii) What are the differences between echo and print in PHP ? (2)
7. Briefly explain about operators in PHP. (Scores : 3)
8. Write a PHP program to display the perfect numbers below 100. (Scores : 3)
9. An array in PHP is given as follows:
$family = array ("Father"=>"Ajay","Son"=>"Arjun", "Daughter"=>" "Archana");
Name the type of this array. Write a foreach loop that prints all the array elements. (Scores : 2)
10. What are the difference between GET and POST methods in form submitting? (Score: 2)
11. A web server that supports PHP on any operating system is_______ (Score: 1)
12. Discuss about special data types used in PHP. (Scores : 2)
13. Create an HTML form in PHP showing the difference of the GET and POST method. (Scores : 3)
14. Write a function in PHP to find the factorial of a number. (Scores : 3)
15. Write a PHP program to find the biggest of three numbers. (Scores : 3)
16. Study the following steps and determine the correct order :
(1) Open a connection to MySQL server
(2)Execute the SQL query
(3)Fetch the data from query
(4)Select database
(5) Close connection

(a) 4, 1, 2, 3, 5
(b)1, 4, 2, 3, 5
(c) 1, 5, 4, 2, 3
(d) 4, 1, 3, 2, 5 (Score: 1)
17. What are the differences between "echo" and "print" statements ? (Scores: 2)
18. What is the expansion of LAMP ? (Scores : 1)
19. Name the global variables used for passing data using HTTP GET and POST requests.(Scores: 2)
20. What is the difference between echo and print in PHP ? (Scores: 3)
21. Write the output of the following PHP code fragment.
function justAfun ($num)
{
$num $num * 5+ ($num + 6);
return $num;
}
echo justAfun(100); (Score: 2)
22. Name the different types of arrays in PHP. Explain with an example. (Score: 3)
23. In PHP, arrays that use string keys are called_______ (Score: 1)
24. List the core data types in PHP. (Scores: 2)
25. Write PHP code to display all even numbers below 100. (Scores: 3)
26. In PHP, the name of a variable starts with__________sign. (Score: 1)
27. Differentiate echo and print statements used in PHP. (Scores: 2)
28. Prepare a short note about different Data types used in PHP. (Scores: 3)
29. Differentiate echo and print used in PHP. (Scores: 2)
30. Differentiate indexed and associative arrays in PHP. (Scores: 3)
31. Expand LAMP. (Score : 1)
32. Compare PHP keywords 'echo' and 'print' in table form. (Scores : 2)
33. Describe three tier architecture of PHP. (Scores : 3)
34. Name the PHP operator to join two strings. (Score : 1)
35. Write the syntax of for loop in PHP and explain its working. (Scores : 3)
36. Explain two types of arrays in PHP. (Scores : 3)
37. PHP stands for________ (Score: 1)
38. Compare echo and print commands in PHP with suitable examples. (Scores : 3)
39. Write the uses of any three string functions in PHP with syntax. (Scores : 3)
40. The PHP operator used to join two strings is________. (Score: 1)
41. Variable in PHP begin with_________character. (Score: 1)
42. Compare echo() and print () functions in PHP. (Scores: 2)
43. Write any two string functions in PHP and their uses. (Scores: 2)
44. The dot(.) operator is used for__________operation in PHP. (Score : 1)
45. In PHP, a variable name starts with the___________sign. (Score : 1)
46. What are the differences between 'Echo' and 'Print' statements ? (Scores : 2)
47. List PHP Core data types. (Scores : 2)
Chapter 11

1. The computing technology in which a problem is broken into pieces and solved concurrently is
called____________ (Scores : 1)
2. Categorize the cloud service models. (Scores : 3)
3. Define Robotics. (Score: 1)
4. Give any three advantages and disadvantages of grid computing. (Scores : 3)
5. A widely used operating system for cluster computers is _________ (Score: 1)
6. Discuss advantages of grid computing, cluster computing and cloud computing. (Scores : 3)
7. NLP is ________.
(a) National Level Programming
(b) Natural Language Processing
(c) Neural Level Programming
(d) None of the above (Score:1)
8. What is ANN ? (Scores : 3)
9. What is Artificial Neural Networks? (Scores: 2)
10. Differentiate serial computing and parallel computing. (Scores: 2)
11. Briefly explain any two applications of computational intelligence. (Scores: 2)
12. Briefly explain different types of cloud services. (Scores: 3)
13. Compare serial and parallel computing. (Score: 2)
14. Write any two advantages of parallel computing. (Score: 2)
15. Write short note on cloud computing. (Score: 2)
16. Differentiate between serial and parallel computing. (Score: 2)
17. List any four applications of computational intelligence. (Score: 2)
18. Briefly explain any three application of computational intelligence. (Score: 3)
19. Explain the cloud service models. (Scores: 3)
20. List any four applications of computational intelligence. (Scores: 2)
21. Distinguish between parallel computing and serial computing. (Scores: 2)
22. Explain the advantages and disadvantages of cloud computing. (Scores: 3)
23. Write short note about any two applications of computational intelligence. (Scores: 2)
24. What is cloud computing ? Write any two services offered by cloud. (Scores: 3)
25. What are the advantages of distributed computing ? (Scores : 2)
26. Compare Serial Computing and Parallel Computing. (Scores : 3)
27. Name the application of computational intelligence that refers to metrics related to human characteristics
and traits. (Score : 1)
28. Write a brief note on three services of cloud computing. (Scores : 3)
29. The study of control and communication between man and machine is called________(Score: 1)
30. Write a short note on any three cloud computing services. (Scores : 3)
31. Distinguish between serial computing and parallel computing. (Scores: 2)
32. Briefly describe the three cloud service models. (Scores: 3)
33. Prepare short note on cluster computing. (Scores: 2)
34. Write any two advantages of grid computing. (Scores: 2)
35. What is Cloud Computing ? Write any two advantages of Cloud Computing. (Scores : 2)
36. What is meant by cloud computing ? Which are the three categories of cloud services ? (Scores: 2)
37. Compare 'Serial Computing' and 'Parallel Computing'. (Scores : 3)
38. Briefly explain any four applications of Computational Intelligence. (Scores : 4)

Chapter 12

1. Name a digital financial instrument. (Score: 1)


2. Legal right given to the creators for an original work is (Score: 1)
(a) Geographical indication (b) Trademark (c) Copyright (d) Industrial design
3. _________ is financial exchange between buyers and sellers in an online environment. (Score: 1)
4. Expand DDoS. (Score: 1)
5. Discuss about various IPRs with examples for each. (Scores: 3)
6. Give the goal of Computer forensics. (Score: 1)
7. Explain different categories of cyber crimes against government. (Scores : 3)
8. Briefly describe about any three types of Cybercrimes against individuals. (Scores : 3)
9. An Educational channel of Kerala Government is_______ (Score: 1)
10. Discuss about the schemes used in protecting intellectual property. (Scores : 3)
11. Textual information available in electronic format is called
(a) e-Text (b) e-Learning
(c) e-mail (d) e-Content (Score: 1)
12. Explain Infringement. (Scores: 3)
13. Explain about the types of interactions in e-Governance. (Scores: 3)
14. What is cyberspace? How cyberspace has influenced our life? (Scores: 2)
15. Define the following cyber crimes :
(a) Identity Theft (b) Harassment (c) Impersonation and cheating (Scores: 3)
16. How does ICT help students in learning ? (Score: 2)
17. Discuss any three information security laws for protecting information shared over cyber space.(Score: 3)
18. What is meant by GIS? Give an example. (Scores: 2)
19. Define Infringement. (Scores: 2)
20. List and explain any three e-learning tools. (Scores: 3)
21. Briefly explain about any two e-Learning tools. (Scores: 2)
22. What is e-Governance ? List the different types of interactions in e-Governance. (Scores: 3)
23. Expand ICT. (Score: 1)
24. Name the types of interactions in e-Governance. (Scores: 2)
25. Describe about any three e-Learning tools. (Scores: 3)
26. Getting exhausted with excessive information is known as__________ (Score : 1)
27. Write any two ethical practices can be followed when using internet. (Scores : 2)
28. List any three cyber crimes against individuals. Explain. (Scores : 3)
29. Give an example of Common Service Centre associated with e-Governance of Kerala. (Score : 1)
30. Write a short note on Infringement. (Scores : 2)
31. Write any three advantages of e-Learning. (Scores : 3)
32. A system of financial exchange between buyers and sellers in an online environment is called
____________ (Score: 1)
33. What is Intellectual Property Right? (Scores : 2)
34. Name the educational channel of Government of Kerala. (Score: 1)
35. What is cyberspace ? List any four cyber crimes against individuals. (Scores : 3)
36. Briefly describe any three ways of protecting Industrial Property Rights. (Scores: 3)
37. What is e-Governance ? (Scores: 2)
38. Briefly describe the three components of e-Governance. (Scores: 2)
39. Write a short note on 'Cyber Forensics'. (Scores : 3)
40. Define the term e-Governance. (Scores : 2)
41. List any three benefits of e-Governance. (Scores : 2)
42. What are the advantages of e-Business ? (Scores : 2)
43. Explain about e-Learning tools. (Scores : 3)
44. (i) Define the term e-learning. (1)
(ii) Briefly explain about any two e-learning tools. (2)
(iii) Discuss the advantages of e-learning. (2)
45. (i) Define E-Governance. (1)
(ii) Write any four benefits of E-Governance. (4)
46. (a) Briefly describe the three components of e-Governance infrastructure. (3)
(b) How do cyber crimes affect individuals ? (2)

Common questions

Powered by AI

Arrays are collections of elements of the same type stored adjacently in memory, ideal for situations where the exact number of items is known and operations are uniform. Structures, on the other hand, can hold multiple data types under a single entity, making them suitable for representing complex entities with multiple attributes. Arrays are limited to single data types and fixed sizes, while structures are more versatile and allow for user-defined data types .

A nested structure is a structure within another structure, allowing for modularity and organization of complex data. For example, struct Address { string city; int zipcode; }; struct Employee { string name; Address addr; }; Here, Address is nested within Employee, enabling structured representation of an employee's details along with their address .

Structures provide a way to group different data types under a single entity, which is beneficial for modeling real-world entities with multiple attributes, such as a student with a name and marks. In contrast, arrays can only store elements of the same type and are less suited to representing heterogeneous data. Structures offer a more flexible and comprehensive data representation .

A memory leak occurs when a program allocates memory by dynamic allocation and fails to deallocate it after use, leading to waste of memory resources. Memory leaks can degrade performance over time by consuming available memory, potentially causing system slowdowns or crashes due to exhaustion of available memory .

Declaring a pointer variable allocates memory for storing a memory address, not the data itself. Common pitfalls include uninitialized pointers leading to undefined behavior, dereferencing nullptr causing segmentation faults, and failing to properly deallocate dynamically allocated memory resulting in leaks. Proper initialization and usage of pointers are crucial to program stability .

Static memory allocation occurs at compile time, whereas dynamic memory allocation happens at runtime, allowing for flexible memory management according to program needs. Dynamic memory allocation using 'new' and 'delete' operators can efficiently use memory by allocating and deallocating as needed during runtime, which is beneficial when the size requirement is not known ahead of time .

Pointers store memory addresses and allow for dynamic memory management and manipulation. The '*' operator is used to access or modify the value at the memory address a pointer refers to, while '&' provides the address of a variable. These operations enable efficient data manipulation and memory uses in scenarios like arrays, linked lists, and dynamic memory allocation .

A self-referential structure is a structure that includes a pointer to an instance of the same structure type within it. This is commonly used in linked list implementations where each node contains data and a pointer to the next node in the list. Example: struct Node { int data; Node* next; }; .

To prevent orphaned memory blocks and memory leaks, developers should ensure that every 'new' allocation is paired with a 'delete'. Use of smart pointers from C++11, such as std::unique_ptr or std::shared_ptr, can automate and manage memory deallocation, thus reducing manual errors .

The 'new' operator allocates memory at runtime from the heap, whereas the 'delete' operator deallocates memory, freeing it back to the system. Example: int *p = new int; This allocates memory for an integer. delete p; This deallocates the memory pointed to by p, preventing memory leaks .

You might also like