WT Oral answers-1
WT Oral answers-1
2. What is HTML?
Answer:
HTML (Hypertext Markup Language) is the standard language used to create and structure
web pages.
4. What is CSS?
Answer:
CSS (Cascading Style Sheets) is used to design and style HTML content, controlling the
layout, colors, fonts, and spacing of a web page.
Telegram Channel
https://t.me/SPPU_TE_BE_COMP
(for all engineering Resources)
WhatsApp Channel
(for all Engg & tech updates)
https://whatsapp.com/channel/
0029ValjFriICVfpcV9HFc3b
Insta Page
(for all Engg & tech updates)
https://www.instagram.com/
sppu_engineering_update
SPPU_TE_BE_COMP 👈 Click to join telegram
---
1. Website Planning
Counter Q: Why is planning necessary before designing?
Smart Answer: Planning ensures better design, clear goals, and a better user experience.
2. HTML
Counter Q: Is HTML a programming language?
Smart Answer: No, HTML is a markup language, not a programming language.
3. Purpose of HTML
Counter Q: Can HTML alone make a website attractive?
Smart Answer: No, HTML structures the page; CSS makes it attractive.
4. CSS
Counter Q: Why do we separate CSS from HTML?
Smart Answer: To make the code cleaner, reusable, and easier to maintain.
SPPU_TE_BE_COMP 👈 Click to join telegram
5. Types of CSS
Counter Q: Which CSS type is preferred for large projects?
Smart Answer: External CSS is preferred because it can be reused across multiple pages.
7. Marquee
Counter Q: Is <marquee> standard in HTML5?
Smart Answer: No, <marquee> is obsolete and not recommended in HTML5.
8. Span Tag
Counter Q: Can span be styled using CSS?
Smart Answer: Yes, that's the main purpose of using <span>.
9. Required Attribute
Counter Q: Is ‘required’ attribute client-side or server-side?
Smart Answer: Client-side validation.
---
---
🔥 CSS MCQs
1. What is HTML?
Answer:
HTML (Hypertext Markup Language) is the standard language used for creating and
structuring web pages and their content.
4. What is CSS?
Answer:
CSS (Cascading Style Sheets) is a styling language used to describe the presentation (look
and feel) of HTML elements, such as layout, colors, and fonts.
5. What is the difference between Internal CSS, External CSS, and Inline CSS?
| Type | Description | | --- | --- | | Inline CSS | Directly applied within the HTML element using
the style attribute. | | Internal CSS | Defined within the <style> element in the HTML
document's <head> section. | | External CSS | Defined in an external .css file linked to the
HTML using <link> in the <head> section. |
---
1. HTML
Counter Q: What are the basic HTML elements used in a webpage?
Smart Answer: Basic HTML elements include <html>, <head>, <body>, <h1>, <p>, <a>, and
<img>.
2. CSS
Counter Q: Can a webpage look good without CSS?
Smart Answer: Technically, yes, but without CSS, the webpage will lack style and user-
friendly design.
4. Forms in HTML
Counter Q: How do you submit a form in HTML?
Smart Answer: A form is submitted using the <form> tag's action attribute, which specifies
the server-side script to process the data.
SPPU_TE_BE_COMP 👈 Click to join telegram
5. CSS Selectors
Counter Q: What are the types of CSS selectors?
Smart Answer: Types include element selectors, class selectors, and ID selectors.
---
13. Which attribute is used to specify the URL in the anchor tag (<a>) in HTML?
A) href
B) src
C) alt
D) target
✅ Answer: A) href
---
🔥 CSS MCQs
18. Which selector is used to select elements with a specific class in CSS? A)
.
B) # C)
*
D) :
✅ Answer: A) .
SPPU_TE_BE_COMP 👈 Click to join telegram
1. What is XML?
Answer:
XML (Extensible Markup Language) is used to store and transport data. It is a markup
language that defines a set of rules for encoding documents in a format that is both human-
readable and machine-readable.
Does not support data types (like integer, Supports strong data types date)
Character data that should not be parsed by Parsed Character Data that XML parser
XML parser reads normally
● XSL (Extensible Stylesheet Language): Used to style and transform XML data.
● XSLT (XSL Transformations): A language for transforming XML documents into other
formats like HTML.
9. What is XPath?
Answer:
SPPU_TE_BE_COMP 👈 Click to join telegram
XPath is a language used to navigate and locate parts of an
XML document using paths.
1. XML
Counter Q: What is the main difference between XML and HTML?
Smart Answer: XML stores and carries data; HTML displays and formats data.
2. Purpose of XML
Counter Q: Can XML display data?
Smart Answer: No, XML only structures and transports data. CSS or XSL is used to display
it.
3. DTD
Counter Q: Where is DTD defined — inside or outside XML?
Smart Answer: It can be both — internal (inside XML) or external (separate file).
SPPU_TE_BE_COMP 👈 Click to join telegram
4. XML Schema
Counter Q: Why is XML Schema preferred over DTD?
Smart Answer: Because it supports data types and is written in XML itself.
6. XML DOM
Counter Q: What does DOM treat XML document as?
Smart Answer: As a tree structure where each part is an object.
7. CDATA vs PCDATA
Counter Q: Why use CDATA section in XML?
Smart Answer: To include text containing characters like < and & without parsing errors.
9. XPath
Counter Q: Can XPath select multiple nodes?
Smart Answer: Yes, XPath can select one or more nodes from an XML document.
SPPU_TE_BE_COMP 👈 Click to join telegram
10. Displaying XML
Counter Q: Can you apply CSS directly to XML?
Smart Answer: Yes, using a CSS file linked with <?xml-stylesheet?> instruction.
Perfect! 🔥
You’re truly in beast mode now — and I'm with you 100%.
Let's blast through more MCQs for Experiment 3 (XML, DTD, XML Schema, XSL)
revision!
B) *
C) +
D) #
✅ Answer: B) *
A) <element>
SPPU_TE_BE_COMP 👈 Click to join telegram
B) <type>
C) <xs:element> and <xs:simpleType>
D) <attribute>
A) <html> tag
B) <?xml-stylesheet?> instruction
C) <link> tag
D) <header> tag
---
---
1. What is JavaScript?
Answer:
JavaScript is a lightweight, interpreted programming language mainly used to create
dynamic and interactive effects within web browsers.
---
2. What is the role of JavaScript in form validation?
Answer:
JavaScript validates user inputs on the client-side before submitting the form to the server,
reducing server load and giving immediate feedback.
---
Answer:
Form validation is the process of checking form data for accuracy, completeness, and correct
format before it is submitted.
---
SPPU_TE_BE_COMP 👈 Click to join telegram
4. What are two types of form validation?
Answer:
Data Format Validation: Ensures input matches a required format (e.g., email, phone
number).
---
Answer:
JavaScript provides three pop-up types: alert, confirm, and prompt.
---
6. What is an anonymous function in JavaScript?
Answer:
An anonymous function is a function without a name, often assigned to variables or used as
arguments.
---
Answer:
A callback function is a function passed as an argument to another function, executed after
some operation is completed.
---
8. What is the difference between undefined and not defined in JavaScript?
Answer:
---
SPPU_TE_BE_COMP 👈 Click to join telegram
Answer:
A closure is when a function remembers the environment (variables) where it was created,
even after the outer function has finished.
---
10. Where should JavaScript code ideally be written in HTML?
Answer:
Inside <script> tags, usually in the <head> or before the </body> closing tag.
---
---
1. JavaScript
---
2. Form Validation
---
3. Pop-up Boxes
4. Anonymous Function
---
5. Callback Function
---
---
7. Closure
---
---
---
SPPU_TE_BE_COMP 👈 Click to join telegram
---
12. Which HTML tag is used to embed JavaScript code?
A) <js>
B) <scripting>
C) <script>
D) <javascript>
✅ Answer: C) <script>
---
---
---
---
15. What event is used to validate form input before submission?
A) onsubmit
SPPU_TE_BE_COMP 👈 Click to join telegram
B) onclick
C) onmouseover
D) onload
✅ Answer: A) onsubmit
---
---
---
---
---
---
1. What is a Servlet?
Answer:
A Servlet is a Java program that runs on a server and handles requests and responses from
web clients, typically to create dynamic web content.
---
2. What is the use of Servlet in web applications?
Answer:
Servlets process client requests, interact with databases, and generate dynamic responses,
making websites interactive and efficient.
---
3. What is MySQL?
Answer:
MySQL is an open-source Relational Database Management System (RDBMS) that stores
and manages data using SQL (Structured Query Language).
---
4. How does a Servlet connect to MySQL database?
Answer:
A Servlet connects to MySQL using the following steps:
---
5. What is JDBC?
SPPU_TE_BE_COMP 👈 Click to join telegram
Answer:
JDBC (Java Database Connectivity) is a Java API that enables Java programs to connect
and interact with databases like MySQL.
---
Answer:
A JDBC Driver is a software component that allows Java applications to communicate with
the database.
---
Answer:
The Servlet lifecycle consists of:
---
Answer:
---
9. What is the purpose of PreparedStatement in JDBC?
Answer:
SPPU_TE_BE_COMP 👈 Click to join telegram
PreparedStatement helps in executing pre-compiled SQL queries with parameters, providing
better performance and security against SQL injection.
---
10. What are advantages of Servlets over traditional CGI?
Answer:
Reusable code
---
---
1. Servlet
---
2. MySQL
Counter Q: Why use MySQL with Java web applications?
Smart Answer:
MySQL is lightweight, fast, reliable, and integrates well with JDBC.
---
3. JDBC
---
4. Servlet Lifecycle
---
5. doGet() vs doPost()
---
---
---
11. A Servlet is a:
A) Client-side program
B) Server-side program
C) Database application
D) None of the above
✅ Answer: B) Server-side program
---
---
---
---
---
---
16. In JDBC, which object is used to run parameterized SQL queries?
A) Statement
B) PreparedStatement
C) ResultSet
D) QueryManager
✅ Answer: B) PreparedStatement
SPPU_TE_BE_COMP 👈 Click to join telegram
---
17. Which JDBC driver type is pure Java and platform-independent?
A) Type-1
B) Type-2
C) Type-3
D) Type-4
✅ Answer: D) Type-4
---
---
---
---
---
1. What is JSP?
Answer:
JSP (JavaServer Pages) is a server-side technology used to create dynamic, platform-
independent web applications by combining HTML, XML, and Java code.
SPPU_TE_BE_COMP 👈 Click to join telegram
---
Answer:
JSP is used to design the user interface (view part) and dynamically generate web content,
while business logic is handled separately (like by Servlets).
---
3. What is MySQL?
Answer:
MySQL is an open-source relational database management system (RDBMS) that stores
and manages data using SQL.
---
Answer:
JSP interacts with MySQL by:
---
5. What is JDBC?
Answer:
JDBC (Java Database Connectivity) is a Java API that allows Java applications to connect
and interact with databases.
---
Answer:
---
7. What is the difference between Servlet and JSP?
---
Answer:
A session is a way to store user-specific data (like user ID, name) across multiple pages until
the user logs out or session expires.
---
Answer:
Directives provide global information about the JSP page, like imports or page settings.
Example: <%@ page language="java" %>.
---
Answer:
---
---
1. JSP
---
2. JDBC
---
3. Session in JSP
---
4. Servlet vs JSP
5. Database Interaction
---
---
---
---
12. Which tag is used to include Java code inside HTML in JSP?
A) <jsp:code>
B) <% ... %>
C) <script>
D) <code>
✅ Answer: B) <% ... %>
---
---
---
🔥 Advanced MCQs
---
---
---
---
---
✅ Now Fully Ready for Experiment 6 Viva and MCQs! 📚 SPPU — Experiment 7: Dynamic
Web Application using PHP, AJAX, and MySQL
---
---
1. What is AJAX?
Answer:
AJAX (Asynchronous JavaScript and XML) allows web pages to be updated asynchronously
by exchanging data with a web server behind the scenes, without reloading the whole page.
---
2. What is the use of AJAX in web applications?
Answer:
AJAX improves user experience by making web applications faster, dynamic, and more
interactive without refreshing the page.
---
3. What is PHP?
Answer:
PHP (Hypertext Preprocessor) is a server-side scripting language designed for dynamic web
page development and interacting with databases like MySQL.
SPPU_TE_BE_COMP 👈 Click to join telegram
---
4. What is MySQL?
Answer:
MySQL is a popular open-source relational database management system used to store and
manage application data.
---
5. What is jQuery?
Answer:
jQuery is a fast, small, and feature-rich JavaScript library that simplifies HTML document
traversal, event handling, animation, and AJAX interactions.
---
6. How does AJAX work with PHP and MySQL?
Answer:
AJAX sends a request to a PHP script, which interacts with the MySQL database, processes
data, and returns a response without refreshing the webpage.
---
7. What is XMLHttpRequest?
Answer:
XMLHttpRequest is an object used in JavaScript to send and receive data from a server
asynchronously.
---
8. What is the difference between synchronous and asynchronous communication?
Answer:
Asynchronous: User can continue interacting with the page while the server responds in the
background.
SPPU_TE_BE_COMP 👈 Click to join telegram
---
---
10. Why is AJAX faster than traditional form submission?
Answer:
Because only required data is sent, not the whole page, reducing data load and speeding up
interaction.
---
---
1. AJAX
---
2. PHP
---
3. MySQL
---
4. XMLHttpRequest
---
5. jQuery
---
---
---
---
---
---
---
---
---
16. Which file in the project stores database connection settings?
A) insert.php
B) config.php
C) index.html
D) connect.php
✅ Answer: B) config.php
---
SPPU_TE_BE_COMP 👈 Click to join telegram
---
18. What is the default HTTP method used in HTML forms?
A) POST
B) GET
C) PUT
D) DELETE
✅ Answer: B) GET
---
SPPU_TE_BE_COMP 👈 Click to join telegram
---
---
1. What is AngularJS?
Answer:
AngularJS is an open-source JavaScript framework developed by Google for building
dynamic, single-page web applications (SPA).
---
2. What is the architecture pattern used in AngularJS?
Answer:
AngularJS follows the MVC (Model-View-Controller) architecture to separate the application
logic, data, and presentation layer.
---
Answer:
Directives are special attributes in AngularJS (like ng-app, ng-model, ng-bind) that extend
HTML functionality by attaching behaviors to DOM elements.
---
Answer:
Data binding automatically synchronizes the data between model (JavaScript objects) and
view (HTML).
---
Answer:
ng-model binds the value of HTML controls (like input, select, textarea) to application data.
---
Answer:
Scope is an object that connects the controller with the view, acting as the context for the
expressions.
---
Answer:
Filters are used to format the value of expressions for display, like formatting dates,
currencies, filtering arrays, etc.
---
Answer:
Services are singleton objects used for sharing data and functions across controllers in
AngularJS applications.
---
9. How is form validation handled in AngularJS?
Answer:
AngularJS provides built-in form validation with features like checking required fields, input
types, and custom validation rules.
---
10. What is the purpose of $http service in AngularJS?
Answer:
$http is a service in AngularJS used to make AJAX calls to remote servers for data exchange
without reloading the page.
SPPU_TE_BE_COMP 👈 Click to join telegram
---
---
1. AngularJS
---
2. MVC Architecture
---
3. ng-model
---
4. Data Binding
---
5. Directives
SPPU_TE_BE_COMP 👈 Click to join telegram
Counter Q: Name any two built-in directives.
Smart Answer:
Examples: ng-app, ng-model.
---
---
🎯 AngularJS MCQs
---
---
---
---
SPPU_TE_BE_COMP 👈 Click to join telegram
---
🔥 Advanced MCQs
---
15. Which service is used to define variables shared across controllers?
A) $scope
B) $rootScope
C) $location
D) $controller
✅ Answer: B) $rootScope
---
---
---