0% found this document useful (0 votes)
7 views

web-question-bank

The document is a question bank for the Web Programming with Applications course at S. G. Balekundri Institute of Technology, detailing various topics related to HTML, CSS, JavaScript, and PHP. It includes questions organized by modules, covering syntax differences, semantic elements, table structures, and scripting concepts. Each question is categorized by its course outcome (CO) and required cognitive level (RBT) along with marks allocation.

Uploaded by

zswn9bx52d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

web-question-bank

The document is a question bank for the Web Programming with Applications course at S. G. Balekundri Institute of Technology, detailing various topics related to HTML, CSS, JavaScript, and PHP. It includes questions organized by modules, covering syntax differences, semantic elements, table structures, and scripting concepts. Each question is categorized by its course outcome (CO) and required cognitive level (RBT) along with marks allocation.

Uploaded by

zswn9bx52d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

S. S.

Education Trust’s CET Code: E-175 (UG)/T-942 (PG)

S. G. BALEKUNDRI INSTITUTE OF TECHNOLOGY


Shivabasavanagar, Belagavi- 590 010, Karnataka- India
Office: 0831-2407172, 2554559 Fax: 0831-2407152Website: www.sgbit.edu.in
Examination Section Form No.: SGBIT/EXAM/65
Email: exam@sgbit.edu.in, Department Extension: 587 Revision R0w.e.f01/04/2020

Department of Compuuter Science and Engineering


QUESTION BANK(CBCS FORMAT)
Course Code: Course: Web programming with Its
Date:
17CS71 Applications
24/12/2020
Semester : VII Course Coordinator: Ms. Kangana W. M.
Module 1
Q. Questions CO RBT
MARK

NO. S

1. Explain the syntactical difference between HTML5 and XHTML. 01 L2 6

2. Explain the new semantic elements in HTML5? Give their advantages 01 L2 5


with an example?
3. Explain the standard HTML document structure. 01 L2 5
4. Briefly explain the history of markup languages. 01 L2 6

5. Explain (i) <a> (ii) <pre> (iii) <img> (iv) <div> elements with 01 L2 8
example.
6. List different types HTML list. Explain the HTML list with an 01 L2 8
example.
7. Explain briefly HTML5 semantic structure element with an example 01 L2 6
to each.
8. Give the benefits of CSS. 01 L2 5

9. What is meant by CSS. Give the general syntax of CSS and provide 01 L2 5
one example to it.
10. List and explain with an example different levels of CSS Styling. 01 L2 6

11. List the different selectors available in CSS and explain id and class 01 L2 6
selector with an example.
What is the difference between the <p> and the <div>element? In 01 L2
12. what contexts should one use the one over the other? Write an HTML 8
code to display an image image1.png in such a way that text browsers
will display "S G B I T" instead.
13. Give syntax and an example for each of the following tags. 01 L2 4
14. i). <time> ii). <nav> iii). <div> iv). <figcaption> 01 L2 8
Create HTML document to describe a table with the following 01 L3
contents: The columns of the table must have the headings pine,
15. maple, Oak and fir. The rown must have the labels average height, 8
average width, typical lifespan, and leaf type. Fill the data cells with
some values.
16. What is an element selector and a grouped element selector? Provide 01 L2 6
an example of each.
17. Create a table with 4 rows and 4 columns; odd rows background color 01 L3 6
is lightblue; even rows background color is yellow; when hovering the
rows the font-size changes and set margin and padding to 10pt.
Subjects 1st I.A 2nd I.A Average
Data Structure 25 24 25
Maths 20 22 21
Total: 46
18. Illustrate the CSS box model? 01 L2 5
Create HTML document that defines a table with 5 rows and 01 L3
5columns. The first row should contain country name, gold, silver,
bronze (all three indicating the type of medals)and total in each
column respectively. Fill in the information details in the table with
19. appropriate values. After filling the details, set red color to the 8
background for the first row,blue for the second, yellow for the third,
purple for the fourth and green for the fifth row.Use of align and
valign attributes for this table has to be made at the appropriate
places.
20. List the different selectors available in CSS and explain in detail. 01 L2 8
Write an HTML document to describe an ordered list of your five 01 L2
21. favourite movies. Each element of the list must have a nested list of 6
atleast two actors in your favourite movies.
22. What are the advantages and disadvantages of using the new HTML5 01 L2 5
semantic elements?
Create an XHTML document that defines a table that has two levels 01 L3
of column labels: an overall label, Meals, and 3 secondary labels,
23. Breakfast, Lunch and Dinner. There must be 2 levels of row labels: an 6
overall label, Foods and 4 secondary labels, Bread, Main course,
Vegetable and Dessert. The cells of the table must contain a number
of grams for each of the food categories.
Write an HTML code to display two paragraphs: "Grass is green" and 01 L3
24. "Fire is red". Use embedded styles so that the words "green" and 6
"fire" are to be displayed in green and red color respectively.
25. What are inline styles? Explain with an example. 01 L2 4
Module 2

1. What are the elements used to define the structure of an HTML table? 02 L2 6
Explain briefly
2. Describe the purpose of a table caption and the table heading elements. 02 L2 4

3. Create a table that correctly uses the caption, thead, tfoot, and tbody 02 L2 6
elements. Briefly discuss the role of each of these elements.
4. What is the disadvantage of using tables for markup? 02 L2 6
5. What is the difference between datetime and datetime-local? 02 L2 4
6. What is a form? What is a tel text input control? 02 L2 4
7. What are the two different ways of passing information via the URL? 02 L2 5
8. What is the purpose of the action attribute? Give example. 02 L2 5
9. Explain the different types of styling. 02 L2 6
10. What are microformats? What is their purpose? Explain 02 L2 6
11. What is normal flow in the context of CSS? 02 L2 5

12. Describe how block-level elements are different from inline elements. Be 02 L2 5
sure to describe the two different types of inline elements.
13. In CSS, what does floating an element do? How do you float an element? 02 L2 5
Example
In CSS positioning, the concept of positioning context is important. What is 02 L2
14. it and how does it affect positioning? Provide an example of how 5
positioning context might affect the positioning of an element.
15. Briefly describe the two ways to construct multicolumn layouts in CSS. 02 L2 5

16. Write the CSS and HTML to create a two-column layout using positioning 02 L2 5
and floating.
17. Briefly describe the role of CSS media queries. 02 L2 4
18. What is viewport? Why is it important? 02 L2 5
19. What are the advantages and disadvantages of using a CSS framework? 02 L2 5
20. Explain margin and padding. 02 L2 5
Module 3
1. Explain the variable and different operators with an example in JS. 03 L2 5
2. Explain the different conditions and loops with an example in JS. 03 L2 5
3. Explain briefly how to define and use functions with an example in JS. 03 L2 5
4. Explain the different events in JS. 03 L2 5

5. List and example different mouse events available in JS. Write a code 03 L3 6
for each and explain.
6. List and example different key events available in JS. Write a code for 03 L3 6
each and explain.
7. List and example different form events available in JS. Write a code 03 L3 6
for each and explain.
8. Explain client side and server side scripting. 03 L2 6
9. Explain the different server-side technologies. 03 L2 6
10. What are the different ways to comment in PHP, give example 03 L2 5
11. With an example explain variables, data types and constants in PHP. 03 L2 5
12. Explain echo, printf and alert. 03 L2 6
13. Explain the control statements, loops and PHP with an example. 03 L2 6
14. Write a PHP code display current time and date from the server. 03 L2 5
15. Explain different ways of parameters in functions used in PHP. 03 L2 5
Which are the methods used for accepting inputs from the keyboard 03 L3
16. and for displaying results on the screen? Write a Javascript for 6
accepting the user name and display it on the browser window. (Dec
2012, 08 Marks)
17. Write a HTML and javacript to return the leftmost vowel of the 03 L3 5
string. (July 2015, 08 Marks).
18. Write a Javascript to read an email ID from user suing prompt and 03 L2 6
validate it. Its should contain a ‘@’ and ‘.’(dot). (Jan 2016, 08 Marks)
Write a HTML document containing a JavaScript function to compute 03 L3
19. the median of an array of numbers with at least two different 6
datasets. (July 2016, 08 Marks).
Explain the following objects available in JavaScript. List atleast 3 03 L3
methods available with them: (Jan 2016, 08 Marks)
a. Math Object
20. b. Number Object 8
c. Date Object
d. Array Object

Create a HTML document with PHP to display the number, square 03 L3


21. root, square, cube and quadruple using sqrt and pow functions. (The 5
output should contain 10 number) (July 2016, 08 Marks)
22. Explain, with an example, handling events from body elements using 03 L3 5
onload attribute. (04 Marks) (Jun/July -2011).
23. Explain event handler connection for DOM2 event model. (10 03 L2 5
Marks) (Jun/July -2011).
Describe all the differences between the three possible values of the 03 L3
24. position property. (07 Marks) (Jan-2014, Jun/July -2011, Dec-2012, 6
June-2012) .
25. Explain element visibility (03 Marks) (Jun/July -2011, Dec-2012, 03 L2 5
June-2012)
26. Explain Navigator object, with an example. (04 Marks) (Jan-2014). 03 L2 5
Write a program in XHTML to create five radio buttons, labelled red, 03 L3
blue, green, yellow and orange. The event handlers for these buttons
27. must produce message stating the chosen favourite color. The Event 8
handler must be implemented as a function. Assign the event
handler to the event property of the button element. (10 Marks)
(Jun/July-2013) .
28. What is an event? List the most commonly used events and their tag 03 L2 6
attributes. (10 Marks) (Dec-2012) .
29. Briefly discuss the event handling from body elements and button 03 L2 6
elements and button elements in Java Script. (10 Marks) (Dec-2012).
30. Write HTML and javascript file for displaying a table of numbers from 03 L2 8
5 to 15 their squares and cubes using alert.
31. Write javascript file for displaying a first n Fibonacci numbers. Read 03 L2 6
n using prompt.
32. Write javascript file for reading 3 numbers using prompt. Display 03 L2 6
largest of three numbers using alert.
33. Write javascript file for reading a line of text using prompt. Display 03 L2 6
the words of input in alphabetical order.
34. Write javascript file for finding the position of left most vowel in the 03 L2 6
given string.
35. Write javascript file for finding the number with its digits in reverse 03 L2 5
order.
36. Explain Javascript Events in Detail 03 L2 5
37. Explain Server-side Development with PHP 03 L2 5
38. What are the advantages and disadvtages of client-side scripting. 03 L2 6
39. Explain the try- catch block. 03 L2 6

40. What are the different ways in which javascript can be linked to an 03 L2 6
HTML page.
41. Explain the JS arrays method with an example.(july 2018) 03 L2 6

42. Describe the string properties and methods of JS with an eample. . 03 L2 6


(july 2018)
43. Develop a JS to accept a line of text using prompt and display the 03 L3 6
words of the input text, in alphabetic order. (july 2018)
44. Discuss element access in JS .(july 2018) 03 L2 6

45. Explain DOM tree traversal properties and modifications methods. . 03 L2 6


(july 2018)
46. Describe absolute, relative, fixed and static positioning in JS. .(july 03 L2 8
2018)
47. Write JS to validate of mobile phone number.(Jan 2018) 03 L2 6
48. Explain any six JS methods. .(Jan 2018) 03 L2 10
49. Explain JS string property and methods with example.(Jan 2018) 03 L2 6
50. Explain different methods for the Date object in JS.(july 2017) 03 L2 6
51. Write JS to illustrate array of array.( july 2017) 03 L2 6

52. Illustrate with JS program handling of event from button element. 03 L3 6


(jan 2017).
53. Explain postioning of element. (jan 2017). 03 L2 6

54. With an example explain i)document.write ii)alert iii) confirm iv) 03 L2 8


prompt (july 2016)
55. Explain element visibility with an example. (july 2016) 03 L2 5
Module 4
1. List and explain built in functions associated with arrays in php. 04 L2 6
2. What are superGlobals arrays? List and explain their features. 04 L2 6

3. List and briefly describe the ways you can limit the type and size of 04 L2 6
files uploaded?
4. Explain the role of an interface in OOP? (New Scheme)08Marks 04 L2 8

5. Explain different functions available in php for handling files. Give 04 L2 8


examples for opening, closing, reading and writing to files.(jan 2016)
6. With the neat labeled diagram explain the logical structure of arrays. 04 L2 5

7. Write a PHP program to sort the arrays using asort, ksort and rsort 04 L2 5
functions.
8. Discuss the file operations in PHP. 04 L2 5
9. Explain Error Handling and validation with an example. 04 L2 6
10. Explain Error Exception Handling with an example. 04 L2 6
11. Discuss array in php (july 2014). 04 L2 6

12. With an neat diagram, explain logical internal structure of array in 04 L3 8


PHP. (jan 2014, july 2016)
13. Write PHP function that reads content from a file and write into a 04 L2 6
file. (jan 2014).
14. Explain how the elements are added and can delete from the array in 04 L2 6
PHP, give example.
15. Explain briefly sort() and assort() array. 04 L2 4
16. List and explain different operations of array in PHP with an example. 04 L2 8
17. Explain $_GET and $_POST superglobal arrays in PHP. 04 L2 6
18. How to access a data from an array in PHP, show with an example. 04 L2 5
19. What all HTML required for uploading a file. 04 L2 5

20. What are the errors codes occur in PHP while uploading a file, define 04 L2 8
them.
21. Write a code snippet to show limiting a file size in JS, PHP, HTML. 04 L3 6
22. Explain briefly in-memory file function in PHP. 04 L2 6
23. Explain the role of an interface in OOp. 04 L2 6
24. Describe the concept of dynamic dispatching. 04 L2 6
25. How to define a class and create a object in PHP, give example. 04 L3 6

26. How to define methods and constructors in PHP. Give example and 04 L3 6
show the UML.
27. Explain visibility and static member in PHP(july 2017, 2014, 2016) 04 L2 6
28. List and explain the OOP with example to each. 04 L3 8

29. List and explain the types of errors occur in PHP. Give example to 04 L2 8
each.
30. Explain PHP Error Reporting with example to each. 04 L3 4
31. Explain the try and catch block in PHP withan example. 04 L2 6

32. How throwing and rethrowing of an exception is done in PHP. Give 04 L2 6


example.
33. What classes of information are available via the $_SERVER 04 L2 6
superglobal array?
Module 5

1. What is a Cookie? Why are they used? Which function is used in php 05 L2 6
to set a Cookie? Give an example and syntax. (jan 2016)
What is session tracking in web pages? With the help of an example 05 L3
2. php program demonstrate how session can be used to track number 8
of web pages visited in a session (jan 2016)08 Marks.
3. What is web storage in HTML5? How does it differ from HTTP 05 L2 6
cookies? What is HTTP Only cookie?
4. Demonstrate with an example, how information is passed from page 05 L2 6
to another using query string.
5. What is jQuery? List and explain various selectors used in jQuery. 05 L3 8
6. Write advantages and disadvantages of jQuery 05 L2 4
7. Write a jQuery selector to get all that contain the word “DSATM”. 05 L3 8
8. What are the techniques for AJAX file upload? 05 L2 8
9. Explain the working of ajax with an example. 05 L2 8

10. What are the different types of global web storage objects? What is 05 L2 8
their purpose?
11. Describe the use of URL rewriting. 05 L2 6
12. Describe the two models for page caching. 05 L2 6
13. How does object serialization relate to stored sessions in PHP? 05 L2 6

14. What is the difference between page output caching and application 05 L2 6
data caching?
15. Write a jQuery selector to get all the that contain the word ―hello‖? 05 L2 6

16. What is the difference between the append () and appendTo() 05 L2 6


methods
17. What are the two techniques for AJAX file upload. EXPALIN BREFIELY. 05 L2 8

18. Discuss the merits and drawbacks of SOAP and REST based web 05 L2 8
services and for XML versus JSON as a REST data format.
19. What is Cookies and Session tracking, how they are handled in PHP. 05 L2 8
20. Explain HTML5 web Storage. 05 L2 6
21. Explain how entities are declared in XML? 05 L2 8

22. What is XML name space? Give its declaration format with a 05 L2 8
complete example.
23. Explain JSON Structure. 05 L2 8
24. Explain in Detail MVC Frameworks. 05 L2 6
25. Explain Overview of Web Services. 05 L2 8
26. Explain the approaches of XML document processing. 05 L2 6
27. Explain the serialization interface briefly. 05 L2 6

You might also like

pFad - Phonifier reborn

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

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


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy