Professional Documents
Culture Documents
1st Sem BCA Question Bank
1st Sem BCA Question Bank
72742/GA - IV - J1/2014/Admn
UNIVERSITY OF CALICUT
Abstract
BVoc programme in Software Development- under Modified BVoc Regulations 2014 – Question
Bank for 1st and 2nd Semester- implemented w.e.f 2014 admission onwards - Orders issued
G & A - IV - J
U.O.No. ___________ Dated, Calicut University.P.O, 14.09.2015
Usha K
Deputy Registrar
To
CE, University of Calicut
Pareekshabhavan
Digital Wing
Forwarded / By Order
Section Officer
Fundamentals of Computer and Programming in C-Question Bank
UNIVERSITY OF CALICUT
THENHIPALAM, CALICUT UNIVERSITY P.O
DEGREE OF
BACHELOR OF VOCATION (B.VOC)
IN
SOFTWARE DEVELOPMENT
QUESTION BANK
(FOR THE STUDENTS ADMITTED FROM THE ACADEMIC YEAR 2014–15 ONWARDS)
UNDER THE
FACULTY OF SCIENCE
QUESTION BANK
SEMESTER I
C. Marks Hrs/wk
No Course Code Course Name Credit
Int Ext Tot T P Tot
UNIT 1
1. A computer program that converts assembly language to machine language is
a)Compiler b)Interpreter c)Assembler d) Comparator
2. Which access method is used for obtaining data form RAM
a) Direct b) Sequential c) Random d) All of the above
3. Which computer has been designed to be as compact as possible?
a) Mini b) Super computer c) Micro computer d) Mainframe
4. The symbols used in an assembly language are
a) Codes b) Mnemonics c) Assembler d) All of the above e) None of the above
5. In computer system scanner is _____ device
A. Input B. Output C. Both D. None
6. Which of the following is not a computer hardware
A .Mouse B. Monitor C. Printer D. Antivirus
7. Which of the following memory needs refreshment?
A. DRAM
B. SRAM
C. NV RAM
D. None of the above
8. What does IDE stand for?
a.) Integrated Development Environment
b.) Integrated Design Environment
c.) Interior Development Environment
d.) Interior Design Environment
e.) None of the above.
9. Which of the following is a correct notation for a comment?
A. */ Comments */
B. ** Comment **
C. /* Comment */
D. { Comment }
10. A variable is/are
a. String that varies during program execution
b. A portion of memory to store a determined value
UNIT 11
37. Write the correct hexadecimal constant:
(a) 0x7f (b)-123 (c) $2000 (d) 0x2 (e) 0.65e4
38. Define data types?
39. If a variable has been declared with file scope, as above, can it safely be accessed globally
from another file?
a) yes; it can be referenced through the register specifier.
b) no; it would have to have been initially declared as a static variable.
c) no; it would need to have been initially declared using the global keyword.
d) yes; it can be referenced through the publish specifier.
e) yes; it can be referenced through the extern specifier.
40. How do print()’s format specifies %e and %f differ in their treatment of floating-point
numbers?
a) %e always displays an argument of type double in engineering notation; %f always
displays an argument of type double in decimal notation.
b) %e expects a corresponding argument of type double; %f expects a corresponding
argument of type float.
c) %e displays a double in engineering notation if the number is very small or very large.
Otherwise, it behaves like %f and displays the number in decimal notation.
d) %e displays an argument of type double with trailing zeros; %f never displays trailing
zeros.
e) %e and %f both expect a corresponding argument of type double and format it
identically. %e is left over from k&r c; standard c prefers %f for new code.
41.Which one of the following is not a valid identifier?
a. __ident
b. auto
c. bignumber
d. g42277
e. peaceful_in_space
42. The origin of c is closely related to the development of ………. operating system.
43. What is the importance compiler in C?
44. How does variable definition differ from variable declaration?
a) Definition allocates storage for a variable, but declaration only informs the compiler as
to the variable’s type.
b) Declaration allocates storage for a variable, but definition only informs the compiler as
to the variable’s type.
c) Variables may be defined many times, but may be declared only once.
d) Variable definition must precede variable declaration.
e) There is no difference in c between variable declaration and variable definition.
f) Write the syntax of conditional operator?
45. What is a modulus operator? What are the restrictions of a modulus operator?
46. C language was developed in the ……..... By…….at …….. Laboratories.
47. Which header file is used to define mathematical function?
48. State the difference between “=” and “==”?
49. What is the use of char types?
50. Write the use of comma operator?
51. Write the syntax of special data type?
52. Difference between %c and %s?
53. Define void?
54. Which header file is used to input and output functions?
55. Correct the statement:
scanf (%d%c%s&a%f, &b&c;&d’)
56. Write the syntax of putchar and puts?
57. Write any two white space character?
58. What is the use of printf function?
59. Mention the use of ?: operator?
60. Why and when we use the #define directive?
61. Why and when we use the #include directive?
62. A global variable is also known as ………….variable.
63. The expression containing all integer operands is called …………..expression.
64. Write an algorithm for find a given number is negative or positive.
65. Briefly explain symbolic constants.
66. Show the difference between ‘break’ & ‘continue’ with example.
67. Explain strncpy(), strncmp() .
68. What are the parts of the function?
69. What is local and global variable?
70. How will you declare and initialize a pointer?
71. What are the built-in methods for file manipulation?
UNIT 111
75. Which of the following is a looping construct
A. Simple If B. Else If ladder C. For statement D. Switch Case
76. What will be the output of the following program
main() {
inti=4,Z=12;
if(i==5 || Z >50)
printf(“hi, i is 5 and Z is > 50”);
else
printf(“hi, i is not 5 and Z is < 50”);
}
UNIT IV
105. Which of the following keyword is used to pass the control back from a
function
a. getch
b. return
c. goto
d. goback
111. When compiler accepts the request to use the variable as a register?
a. It is stored in CPU registers
b. It is stored in main memory
inti=90,*p=&i;
fun(&i);
printf(“%d”,*p);
}
void fun(int *p) {
int j=3;
p=&j; printf(“%d”,*p);
}
UNIT 1
1. Define transistor destiny?
2. Define registers?
3. What you meant by first generation language?
4. Explain Assemble language?
5. Define Assembler?
6. What are ports and connectors?
7. Define memory?
8. Write a note about the comparison between RAM and ROM?
9. What is Bubble memory?
10. Write a note about merits and demerits of Hard disk?
11. Define master file?
12. Explain Key board?
13. Explain Mouse?
14. Explain Light pen?
15. Explain Track ball?
16. Explain Barcode reader?
17. Explain Digital camera?
18. What is OMR?
19. What is MICR? Explain with two disadvantages?
20. Explain Image scanner?
21. Explain Smart card?
22. What is CRT?
23. Explain LCD?
24. Define computer.
25. What is meant by main memory?
UNIT II
75. Write the short note of history of c?
76. List of flowchart rules?
77. List any four features of c language?
78. What is an operators in c?
79. What is a global variable?
80. What is a local variable?
81. How local variable and local variable declared in C?
82. What is a use of main function in C?
83. List any 3 header files in c with example?
84. Difference between float and variable?
UNIT III
UNIT IV
UNIT V
171. What do you mean by Command line arguments? Explain with example.
172. Difference between text file and binary files.
173. What is pointer variable?
174. Write the syntax to declare a pointer type variable.
175. What is pointer value and address?
176. Explain about void pointer?
177. What is “value at “operator and “address of” operator?
178. What is meant by dynamic memory allocation?
179. What are macros?
180. What are the I/O operations on files?
UNIT 1
UNIT II
UNIT III
43. Write a program to read a number and check whether the number is
odd or even?
44. Write a program to find whether a year is leap year or not?
45. Write a program to find the largest and smallest among three numbers?
46. Write a program to display Day name using Switch statement?
47. Write a program to accept an operator and find the values?
48. Write a program to check whether the given number is negative or not?
49. What is looping? What are the advantage of looping?
50. Distinguish between while and do while loop?
51. Write a program to display the odd number from 1 to 100 using while loop?
52. Write a program to find reverse of number?
53. Write a program to find the sum of the given n numbers?
54. Write a program to find the largest number from the given n numbers?
55. Write a program to print n Fibonacci numbers?
56. Write a program to print the number. Square and cube of even numbers up to N using
for loop?
57. Difference between the statement Break and continue with example?
58. What is the purpose of do—while statement? How does it differ from the while? State
with an example.
59. Write a program to generate the following patterns.
UNIT IV
UNIT IV
107. What are the 3 modes of data transmission used in FTP? Explain.
108. What is FTP? Explain with example.
109. Which are the applications used in Internet?
110. List out protocols.
111. What are the advantages of E-mail?
112. List out 5 E-mail mailing. Explain any one.
113. What are the various steps to connect internet?
114. Explain web browsers?
115. What are search engines?
116. Explain basic file operations
117. How we can define and open a file?
118. Explain getc(),putc(),getw() and putw().
119. What is command line argument? Explain.
120. What is a pointer?Explain.
121. What is dynamic memory allocation?
UNIT 1
UNIT II
12. Explain the structure of C programming.
13. What are the important characteristics of C language?
14. Write a program to find factorial of a number with algorithm and flowchart.
15. Explain the different types of operators used in C.
16. Explain the output and input functions used in C.
17. Why is C language called as the mother of all programing languages? Explain.
18. For what purpose algorithm and flow charts are used? Explain each of them with an
example.
19. Explain different C -operators.
20. Explain operator precedence and associativity of operators in C.
21. What is meant by type conversion? What are explicit and implicit type conversion
rules? Explain with suitable examples.
22. Explain data types in detail.
UNIT III
23. Explain about control or decision making statement?
24. What is If statement and explain different form of IF statement? Illustrate with example.
25. Explain break and continue statement with example?
26. Explain the for loop statements with example? Explain the Loop statements
27. Write a program to perform matrix addition and multiplication using switch case
statement.
28. What is one dimensional, two dimensional and multi dimensional arrays? Write a
program to transpose a 2D array.
29. What is a string? Explain various string manipulation functions with suitable example
UNIT IV
30. Explain how function is defined. What are the different parameter passing techniques?
Explain various categories of functions. How function is different from recursion?
31. What is nesting of functions? What is meant by recursion? Write a program to
demonstrate recursion with the explanation.
32. What are the differences between structures and unions? Write two programs to
demonstrate how structure and unions are created in C.
33. How arrays of structures and arrays within structures are handled in C? Explain with
suitable examples.
34. Write a program to produce calculator using function.
UNIT IV
35. Write a program to determine the length of a given string using pointer.
36. What is the use of array and string in pointer? Give a brief note.
37. Write an example to create a text FILE, write the content and re-write FILE.
38. A. What is meant by random access to a file? Explain with example.
B. Explain dynamic memory allocation with example
C. Define macros. Explain simple macro and macros with arguments.
39. How we can open and close a file? Explain different operations on files.
40. What is a pointer? How a 1D array and 2D array are passed to function using pointers?
Explain with example.
41. Write a program to find sum of N natural numbers using a different loops.
42. Explain concept of modularization with an example.
43. Write a program showing file manipulation function.
44. Explain PC’s functional components and interconnection with suitable diagrams.
45. Explain components & functions of CPU along with basic operational concept.
46. Write algorithm, flowchart and C program to print sum and average of 3 numbers
******************************
******************************************
QUESTION BANK
1. Simple C Programs
2. C Programs using Loops and decisions
3. Programs involving Arrays (Searching, sorting, merging etc.)
4. Two dimensional arrays (Matrix operations)
5. String Manipulations
6. Programs involving Structures (complex number operations record creation
etc)
7. Programs involving Union
8. Programs involving functions and Recursion
9. Data manipulation using pointers
10. Pointers and array operation using pointers etc.
11. Pointers and structures
12. File operations (like create, copy delete etc)
13. Random access files
14. Command line arguments.
Simple C Programs
1. Write a program to input 5 numbers and find their sum and avereage
2. Area of a circle and rectangle.
3. Find the denominations of a
4. Simple and compound interest
5. Program to find the given number is odd or even.
6. Program to swap two numbers with a temporary variable.
7. Program to swap two numbers without a temporary variable.
8. Program to divide the sum of two numbers by their difference.
9. Program to find the average of three numbers.
a+b+c
10. Program to find area of triangle using ,= .
2
𝑟 r
11. Program to find simple interest (𝑝 ∗ 𝑛 ∗ 100) and Compound interest (p ∗ (1 + (100)n ).
𝑓−32
12. Program to convert temperature in furan heat to Celsius 𝑐 = 9.8
13. Program to read values of a, b, & c and print values in following form at
𝑎𝑥 + 𝑏𝑥 = 𝑐.
14. Program to convert given number of days to months and days.
4
15. Program to find volume of sphere 3 ∗ 𝜋𝑟 3 .
Switch Statements
47. Write a program to read any number between 1 and 7 and print corresponding day of the
week.
48. Write a program to Implement break and continue
49. Program to print the pattern
,
50. Program to print Floyd triangle ,
a. *** *** #
b. ** *** ##
c. * *** ##
String Manipulations
71. Reading a line of text
72. check whether the string is palindrome or not.eck whether palindrome or not without
functions
73. Find the length of a string, reverse of a string and c
74. implement String handling functions
75. Write a program to combine or concatenate two strings into one string
76. Write a program to copy one string to another and count the number of character copied
77. WAP to count the number of words and characters in a line of text.
78. Read a character and print it in reverse case
79. Binary search
80. Sort a list of names in alphabetical order.
81. WAP to find the largest word in an array and also find its position
82. Program to find a string is substring or not.
83. Program to count the number of words in a sentence
92. Write a program to calculate the net pay of an employee using structure with the
following information employee code, pay rate, hours worked
93. Print student marklist using array within structure
94. Implement structure within structure and find the net pay of an employee
95. Write a program to calculate the subject wise and student wise total by creating a
structure which contain an array member to represent the marks in five subject. also find
the grand total using union
96. Write a program using pointers to function to exchange the values stored in two memory
location
97. Write a program to find largest element in an array using pointer
98. WAP using pointers to determine the length of a string
99. Write a program to read 10 numbers from keyboard and print it using pointer
100. WAP using pointers and function to add two matrices
101. WAP to find the largest element in an array using function and pointers
102. Sort the elements using pointers
105. Write a program to print the details of the array element product which contains item
no, quantity and price. The array contains 5 elements. Create a structure named
inventory.
106. Write a program to read a command from keyboard and print it using file
107. Create two input files ( f1 and f2) and write the contents of both files into (f3) output
file
108. WAP to create a file, open it type in some characters and count the no. of
characters in a file.
109. Write a C program to read name and marks of n numbers of students from user and
store them in a file. If the file previously exits, add the information of n students.
110. Program to read set of numbers from a file and Write odd numbers in one file and
even numbers in another file
QUESTION BANK
Course Outline
Dreamweaver: Interface choosing a workspace-document window, toolbars, the launcher panel & tool
sets, Site Control-defining a site- file and folder management, Basics, adding text, align page elements,
modifying page properties, Linking, image maps, Typography, Tables, Rollovers, Cascading Style Sheets,
Code, Forms- form objects, creating a form, creating a jump menu, Behaviours, Automation, history
panel, Templates and Library Items, Inserting Media Objects.
UNIT I
3. What is an ISP?
(a) Internet System Protocol
(b) Internal System Program
(c) Internet Service Provider
(d) None of the above
4. A homepage is __________
(a) An index of encyclopedia articles
(b) Where all Internet data is stored
(c) Required for access to the Internet
(d) The first page of a website
22. Choose the software system that is not designed to search for information on the WWW.
(a) Wikipedia
(b) MSN
(c) Google
(d) Gmail
UNIT II
29. Choose the correct HTML tag for the largest heading
(a) <head>
(b) <h1>
(c) <title>
(d) <h6>
30. Which of these tags are all <table> tags?
(a) <thead><body><tr>
(b) <table><tr><tt>
(c) <table><head><tfoot>
(d) <table><tr><td>
34. What is the correct HTML for making a text input field?
(a) <textfield>
(b) <text input=”textfield”>
(c) <input type=”text”>
(d) <input type=”textfield”>
38. To create a combo box (drop down box) which tag will you use?
(a) <select>
(b) <list>
(c) <input type=”dropdown”>
(d) All of above
40. When should you use path along with file name of picture in IMG tag?
(a) Path is optional and not necessary
(b) When the location of image file and html file are different
(c) When image file and html file both are on same location
(d) Path is always necessary when inserting image
41. Which attribute you’ll use with TD tag to merge two cells horizontally?
(a) merge=colspan2
(b) rowspan=2
(c) colspan=2
(d) merge=row2
43. HTML document start and end with which tag pairs?
(a) <HEAD>….</HEAD>
(b) <BODY>….</BODY>
(c) <HTML>….</HTML>
(d) <WEB>….</WEB>
49. Which of the following attributes of text box control allow to limit the maximum character?
(a) size
(b) len
(c) maxlength
(d) all of these
(b) <Title>
(c) <HTML>
(d) <Form>
52. Correct HTML to left align the content inside a table cell is
(a) <tdleft>
(b) <td raligh = "left" >
(c) <td align = "left">
(d) <td leftalign>
54. <INPUT> is
(a) format tag
(b) empty tag
(c) both (a) and (b)
(d) none of these
60. What is the correct HTML for referring to an external style sheet?
(a) <stylesheet>mystyle.css</stylesheet>
(b) <link rel="stylesheet" type="text/css" href="mystyle.css">
(c) <style src="mystyle.css">
(d) <stylesheet src=”mystyle.css”>
61. --------------- is the attribute used for specifying the destination in an anchor tag
(a) src
(b) Href
(c) Target
(d) Dest
UNIT III
64. What is the correct HTML for referring to an external style sheet?
(a) <stylesheet>mystyle.css</stylesheet>
(b) <link rel="stylesheet" type="text/css" href="mystyle.css">
(c) <style src="mystyle.css">
(d) <stylesheet src=”mystyle.css”>
65. Where in an HTML document is the correct place to refer to an external style sheet?
(a) At the top of the document
(b) At the end of the document
(c) In the <body> section
(d) In the <head> section
(c) <style>
(d) <css style>
69. How do you add a background color for all <h1> elements?
(a) all.h1 {background-color:#FFFFFF;}
(b) h1 {background-color:#FFFFFF;}
(c) h1.all {background-color:#FFFFFF;}
(d) h1.full{background-color:#FFFFFF;}
70. What is the correct CSS syntax for making all the <p> elements bold?
(a) p {text-size:bold;}
(b) <p style="text-size:bold;">
(c) p {font-weight:bold;}
(d) <p style="font-size:bold;">
72. What is the correct syntax for referring to an external script called "script.js"?
(a) <script name="script.js">
(b) <script src="script.js">
(c) <script href="script.js">
(d) <script link=”script.js”>
(c) myFunction()
(d) return myFunction()
75. How to write an IF statement for executing some code if "i" is NOT equal to 5?
(a) if i =! 5 then
(b) if (i <> 5)
(c) if (i != 5)
(d) if (i NOT = 5)
77. How to insert a comment that has more than one line?
(a) <!--This comment has more than one line-->
(b) //This comment has more than one line//
(c) /*This comment has more than one line*/
(d) “This comment has more than one line”
81. Which jQuery function is used to prevent code from running, before the document is finished
loading?
(a) $(document).load()
(b) $(document).ready()
(c) $(body).onload()
(d) $(document).notready()
(b) .js
(c) .html
(d) .css
86. Which of the following is the default positioning elements with CSS?
(a) relative
(b) static
(c) absolute
(d) None of the mentioned
87. Which of the following property allows you to specify an element’s position with respect to the
browser window?
(a) relative
(b) fixed
(c) static
(d) absolute
88. Which object is the main entry point to all client-side JavaScript features and APIs?
(a) Standard
(b) Location
(c) Window
(d) Position
90. Which is the property that represents the content displayed in the window?
(a) document
(b) content
(c) window
(d) frame
UNIT IV
93. Dreamweaver users work in the Document Window using one of how many views?
(a) 1
(b) 2
(c) 3
(d) 4
94. Dreamweaver's ____ feature allows users to select colors and make perfect color matches.
(a) Color Cube
(b) Palattes
(c) HTML view
(d) Eye dropper
95. The W and H boxes in the Property inspector indicate the width and height of an image, in
(a) inches
(b) pixels
(c) points
(d) millimeters
96. ________ images are used to add texture and interesting color to a Web page.
(a) Clip Art
(b) Animated
(c) Background
(d) Cropped
98. A _____________ is the container/intersection where a row and column meet in a table.
(a) tag
(b) table ID
(c) link
(d) cell
101. What accurately describes the way templates work in Dreamweaver? If a template file is
opened you can edit
(a) nothing in the file, unless no pages have been created from the template.
(b) everything in the file.
(c) any editable region.
(d) anything in the file, but only in Code View.
102. Which type of style should you use if you want to use the formats on multiple pages?
(a) Linked
(b) Embedded
(c) Inline
(d) Orthogonal
103. The general definition of a(n) ____ is a set of linked documents with shared attributes,
such as related topics, a similar design, or a shared purpose.
(a) index
(b) website
(c) Internet
(d) Homepage
104. A ___________ can connect users to a place on the same web page or to place on another
site.
(a) root folder
(b) typeface
(c) text editor
(d) hyperlink
105. In order to define a site in Dream Weaver, users must create both ___________ and
____________.
(a) domain name / IP address
(b) login / password
(c) site name / home page
(d) site name / root folder
106. To view and change current formatting for selected objects or text, you would use(in
Dream weaver):
(a) Insert bar
(b) Property Inspector
(c) File Panel
(d) None of these
110. What do you add to a template in order to control where page content goes?
(a) Text Frames
(b) HTML Controllers
(c) Editable Regions
(d) Page Content Controllers
113. If the cell spacing is increased, the size of the cell ………………
(a) Increases
(b) Decreases
(c) Emphasized
(d) None of the above
114. A _____________ is the container/intersection where a row and column meet in a table.
(a) tag
(b) table ID
(c) link
(d) cell
UNIT V
116. Pick out the most popular photo editing software used worldwide.
(a) GIMP
(b) Corel
(c) Adobe Photoshop
(d) Paint
117. What is the common color mode used for printing purpose?
(a) CMYK
(b) RGB
(c) Lab Color
(d) RGB
118. The short cut key to invoke layers window in Adobe Photoshop is?
(a) F7
(b) F4
(c) F2
(d) F8
121. RGB :
(a) Color model for printing
(b) Color model for web
(c) Color model for drawing
(d) None of the above
125. Pixels represent by tiny _______ of color, which are typically unseen by naked eye.
(a) circles
(b) squares
(c) inches
(d) swatches
128. If you make a mistake while dragging the cropping area and want to start over, you can
press the ____ key, which cancels the selection.
(a) ESC
(b) ALT
(c) CTRL
(d) F1
129. Photoshop may display rulers at the ____ of the document window.
(a) bottom and left
(b) top and left
(c) top and right
130. ____ is a standard format used by photo hardware devices that supports many different
color modes, and one that can be used on the Web.
(a) TIFF
(b) RAW
(c) JPG
(d) EPS
135. How do you create a new file in Photoshop using the drop down menu?
(a) File > New
(b) File > Open
(c) Create > New
(d) Start > New File
142. If I want to use a clipping mask to clip a paintbrush pattern into a text layer then I would
(a) Paint in the same layer as the text then clip it into the text
(b) You cannot clip a paint brush pattern into text
(c) Just paint inside the text carefully
(d) Create a new layer above the text layer where I want to add the paint brush > paint inside the
new layer > Select Layer > create clipping mask
148. ____ is a standard format used by photo hardware devices that supports many different
color modes, and one that can be used on the Web.
(a) TIFF
(b) RAW
(c) JPG
(d) EPS
UNIT I
UNIT III
UNIT IV
UNIT I
UNIT IV
UNIT I
5. What is domain name server? Explain in detail about the Working of domain name server.
6. Explain in detail about the following protocols:
a) USENET (7 marks)
b) TELNET (8 marks)
7. Explain in detail about the following protocols:
a) HTTP (8 marks)
b) FTP (7 marks)
UNIT II
8. What is HTML Form? Explain the form elements with the help of examples.
9. What is HTML table? List the tags used and its attributes. Write an HTML code for Creating Class
time table using table tags.
10. Design a form using HTML form for entering Biodata?
11. Design a form using HTML tags for entering your personal details? The document must contain at
least ten fields, a submit button and cancel button?
12. Explain the list types with the help of examples.
13. Explain the concept of image mapping with the help of an example.
14. Explain about how to create HTML frames with example.
15. How to make a link to frameset, image, e-mail, new window and within a page?
16. Explain the following in detail
a) HTML links
b) HTML images
c) Explain about how to create HTML table with example.
17. Explain in detail about the following:
a) image mapping
b) frames
c) hyperlink
UNIT III
UNIT IV
29. Explain about the Forms, Form objects, Creating a Form and Form elements.
30. Explain about Designing with Tables, inserting a table, editing a table, rows and columns and
selecting cells.
31. How to create a Website using Dreamweaver
32. Explain the Procedure and write the code for the following Implementation:
Create a Website for Online payment of Electricity Bill. You need to have a form with a
minimum of the following fields. You need to perform validation checks in each field.
(Name, Address, email address, Consumer No, Bill amount, Last date of Payment)
Create a website for Mobile Customer for checking Bill. There should be a login page where
the user enters his name as username and mobile number as password. You need to validate
the username and password before showing him the bill. (You can assume that there is only
UNIT V
1. Write a HTML code for creating an webpage containing an application form( includes
label, text box, text area, radio button, dropdown list, button etc.)
OR
2. Write javascript for find sum and average of 10 natural numbers.
3. Explain about inserting tables with suitable example. Include all attributes.
OR
4. Explain 3 different methods for linking WebPages with example.
QUESTION BANK
1. Write a HTML program which displays two text fields: one accepting the user name and the
second accepting the password.
2. Write a HTML program which displays an image as a hyperlink.
3. Create a webpage with the following table.
4. Create a webpage which should contain the following table having 2 rows & 2 columns with
colors.
First Second
First Second
5. Display the web page with frame as shown below.
B.voc
HTML Hyper Text Markup
Languages
6. Create a webpage having frames as shown in the picture and fill each frame with a different
background color.
red
Blue green
7. Write a program to create a webpage of blue color and display links in red color.
8. Create a frame that contains different models of frame.
9. Create a form when clicking a radio button the text value is changed to 100.
10. Write a code to create a webpage having 2 radio buttons labelled as name of colors. Clicking
on each radio button should change the color of the webpage.
11. Create a web page as a complete form.
12. Ceate a webpage to move message in red color in left direction.
13. Create an HTML document a nested list showing the content page of any book.
14. Create an HTML document containing Bulleted List (Unordered list of 5 names).
15.
16. Write a CSS code which places text over an image.
17. Write a CSS code which changes the color of a link when you move the mouse over the link.
18. Write a CSS code which displays the first letter of a paragraph with bigger font size and color.
19. Use the onblur () method on a textbox and display a message when the textbox loses focus.
20. Write a JavaScript code to flip between two different fonts using Onmouseover&Onmouseout
event.
21. Write a JavaScript code to display a gif image.
22. Write a function in JavaScript to find the cube of a giver number.
23. Write a program to display an alert box when you click a button using JavaScript.
24. Write a program to accept 2 numbers using prompt and display their sum using a button.
25. Program to find which mouse button was clicked.
26. Write a JavaScript to find the factorial of a given number.
27. Write a program to find the given year is leap or not using prompt & button.
28. Program to sort numbers using prompt.
29. Write a DHTML code, which can select or deselect five checkboxes on the click of a button.
30. Write a DHTML code which can resize an image when you move the mouse over the image.
31. Write a DHTML code that displays message to the user when the document is loaded in the
browser.
32. Write a DHTML code to change the color of the text”Hai, my name is DUKE” when the
mouse moves over it and restore its original color when the mouse out.
33. Write a DHTML code, which can select or deselects 5 checkboxes on the click of a button.
34. Create and Procedure to make anyone of one of the parrot black & white in a given picture.
35. Procedure to display the background through your name using mask.
36. Procedure to type a word and apply the effects shadow emboss
37. Design to prepare a cover page for the book in your subject area. Plan your own design.
****************************
UNIVERSITY OF CALICUT
THENHIPALAM,CALICUTUNIVERSITYP.O
DEGREE OF
BACHELOR OF VOCATION (B.VOC)
IN
SOFTWARE DEVELOPMENT
QUESTION BANK
(FOR THE STUDENTS ADMITTED FROM THE ACADEMIC YEAR 2014–15 ONWARDS)
UNDER THE
FACULTY OF SCIENCE
QUESTION BANK
SEMESTER II
Marks Hrs/wk
Course Code Course Name Credit
Int Ext Tot T P Tot
GEC2EG04 A02 Modern Prose & Drama 4 20 80 100 4 4
MAL2A01(4) Malayalam- 4 20 80 100 4 4
GEC2ML05
BhashayumSahithyavum-II
GEC2HD05
(A09) – Literature in Hindi
GEC2NM06 A09(3) Basic Numeric Skills 4 20 80 100 4 4
SDC2IT05 Data Structures 4 20 80 100 4 4
Course Outline
Introduction to data structures - need for data structures, definition, categories of data structures,
operations; Arrays storage representation of 1D, 2D and Multi-dimensional arrays, Sparse
matrix, operations and Representation. Lists: Static and Dynamic Lists, Linked Lists, creation,
operations on linked lists, records.
Stacks & Queues: Stack - Definition, Operation on stack, Implementation using arrays and
linked lists, Applications of Stacks, Function Calling, Recursion- direct & indirect recursion,
Evaluation of arithmetic Expressions, Conversion of Expressions - Prefix, Infix and Postfix
expressions. Queues: Definition, Implementations using arrays and linked lists, Circular queue,
Dequeue, Priority queues, Applications of queues.
Trees - Definition, Basic terminology, Binary trees, Representation of binary trees, Sequential
representation of binary trees, Linked representation of binary trees, Traversals, Threaded binary
tree. Binary Search Trees: Definition, Insertion, Deletion, Traversal and Searching BST, AVL
Trees, Heap tree: Insertion and deletion (implementation not required).
Searching and Sorting: Searching: Linear search, Binary search, Comparison of different
methods, Hashing: Different hashing functions, Methods for collision handling. Sorting:
Insertion sort, Bubble sort, Selection sort, Quick sort, Heap sort and Merge sort methods,
Comparisons and Implementation.
UNIT - 1
4. An integer array is declared with size 5 (int Array[5];). If its base address is 2000,
what will be the address of Array[3]?
(a) 2000
(b) 2003
(c) 2004
(d) 2006
7. In linked list each node contain minimum of two fields. One field is data field to
store the data second field is?
(a) Pointer to character
(b) Pointer to integer
(c) Pointer to node
(d) None
(b) Linked list node will have two parts, namely info part and link part
(c) Arrays store homogeneous data
(d) None
12. The term data structure refers to __________ and interrelationship between them
(a) programming language statements
(b) organization of data element
(c) coding standard
(d) None of these
13. Which of the following is NOT an example for non linear data structures?
(a) Stack
(b) Graphs
(c) Tree
(d) None
16. The memory address of fifth element of an array can be calculated by the formula
(a) LOC(Array[5]=Base(Array)+w(5-lower bound), where w is the number of
words per memory cell for the array
(b) LOC(Array[5])=Base(Array[5])+(5-lower bound), where w is the number of
words per memory cell for the array
(c) LOC(Array[5])=Base(Array[4])+(5-Upper bound), where w is the number of
words per memory cell for the array
(d) None of above
21. In many data structure you can _____ a single record, _____ it, and _____ it.
22. Rearranging the contents of a data structure into a certain order is called _____
23. In a database, a field is
a) A specific data item.
b) A specific object.
c) Part of a record
d) Part of an algorithm
24. The field used when searching for a particular record is the _____.
25. In object-oriented programming, an object
a) Is a class
b) May contain data and methods
c) Is a program
d) May contain classes
26. A class
a) Is a blueprint for many objects
b) Represents a specific real-world object.
c) Will hold specific values in its fields
d) Specifies the type of a method.
27. In java, a class specification
a) Creates objects
b) Requires the keyword new
c) Creates references.
39. Access to the links in a linked list is usually through the _____ link.(first)
40. When you create a reference to a link in a linked list, it
a) Must refer to the first link.
b) Must refer to the link pointed by current
c) Must refer to the link pointed to by next.
d) Can refer to any link you want.
UNIT II
41. Which of the following is true?
(a) Stack: FIFO ; Queue : FIFO
(b) Stack: FIFO ; Queue : LIFO
(c) Stack: LIFO ; Queue : FIFO
(d) Stack: LIFO ; Queue : LIFO
42. Inserting an item into the stack when stack is not full is called …………. Operation
(a) Push
(b) Pop
(c) Insert
(d) Delete
43. Deleting an item form the stack, when stack is not empty is called ………..operation
(a) Push
(b) Pop
(c) Insert
(d) Delete
44. . …………. is very useful in situation when data have to stored and then retrieved in
reverse order.
(a) Stack
(b) Queue
(c) Linked list
(d) Array
45. A ....... is a data structure that organizes data similar to a line in the supermarket,
where the first one in line is the first one out.
(a) Stack
(b) Queue
(c) Both (a) & (b)
(d) None
46. Identify the data structure which allows deletions at both ends of the list but insertion
at only one end.
(a) Input restricted dequeue
(b) Output restricted dequeue
(c) Priority queues
(d) Stack
47. If the sequence of operations - push(1), push(2), pop, push(1), push(2), pop, pop,
pop, push(2), pop are performed on a stack, the sequence of popped out values are ?
(a) 2,2,1,1,2
(b) 2,2,1,2,2
(c) 2,1,2,2,1
(d) 2,1,2,2,2
48. When does top value of the stack changes?
(a) Before deletion
(b) After deletion
(c) At the time of deletion
(d) While checking underflow
49. The situation when in a linked list START=NULL is
(a) underflow
(b) overflow
(c) house full
(d) saturated
50. Which of the following is not an application of stack
(a) Recursion
(b) Function call
(c) expression evaluation
(d) None
51. A linear list of elements in which deletion can be done from one end (front) and
insertion can take place only at the other end (rear) is known as …….
(a) Queue
(b) Stack
(c) List
(d) Array
52. If elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a
time, in what order will they be removed?
(a) ABCD
(b) DCBA
(c) BDCA
(d) ABDC
53. In Linked list implementation of Queue, where does a new element be inserted?
(a) At the head of the linked list
(b) At the centre of the linked list
(c) At the tail of the linked list
(d) At random position
54. If the MAX_SIZE is the size of the array used in the implementation of circular
queue. How is rear manipulated while inserting an element in the queue?
(a) rear=(rear%1)+MAX_SIZE
(b) rear=rear%(MAX_SIZE+1)
(c) rear=(rear+1)%MAX_SIZE
(d) rear=rear+(1%MAX_SIZE)
55. A data structure in which elements can be inserted or deleted at/from both the ends
but not in the middle is?
(a) Queue
(b) Circular queue
(c) Priority queue
(d) Dequeue
56. A data structure that stores values with associate keys is ……..
(a) Priority queue
63. True or False : A stack or queue often serves as the underlying mechanism on which
an ADT array is based. : false
64. The term priority in a priority queue means that
a) The highest priority items are inserted first.
b) The programmer must prioritize access to the underlying array.
c) The underlying array is sorted by the priority of the items.
d) The lowest priority items are deleted first.
65. The operation of processing each element in the list is known as ......
A. sorting B. merging C. inserting D. traversal
66. you have to sort a list L consisting of a sorted list followed by a few “random”
elements. Which of the following sorting methods would be especially suitable for
such a task?
(A) Bubble sort (B) Selection sort (C) Quick sort (D) Insertion sort
67. Trees are generally
(A) Very deep and narrow (B) very wide and shallow (C) very deep and very
wide (D) cannot say
68. A mathematical-model with a collection of operations defined on that model is called
(A) Data Structure (B) Abstract Data Type (C) Primitive Data Type (D)
Algorithm
69. The complexity of multiplying two matrices of order m*n and n*p is
(A) Mnp (B) mp (C) mn (D) np
70. For an undirected graph with n vertices and e edges, the sum of the degree of each
vertex is equal to
(A) 2n (B) (2n-1)/2 (C) 2e (D) e2/2
71. A binary tree in which if all its levels except possibly the last, have the maximum
number of nodes and all the nodes at the last level appear as far left as possible, is
known as
(A) full binary tree. (B) AVL tree. (C) threaded tree. (D) complete binary
tree.
72. An undirected graph G with n vertices and e edges is represented by adjacency list.
What is the time required to generate all the connected components?
UNIT III
79. In Binary trees, nodes with no successor are called.……..
(a) End nodes
(b) Terminal nodes
(c) Final nodes
(d) Last nodes
80. A connected graph without any cycles is called a........
(a) Tree
(b) Complete graph
(c) Cyclic graph
(d) None
81. A terminal node in a binary tree is called............
(a) Root
(b) Leaf
(c) Child
(d) Branch
82. What is the number of leaf nodes in a full binary tree of height h?
(a) 2^h
(b) 2^(h+1)
(c) 2^(h-1)
(d) h
83. A binary search tree whose left subtree and right subtree differ in hight by at most 1
unit is called ……
(a) AVL tree
(b) Green tree
(c) Heap tree
(d) None
a) Every non-leaf node has children whose key values are less than (or equal to)
the parent.
b) Every left child has a key less than the parent and every right child has a
key greater than (or equal to) the parent.
c) In the path from the root to every leaf node, the key of each node is greater
than (or equal to) the key of its parent.
d) A node can have a maximum of two children.
100. True or False : Not all trees are binary trees. :true
101. A sub tree of a binary tree always has
a) A root that is a child of the main tree’s root.
b) A root unconnected to the main tree’s root.
c) Fewer nodes than the main tree.
d) A sibling with the same number of nodes.
102. In the java code for a tree, the _____ and the _____ are generally separate classes.
103. What the term complete mean when applied to binary trees?
a) All the necessary data has been inserted.
b) All the rows are filled with nodes, except possibly the bottom one.
c) All existing nodes contain data.
d) The node arrangement satisfies the heap condition.
104. A heap can be represented by an array because a heap
a) Is complete.
b) Is weakly ordered.
c) Is a binary tree.
d) Satisfies the heap condition.
105. Binary trees with threads are called as.......
A. Threaded trees B. Pointer trees C. Special trees D. Special pointer trees
106. In Binary trees nodes with no successor are called......
A. End nodes B. Terminal nodes C. Final nodes D. Last node
107. Every node N in a binary tree T except the root has a unique parent called the
......... of N.
A. Antecedents B. Predecessor C. Forerunner D. Precursor
108. A binary tree whose every node has either zero or two children is called .......
A. complete binary tree B. binary search tree C. extended binary tree D. data
structure
109. Which indicates pre-order traversal?
A. Left sub-tree, Right sub-tree and root B. Right sub-tree, Left sub-tree and
root C. Root, Left sub-tree, Right sub-tree D. Right sub-tree, root, Left sub-tree
110. A terminal node in a binary tree is called ............
A. Root B. Leaf C. Child D. Branch
111. Linked representation of binary tree needs ......... parallel arrays.
A. 4 B. 2 C. 3 D. 5
112. In a extended-binary tree nodes with 2 children are called ........
113. Trees are said .......... if they are similar and have same contents at corresponding
nodes.
A. Duplicate B. Carbon copy C. Replica D. Copies
UNIT IV
114. Which data structure is used in breadth first search of a graph to hold nodes?
(a) Stack
(b) Queue
(c) Tree
(d) Array
115. Which data structure is used in depth first search of a graph?
(a) Stack
(b) Queue
(c) Tree
(d) Array
(a) Prim's algorithm and Kruskal's algorithm produce different spanning trees
(b) Prim's algorithm and Kruskal's algorithm produce same spanning tree
(c) Prim's algorithm and Kruskal's algorithm doesn't guarantee an MST
(d) None
134. Other name for directed graph is..........
A. Direct graph B. Digraph C. Dir-graph D. Digraph
135. A _____ is a graph with no cycles
136. A connected graph T without any cycles is called a ........
A. A tree graph B. Free tree C. A tree d D. All of the above
137. TREE[1]=NULL indicates tree is ........
A. Overflow B. Underflow C. Empty D. Full
138. In a graph if E=(u,v) means ......
A. u is adjacent to v but v is not adjacent to u
B. e begins at u and ends at v C. u is processor and v is successor D. both b and c
139. in tree construction which is the suitable efficient data structure
140. If h is any hashing function and is used to hash n keys in to a table of size m,
where n<=m, the expected number of collisions involving a particular key x is :
(A) less than 1. (B) less than n. (C) less than m. (D) less than n/2.
141. Let A be an adjacency matrix of a graph G. The entry in the matrix K A, gives
(A) The number of paths of length K from vertex Vi to vertex Vj. (B)
Shortest path of K edges from vertex Vi to vertex Vj. (C) Length of a Eulerian path
from vertex Vi to vertex Vj. (D) Length of a Hamiltonian cycle from vertex Vi to
vertex Vj.
142. The OS of a computer may periodically collect all the free memory space to form
contiguous block of free space. This is called
(A) Concatenation (B) Garbage collection
(C) Collision (D) Dynamic Memory Allocation
UNIT-V
143. Which of the following is useful in implementing quick sort?
(a) List
(b) Stack
(c) Queue
(d) Set
144. The method of arranging elements in ascending or descending order is known
as….
(a) Indexing
(b) Sorting
(c) Hashing
(d) None
145. What do you call the selected keys in the quick sort method?
(a) Outer key
(b) Inner key
(c) Partition key
(d) Pivot key
146. Direct chaining is also known as………..
(a) Linear probing
(b) Quadratic probing
(c) Double hashing
(d) Separate chaining
147. Which of the following is not a method in open addressing?
(a) Linear probing
(b) Quadratic probing
(c) Double hashing
(d) Separate chaining
148. Which sorting algorithm need sorted array?
(a) Insertion sort
(b) Merge sort
(c) Quick sort
(d) Bucket sort
149. What is/are the characteristics of a good hash function?
(a) It should minimize the collisions
155. …............ is putting an element in the appropriate place in a sorted list yields a
larger sorted order list
(a) Extraction
(b) Selection
(c) Distribution
(d) Insertion
156. Which of the following sorting algorithm is of priority queue sorting type?
(a) Bubble sort
(b) Insertion sort
(c) Merge sort
(d) Selection sort
(b) Hashing is a technique used for storing and retrieving informations as fast as
possible
(c) Hashing is a technique used for searching elements in an array as fast as
possible
(d) None
161. What additional requirement is placed on an array, so that binary search may be
used to locate an entry?
(a) The array elements must form a heap.
(b) The array must have at least 2 entries.
(c) The array must be sorted.
(d) The array's size must be a power of two.
162. Identify a valid binary search sequence in a sorted array.
(a) 50,25,20,13,8,5
(b) 75,50,60,25,7,5
(c) 50,30,45,19,8,5
(d) None
163. The bubble sort algorithm alternates between
a) Comparing and swapping.
b) Moving and copying.
c) Moving and comparing.
d) Copying and comparing.
UNIT I
1. What is data structure?
2. What is a linked list?
3. What are the types of linked lists?
4. What is an array?
5. Write column major representation of 2-D array.
6. Discuss the advantage of linked list over array.
7. What you mean by base address of an array?
8. What is multidimensional array?
9. Differentiate 1D array and 2D array.
10. Give examples for linear data structure.
11. Give examples for non linear data structures.
12. What do you mean by row major order?
13. What are the basic operations on a linked list?
14. What are the advantages of array over linked list?
15. What are the advantages of linked list over array?
16. What you mean by traversing a list?
17. Is random access of elements possible in linked list? Why?
18. What you mean by head node of a linked list?
19. What are the changes we need to make in a singly linked list while inserting a new node?
20. What are the changes we need to make in a singly linked list while deleting a new node?
21. What is an Array?
22. Define Stack.
23. Write a short note on Data structure overview.
24. What are the types of Data structure?
25. List out the basic operations in Data structure?
26. Define Arrays.
27. What are the types of Array?
28. List out the operations on Arrays.
B.Voc – Software Development
Integrated -Question Bank
29. What is meant by Linked list?
30. Define Circular list?
31. Write a short note on doubly linked list?
32. Give the syntax of creating a list?
33. What is linear array and explain its types?
34. What are the advantages of sparce matrix?
35. What is the difference between a queue and array?
36. What are the main disadvantages of Array implementation of linked list?
37. State the different type of linked list?
38. List out the advantages of using linked list?
39. List out the application of a linked list?
40. What is an ordered list?
41. What are the parts of a linked list?
UNIT II
42. What is a Stack?
43. What is a Queue?
44. What do you mean by Dequeue?
45. What are the applications of stack?
46. Which data structure is used to implement recursion? Why?
47. What are the application of queue?
48. What do you mean by priority queue?
49. What are the types of recursion?
50. Why stack is known as a LIFO model?
51. Why queue is know as a FIFO model?
52. What is a circular queue?
53. What are the stack operations?
54. What are the queue operations?
55. What do you mean by underflow?
56. What do you mean by overflow?
57. What are the types of priority queue?
58. What are the operations in priority queue?
B.Voc – Software Development
Integrated -Question Bank
59. What are the types of Dequeue?
60. What is output restricted dequeue?
61. What is tail recursion?
62. What is indirect recursion?
63. Define Queue.
FIFO – Insertion-Deletion- Linear DS
64. What are the different way to implement Stack?
Linear-Array
65. What are the different way to implement Queue?
Linear-Array
66. Write the operations of stack?
PUSH - POP
67. Write the operations of Queue?
ENQUEUE- DEQUEUQ
68. What do you mean by pop and push?
INSERT ITEM- DELETE ITEM –
69. What are the different way to represent queue?
70. What is the advantage of the heap over a stack
71. Differentiate Stacks from Array
72. Explain any two applications of stack with example.
73. Explain in brief difference stack and queue.
74. Define Polish and Reverse polish Expression.
75. What is priority queue?
76. Write different type of sorting techniques.
77. What are the operations over array?
78. What is BST?
79. Draw a binary tree.
80. What is a heap?
81. Write applications of graph.
UNIT III
82. What is a tree?
B.Voc – Software Development
Integrated -Question Bank
83. What is the difference between root and leaf node of a tree?
84. What do you mean by height of a tree?
85. What is a skew tree?
86. What is a binary tree?
87. What is a strict binary tree?
88. What is a full binary tree?
89. What is a complete binary tree?
90. What are the 2 properties of a binary heap?
91. Name any three tree traversals?
92. What is a heap tree?
93. What are the types of heap tree?
94. What is an AVL tree?
95. What do you mean by in order traversal?
96. What do you mean by pre order traversal?
97. What do you mean by post order traversal?
98. What do you mean by level order traversal?
99. What is a binary search tree?
100. Differentiate binary search tree and binary tree.
101. What do you mean by in order predecessor?
102. What do you mean by in order successor?
103. Define a tree?
104. Explain node and parent in a tree?
105. What are the basic terminologies in a tree?
106. Define a binary tree?
107. Name the different types of a binary tree?
108. Explain the properties of a binary tree?
109. Whether linked list is linear or non-linear data structure? Why?
110. List out few of the application of tree data structure?
111. What is a linear representation of a binary tree?
112. Explain the linked representation of binary tree?
113. What are the operations on binary tree?
114. Write a note on tree traversals?
B.Voc – Software Development
Integrated -Question Bank
115. What are different types of traversals?
116. Explain about BST?
117. Define AVL trees and heap trees?
118. Compare and contrast DFS and BFS?
119. Describe how to represent binary trees as linked representation?
120. Draw a full binary tree with at least 6 nodes.
121. Difference between ‘max tree’ and ‘max heap’?
122. Explain the threaded binary tree?
123. Advantages of threaded binary tree?
124. List out the various operations on threaded binary trees?
UNIT IV
125. Define undirected graph?
126. Define directed graph?
127. What is a weighted graph?
128. Compare directed and undirected graph.
129. Differentiate path and cycle in a graph.
130. What do you mean by degree of a vertex?
131. What do you mean by in degree and out degree in a directed graph?
132. What is a complete graph?
133. Compare dense graph and sparse graph.
134. What are the graph representation methods?
135. What is Depth first search in a graph?
136. What is a Breadth first search in a graph?
137. Define minimum spanning tree.
138. What are the methods used to find minimum spanning tree of a graph?
139. List the graph traversal techniques.
140. What is adjacency matrix?
141. What is adjacency list?
142. Compare DFS and BFS.
143. What is shortest path problem? How do we solve it?
144. Adjacency matrix is good for representing dense graph. Why?
B.Voc – Software Development
Integrated -Question Bank
145. Define Graph
146. Define Recursion
147. Define Digraph
148. Define Weighted Graph
149. Define Degree
150. Define Vertex
151. How to insert a new item in a binary search tree
152. Define graph with example?
153. What are partitions?
154. What are spanning trees?
155. What is a minimum spanning tree?
156. What does Kruskals’s algorithm do?
157. Explain Djiksatras algorithm?
158. What are the two traversal strategies used in traversing a graph?
159. Name the different ways of representing a graph? Give examples
160. What is a weighted graph?
161. Define adjacency matrix?
162. What is the use of BFS?
UNIT V
163. What is linear search?
164. What is binary search?
165. What is the difference between linear search and binary search?
166. What do you mean by sorting?
167. What is a hash function?
168. Define Merge sort in simple words.
169. What do you mean heap sort?
170. What is the necessary condition for implementing Insertion sort?
171. Name the components of hashing.
172. What is a hash table?
173. What do you mean by load factor?
174. Name some collision resolution techniques.
B.Voc – Software Development
Integrated -Question Bank
175. What do you mean by separate chaining?
176. What do you mean by linear probing?
177. What do you mean by quadratic probing?
178. What do you mean by double hashing?
179. How does a selection sort work for an Array
180. What is a bubble sort and how do you perform it
SECTION C
UNIT I
1. What is the difference between row major order and column major order?
2. Compare set representation and linked representation?
3. Explain about matrix representation with example?
4. How do we insert a node at the end of a singly linked list?
5. How do we remove the first node from a singly linked list?
6. What are multidimensional arrays?
7. What is difference between Singly Linked List and Doubly Linked List data structure?
8. Differentiate array and linked list.
9. What are the advantages of linked list
10. Explain the types of data structures with examples.
11. Explain Array with example
12. Define Data structure.
[Hint: definition]
13. Write a short note on the Need for Data structure.
[Hint: definition, need]
14. Explain the classification of Classic Data structures.
[Hint: classification, description]
15. What are the basic List operations?
16. Explain Sparse matrix.
B.Voc – Software Development
Integrated -Question Bank
[Hint: definition, classification]
17. Name the operations on Linked list?
18. Give the algorithm for Insertion of an Item in linked list?
19. Give the algorithm for placing a new item at the beginning of the linked list.
20. Why Array is called as linear data structure?
21. Give the general algorithm for Deletion.
22. Write a function to delete a specified node.
[Hint: program for deletion]
23. Explain about direct and indirect recursion.
24. What is Arithmetic Expression ? Explain in detail.
25. How do we insert a new node before the head node in a singly linked list?
26. How do we insert a new node after the tail node in a singly linked list?
27. How do we insert a new node in the middle of a singly linked list?
28. How do we delete head node of a singly linked list?
29. How do we delete tail node of a singly linked list?
30. How do we delete a random node from middle of a singly linked list?
31. Explain the structure of a node in Singly linked list.
32. What are the differences between array and linked list?
33. Explain the concept of traversal in singly linked list.
34. Write Java-structure for implementing Stack using an array. Using this structure, write
functions for push and pop operations
35. What are the operations on Linear Lists? Differentiate between using Arrays and
Linked Lists for implementation of Linear Lists.
36. What are the operations on Linear Lists? Differentiate between using Arrays and
Linked Lists for implementation of Linear Lists.
37. Write Structure for implementing Linked List of integers. Write C-function for
insertion operation in Linked List.
38. An array of 5 rows and 5 columns is declared. If its base address is 2000, What will be the
address of 3rd element in 2nd row? [Array will be indexed from 0 to 4]
39. What do you mean by searching an array element?
40. What is a singly linked list?
41. Briefly explain the algorithm for inserting an element into stack?
B.Voc – Software Development
Integrated -Question Bank
UNIT II
UNIT III
90. What is the difference between complete binary tree and full binary tree
91. What is a tree? Explain the various traversing methods in trees
92. What is multi threaded binary trees? Explain with example.
93. Define tree. What is a sub tree? Define the following terms. Children nodes, siblings,
root node, leaves level and degree of tree.
94. Briefly explain the array representation of a tree.
95. Briefly explain the linked list representation of a tree.
96. Briefly explain the concept of binary search tree.
97. How do we create a BST with a given set of elements?
98. Create a BST with the following set of elements. 8,3,9,56,12,1,45,0,21
B.Voc – Software Development
Integrated -Question Bank
99. How do we insert an element in binary search tree?
100. How do we search an element in binary search tree?
101. How do we delete an element from the binary search tree?
102. Briefly explain the concept of heap tree.
103. Briefly explain the different types of heap tree.
104. Explain the basic terminologies of a tree?
105. What are the different type of a binary tree? Explain?
106. Briefly explain the concept of AVL tree with an example.
107. Briefly explain the in order traversal of a binary tree.
108. Define tree and binary tree. Explain in detail.
109. Briefly explain the pre order traversal of a binary tree.
110. Briefly explain the post order traversal of a binary tree.
111. Briefly explain the level order traversal of a binary tree.
112. What is the advantage of a threaded binary tree over regular binary tree?
113. Create a Min heap with the following elements 45, 5, 13, 4, 6, 13, 11, 6
114. Explain the advantages and disadvantages of linked list representation of a binary
tree?
115. Explain the different type of representation of a binary tree?
116. Brief a note on the operations on binary tree?
117. Explain threaded binary trees
118. State the difference between full binary tree and complete binary tree. Give one
example for each kind?
119. Explain the different types of traversal with algorithm?
120. Define an AVL Tree. Write an algorithm for insertion an AVL tree along with an
example?
121. Define a heap tree? Explain the operations on it?
UNIT IV
172. Demonstrate the selection sort results for each pass for the following initial
array of elements. 21 6 3 57 13 9 14 18 2
173. Write a program to explain selection sort. Which type of technique does it
174. Explain the algorithm for selection sort and give a suitable example
175. Show the quick sort results for each exchange for the following initial array
of elements 35 54 12 18 23 15 45 38
176. Explain the algorithm for QUICK sort and give a suitable example
177. Explain the algorithm for Merge sort and give a suitable example.
178. Write a program to implement Quick sort.
179. Write a program to implement Merge sort.
180. Write and explain linear search procedure or algorithm with a suitable example.
181. Formulate algorithm for binary search with its timing analysis.
182. Write a program for recursive binary search to find the given element within
array. For What data binary search is not applicable?
SECTION D
UNIT-1
UNIT II
23. What are the tree traversal techniques? Explain with an example.
24. Describe how to do insertion and deletion operations in AVL trees?
25. Explain tree traversals. For the given Binary Tree, perform In order, Pre order, Post order and
level order traversals.
26. Construct a Binary Search Tree from the given values. Consider the first value as the root
value. Values: 45, 23, 29, 85, 92, 7, 11, 35, 49, 51. [Show every step in detail]
27. Explain insertion and deletion of values in a binary search tree with the help of appropriate
examples.
28. Construct a Min and MAX heap for the following values. 23,67,1,45,7,89,56,35
29. Explain the concept of binary search tree. Explain search and insert operation in BST.
30. Construct a Min heap with the following values and perform pre order, in order and
postorder traversals. 33,40,3,17,14,22,54,-30
31. Construct a BST for the following series of values. [consider the first value as root node]
50,30,60,40,70,20,55
Now delete the root node and rearrange the nodes as per the BST property.
UNIT IV
32. Give the use of adjacency matrix for graph with suitable example.
For the given Graph, give adjacency list, storage representation for adjacency list and edge list.
44. Explain kruskal's algorithm to find minimum spanning tree of the following graph using
kruskal's algorithm
45. Write the Dijkstra's algorithm to find the shortest path and explain with an example.
46. Find the shortest path from s to t in the following graph using Dijkstra's algorithm.
1. What is a queue? Explain the algorithm to create and delete items in queue.
OR
2. What is linked list? Explain insertion and deletion of items in linked list.
3. What is hashing? Explain different hashing Techniques.
OR
4. Explain about Prims and Kruskal’s algorithm
QUESTION BANK
Applets and AWT - Applet class, Types of applet, skeleton, Applet tag, passing parameters.
Event Handling, Delegation event model, Event classes, Listeners, AWT classes and window
fundamentals, Frames, Working with fonts, graphics and colours, AWT controls, layouts and
Menus, Dialogue Boxes.
UNIT I
1. Which one of these lists contains only Java programming language keywords?
a) constant,super,implements,do
b) goto, throw, finally, throws
c) byte, break, assert, switch, include
d) if, void, long, Int, continue
12. Which of the following is NOT a key component of object oriented programming?
(a) Inheritance
(b) Encapsulation
(c) Polymorphism
(d) Parallelism
13. Which of these is TRUE of the relationship between objects and classes?
(a) A class is an instance of an object.
(b) An object is the ancestor of its subclass.
(c) An object is an instance of a class.
(d) An object is the descendant of its superclass.
17. What is the value of ’n’ after executing the following code?
int n = 20;
switch(n) {
case 10: n = n + 1;
case 15: n = n + 2;
case 20: n = n + 3;
case 25: n = n + 4;
case 30: n = n + 5; }
18. What is the value of variable z after executing the following code?
int x = 5, y = 5, z = 5;
if (x > 3)
if (y > 4)
if (z > 5) z += 1;
else z += 2;
else z += 3;
z += 4;
(a) 7.5 (b) 7.0 (c) 5.0 (d) None of the above
21. That unit of code in Java that contains the specifications for objects is:
a) A class.
b) A method.
c) An instance variable.
d) A constructor.
24. Which of the following concepts of OOPS means exposing only necessary information
to client?
a. Encapsulation
b. Abstraction
c. Data hiding
d. Data binding
UNIT II
52. When method defined in subclass which has same signature as a method in a super
class, it is known as method
a) Overloading
b) Overriding
c) Packaging
d) none of these
65. If a class contains abstract methods, then the class itself must be declared abstract
a. True
b. False
68. ___ u_s_e_faurle in a situation when some general methods should be implemented and
specialization behaviour should be implemented by subclass
a. Abstract class
b. Interfaces
c. Final class
d. none
83. Process of storing the object contain into the file is known as ______________
a) Synchronization
b) Serialization
c) zip
d) doping
Module III
B.Voc – Software Development
Integrated -Question Bank
130. More than one exception can be raised by a single piece of code
a) True
b) False
135. Runnable is
a) Interface
b) Method
c) Class
d) Constructor
B.Voc – Software Development
Integrated -Question Bank
141. While extending Thread ,the extending class must ______the run() method
a) overload
b) override
c) inherit
d) none
145. Under what circumstances might you use the yield method of the Thread class?
a. To call from the currently running thread to allow another thread
of the sameorhigherpriority to run
b. To call on a waiting thread to allow it to run
c. To allow a thread of higher priority to run
d. To call from the currently running thread with a parameter designating which
thread should be allowed to run
146. When several threads act on object simultaneously and the result is reliable then
it is known as ____________
a) Boxing
b) Unsynchronized
c) synchronized
d) none of these
148. What is the default buffer size used by any buffered class?
B.Voc – Software Development
Integrated -Question Bank
a) 128 bytes
b) 256 bytes
c) 12 bytes
d) 1024 bytes
149. Which of the following method or a class is not allowed directly to stop a
thread ?
A. notify () B. wait () C. InputStream access D.sleep ()
160. Which of these classes is used for input and output operation when working with
bytes?
a).InputStream.b) Reader.c) Writer.d) All of the mentioned
161. Which of these class is used to read and write bytes in a file?
a)FileReader.b) FileWriter.c) FileInputStream.d) InputStreamReader
172. The following methods are run only once in a lifetime of an applet
a. init () and destroy()
b. start() and paint()
c. init () and start()
d. paint() and destroy()
176. Which of the following method is called by the browser just before an applet is
terminated .
a. destroy()
b. terminate()
c. stop()
d. start()
179. The stop method is called when a web browser leaves the HTML document
containing the applet.
a. true
b. false
184. Which is the container that contain title bar and can have MenuBars. It can have other
components like button, textfield etc.?
A) Panel
B) Frame
C) Window
D) Container
185. Which is a component in AWT that can contain another components like buttons,
textfields, labels etc.?
A) Window
B) Container
C) Panel
D) Frame
187. Which is a special type of program that is embedded in the webpage to generate the
dynamic content?
A) Package
B) Applet
C) Browser
B.Voc – Software Development
Integrated -Question Bank
D) None of the above
188. Applet runs inside the browser and works at client side?
A) True
B) False
189. Which life cycle method of an applet java.awt.Component class provides?
A) public void paint(Graphics g)
B) public void destroy()
C) public void stop()
D) public void init()
UNIT V
206. Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI
application?
A) True
B) False
208. The Swing Component classes that are used in Encapsulates a mutually
exclusive set of buttons?
A) AbstractButton
B) ButtonGroup
C) JButton
D) ImageIcon
209. The following way is used to create a frame is by creating the object of Frame
class?
A) inheritance
B) association
C) Both A & B
D) None of the above
211. JDBC is a Java API that is used to connect and execute query to the database?
A) True
B) False
213. In the following JDBC drivers which is known as partially java driver?
A) JDBC-ODBC bridge driver
B) Native-API driver
C) Network Protocol driver
D) Thin driver
214. In the following JDBC drivers which are known as fully java driver?
A) Native-API driver
B) Network Protocol driver
C) Thin driver
D) Both B & C
216. Why java program cannot directly communicate with an ODBC driver?
A) ODBC written in C# language
B) ODBC written in C language
C) ODBC written in C++ language
D) None of the above
B.Voc – Software Development
Integrated -Question Bank
217. How many steps are used to connect any java application with the database in
java using JDBC?
A) 5
B) 4
C) 3
D) 6
218. Which method of Class class is used to register the driver class, This method is
used to dynamically load the driver class?
a) forName()
b) getConnection()
c) createStatement()
d) executeQuery()
220. In Connection interface which method Drops all changes made since the
previous commit/rollback?
221. Which interface provides methods to execute queries with the database?
a) Connection interface
b) Statement interface
c) ResultSet interface
d) None of the above
B.Voc – Software Development
Integrated -Question Bank
a) IP Address
b) Protocol
c) MAC Address
d) All mentioned above
a) Socket
b) IP Address
c) Protocol
d) MAC Address
a) Socket
b) ServerSocket
c) Both A & B
d) None of the above
a) DatagramSocket
b) DatagramPacket
c) Both A & B
d) None of the above
229. Which steps occur when establishing a TCP connection between two computers using
sockets?
a) The server instantiates a ServerSocket object, denoting which port
numbercommunication is to occur on
b) The server invokes the accept() method of the ServerSocket class. This
method waits until a client connects to the server on the given port
c) After the server is waiting, a client instantiates a Socket object, specifying theserver
name and port number to connect to
d) All of the above
UNIT I
1. What is meant by inheritance?
2. What is meant by polymorphism?
3. What is encapsulation?
4. What are the basic data types in java?
5. What is meant by literals?
6. What is meant by dynamic initialization?
7. Explain if statements in java.
8. What is java’s automatic type conversion?
9. What is meant by type promotion in java?
10. Explain one dimensional array with simple example.
11. What are the basic arithmetic operators in java?
12. Explain relational operator in java.
13. Explain boolean logical operators.
UNIT II
UNIT III
B.Voc – Software Development
Integrated -Question Bank
96. What is exception?
97. What is thread?
98. How threads can be created in java?
99. What is the difference between process and threads?
100. What is meant by synchronization in threads?
101. Explain isAlive() and join() methods.
102. Explain run() method in the Runnable interface.
103. How threads can be created in java?
104. What is meant by main() thread?
105. What is meant by interthread communication?
106. Explain notify() and notifyall() method in the interthread communication.
107. What is meant by streams?
108. Explain the Byte stream classes.
109. Explain the Character stream classes.
110. Explain the class System.
111. Explain read() and readLine() methods in the BufferedReader class.
112. Explain print(),println() and write() methods.
113. Explain PrintWriter class.
114. Explain FileInputStream.
115. Explain FileOutputStream .
116. Explain try and catch blocks.
117. Explain finally block.
118. What are the different exception types?
119. Explain the class hierarchy of exception.
120. Why are wait (), notify () and notify all () methods defined in the Object class?
121. Short note on thread?
122. Write about short note on thread priority?
123. List out Thread properties
UNIT IV
UNIT V
UNIT II
UNIT 111
81. What is a thread? How is it different from process? How threads can be created in
java?
82. Explain two methods of creating threads with example.
83. What is exception? How is it handled in java?
84. What is the purpose is of try and catch block?
85. Explain different exception types.
86. Can multiple catch block is possible in a program? If yes, explain with example.
87. How finally block works? Explain with example.
88. Explain some built-in exception.
89. How we can create our own exception class?
90. How try blocks are nested?
91. Differentiate between throw and throws.
92. Explain the life cycle of thread.
93. Explain the Thread and Runnable interface.
94. Explain interthread communication.
95. Explain the concept of stream.
96. Explain stream classes.
97. How files are created in java?
98. Write short notes in threads?
99. Explain exception handling with e.g.?
100. Differentiate b/w input & output stream?
101. Write a java pgm to implement multi-thread programming?
B.Voc – Software Development
Integrated -Question Bank
102. Explain different ways of creating a thread?
103. Explain multi-thread with e.g.?
104. Explain the usage of try & catch classes
105. Explain various I/O streams with e.g.?
106. List out the methods defined by I/O streams?
107. What are input and output classes?
108. Define thread. Explain the various steps of thread?
109. Explain how threads are created by implementing Runnable interface?
110. Explain the need of synchronized method?
111. Write a program to create a mark file which consists of roll no,name,and 3 marks
of 5 student in a class?
112. Write a program to concatenate two files?
113. Write short note on character Stream?
114. Write short note on Byte Stream?
115. Explain about thread priorities with e.g.?
116. Explain about deadlock?
117. How to control execution of threads?
118. How to catch and handle different types of exception?
119. Explain Hierarchy of exception?
120. What are the two types of Exceptions in Java ? Which are the differences between
them?
121. Write a pgm for I/O operations using BufferInputStream and BufferedOutputStream?
122. Write a program to create a text file?
123. Write a program to copy a file to another file?
UNIT IV
UNIT V
UNIT II
13 What is class? How objects can be created? Which operator is used toaccess class
members? What is a constructor? Explain the above by usinga suitable example.
14 What are different types of inheritance supported by java? Explain withexample.
15 What is interface? How it is implemented? How multiple inheritance canbe implemented
by using interface?
16 Explain visibility control in java with example.
17 Differentiate between method overloading and overriding with example.
18 What is abstract class and methods? Write a suitable program to explainthe concepts.
19 Explain packages with example?
20 What are packages? List any 5 built-in packages
21 Explain multiple inheritance with example
22 Explain the use of super & final keywords in a java program?
23 What are classes and methods in java with example?
24 What are the different forms of inheritance? Explain.
UNIT III
30. Explain built –in Exception classes .How user defined exception classes can be
implemented? Explain with suitable example for both.
31. What are the different methods of creating threads in Java.
32. Explain interthread communication in java.
33. Explain standard streams in detail.
34. Explain File streams in detail.
35. Explain briefly about multi-threading with example?
36. What do you mean by synchronization?Explain how threads are synchronized in a java
program. Write a program with example.
37. How does a multiple catch statement work? With example
38. Explain about the different ways of creation of thread with examples
39. Explain various stream classes of java.
40. Discuss the concept inheritance with an example. Explain 3 types of inheritance in Java
41. Explain creation of threads.
42. Explain briefly about Byte Streams
43. Explain briefly about Character Streams
44. Explain briefly exception handling mechanism in java with example
45. Explain Life cycle of Thread
46. Write a program to implement Extending Thread class
47. Write a java program for string concatenation, string conversion and string comparison
48. How a String array can be declared in Java. Explain with a suitable example.
49. Explain in detail various String methods
50. Explain in detail String buffer class with an example
51. What is java utility? Write a java program to implement utility classes
52. Describe Files and its Operations in Java
UNIT IV
53. What is applet? Explain Applet class. How event can be handled byapplet? Explain with
a suitable example.
B.Voc – Software Development
Integrated -Question Bank
54. Explain in detail the delegation event model.
55. Explain AWT classes in detail.
56. Explain Life cycle of Applet
57. Discuss about applet classes
58. Explain various applet display methods with example
59. Explain AWT. Write various controls used in AWT
60. What is event delegation model?
61. Explain various layout managers in detail.
62. What are the sources of events .Explain some of them in detail.
63. Explain the creation of frame with suitable example having enough event handling
methods implemented. How frame can be loaded in an applet?
UNIT V
1. Explain Byte code concept of Java. (b) Explain for loop with an example.
2. Explain data type conversion and casting feature of java with an example.
3. Explain use of command line arguments.
4. Explain about abstract classes and abstract methods.
5. Explain life cycle of a Thread.
6. Explain briefly about access modifiers and their usage.
7. Explain about try-catch functionality in Exception Handling
8. Explain about the usage of text field and text area in java.
9. Explain about how to create a thread with example
QUESTION BANK
Semester : 2nd
Course Outline
JAVA PROGRAMS
Simple programs
12345
1234
123
12
1
6. Program to construct a pyramid
*****
****
***
**
*
**
***
****
*****
Conditions in java
12.Program to compare 4 numbers and print highest number.
13.Program to find the day if a date is given.
14.Write a program to print whether given number is prime or not.
Loops in java
15.Find the sum of series 1!+2!+3!....+5!
16.Program to create Multiplication Table
17.Program to find sum & reverse of a given no:
18.Write a program to sort any list of given numbers.
19.Write a Java program to print the following structure:
1
222
33333
4444444
20.Write a Java program to print the following structure:
$$$$$
$$$$
$$$
$$
$
Java classes
23.Program to implement class Student and receive marks of students and find the
class topper.
B.Voc – Software Development
Integrated -Question Bank
24.Create a class dob with day, month, year (using member function read data and
print data) & wish “happy birthday” those who have birthday.
Java Streams
26.Program to Print n Prime No:
27.Program to print strange numbers
28.Generate Pyramid For a Given Number K
29.Program to calculate the sum of natural numbers upto n.
30.Program to generate first n times of Fibonacci series.
Array
31.Find Sum of diagonal elements of a matrix.
32.Program to add two matrices.
33.Remove all elements from Java array list Example
34.Print Transpose Of A Matrix
String
35.Find length of the String
36.Remove leading and trailing space from String example.
37.Program to convert uppercase string to lowercase example.
38.Program to remove specified substring.
Inheritance
39.Create Salary Slip.
40.Program to implement
Simple inheritance
Multiple inheritance
Multilevel inheritance
Interface
Polymorphism
43.Write a program to implement polymorphism
44. Write a program to implement the Concept of Function Overloading.
45. Write a program to implement the Concept of Function Overriding.
Thread
46.Create New Thread Using Runnable.
47.program for implementing multithreading
48.Program using three threads for accomplishing 3 different tasks.
File
49.Program to copy file contents
50.Program to write contents to a file
51.program to writing date to a file
52.write a program to write some numbers to a file and copy the even numbers to
other file “even file” and odd numbers to other file “odd file”
Applet
53.Draw Dots at Random Locations in an Applet
54.Draw Smiley In Applet Fill Rectangle & Square in Applet Window
55.Program to provide Interactive input to an applet
56.Program to Resize Applet Window
57.Set Status Message in Applet Window Example
58.Using Applet dimension, write a program to print center aligned text.
59.Create Labels (One, Two & Three), add Buttons (Yes, No, Undecided) when
user click any button show message regarding user click, add
Checkboxes(Windows 98/XP, Windows NT/2000) when user chose any
checkbox show message regarding user choice & add text boxes (name,
password) and text on these textboxes should be displayed on Panel.
60.Create an applet program for Menu demonstration. Menu bar should contain
File, Edit, View and its submenus.
B.Voc – Software Development
Integrated -Question Bank
61.Create an applet program for key events it should recognize normal keys &
should be displayed on the panel.
62.Create an applet program for mouse events it should recognize mouse entry,
exit, and its coordinates
AWT Components
63.Write a program to create student registration form for university examination.
64.Programme to test socket functionality for appropriate host name and a port
number
65.Write a java programme to connect to database created in
MS_ACCES/SQL_SERVER/ORACLE using JDBC concept ,perform basic
operations of selection, insertion and deletion on the database.
66.Write a programme to store student data in database and display the data.
67.Develop a simple paint-like program that can draw basic graphical
primitives in different dimensions and colors. Use appropriate menu and
buttons.
68.Develop a simple calculator using even-driven programming paradigm of
Java.
General Questions
69.Develop a template for linked-list class along with its methods in Java.
70.Design a class for Complex numbers in Java. In addition to methods for
basic operations on complex numbers, provide a method to return the
number of active objects created.
71.Create a superclass, Student, and two subclasses, Undergrad and Grad.
The superclass Student should have the following data members: name,
ID, grade, age, and address.
The superclass, Student should have at least one method: boolean
isPassed (double grade)The purpose of the isPassed method is to take
one parameter, grade (value between 0 and 100)and check whether the
grade has passed the requirement for passing a course. In the Student
class this method should be empty as an abstract method.
The two subclasses, Grad and Undergrad, will inherit all data members
of the Student class and override the method isPassed. For the
B.Voc – Software Development
Integrated -Question Bank
UnderGrad class, if the grade is above 70.0, then isPassed returns true,
otherwise it returns false. For the Grad class, if the grade is above 80.0,
then isPassed returns true, otherwise returns false.
Create a test class for your three classes. In the test class, create one
Grad object and one Undergrad object. For each object, provide a grade
and display the results of the isPassed method.
72.Write a Java program to make frequency count of words in a given text. (using
command line argument).
73.Develop an applet that receives an integer in one text field, and computes its
factorial Value and returns it in another text field, when the button named
“Compute” is clicked.
74.Write a Java program that creates three threads. First thread displays “Good
Morning” every one second,the second thread displays “Hello” every two
seconds and the third thread displays “Welcome” every three.
Answer:
Inorder : D H B E A F C I G J
Preorder: A B D H E C F G I J
Postorder: H D E B F I J G C A
ANS:
where LCn means Left
1 2 3 - - 4 - - 5 Child of node n and
RCn means Right
Root LC1 RC1 LC2 RC2 LC3 RC3 LC4 RC4 Child of node n
65 70 75 80 85 60 55 50 45