0% found this document useful (0 votes)
13 views9 pages

Cse Quiz Viva

Uploaded by

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

Cse Quiz Viva

Uploaded by

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

380

HTML (20 Questions)


1 What does HTML stand for?
HyperText Markup Language.
2 What is the purpose of the `<head>` tag in HTML?
It contains metadata and links to external resources like CSS files, scripts, and the document
title
3 How do you create a hyperlink in HTML?
Using the `<a>` tag: `<a href="url">Link text</a>`
4 What tag is used for adding images in HTML?
`<img src="image_url" alt="description">`
5 How do you create a list of items using HTML?
Use `<ul>` for unordered lists or `<ol>` for ordered lists, with `<li>` tags for list items
6 What is the function of the `<div>` tag?
It is used to group block elements for styling or layout purposes
7 How do you create a table in HTML?
Use the `<table>` tag along with `<tr>`, `<th>`, and `<td>` for rows and cells
8 What tag is used to add metadata to an HTML page?
The `<meta>` tag
9 How do you create a text input field in HTML forms?
Use `<input type="text" name="field_name">`
10 What is the use of the `alt` attribute in the `<img>` tag?
It provides alternative text for the image if it cannot be displayed
11 What is the difference between an ordered list `<ol>` and an unordered list `<ul>`?
Ordered lists use numbers; unordered lists use bullets
12 How do you add a comment in HTML?
Use `<! Comment goes here >`
13 What is the default file extension for HTML files?
` html` or ` htm`
14 How do you link an external CSS file to an HTML document?
Using `<link rel="stylesheet" href="style css">` inside the `<head>` tag
15 What is a semantic HTML tag?
Tags that describe the purpose of content, like `<article>`, `<section>`, `<header>`, `<footer>`
16 How do you create a drop down list in HTML?
Use the `<select>` and `<option>` tags
17 How do you set a background color in HTML?
Use the `style` attribute or CSS: `<body style="background color:lightblue;">`
18 What tag is used for adding audio to an HTML page?
`<audio src="audio_file mp3" controls></audio>`
19 How do you create a checkbox in HTML?
`<input type="checkbox" name="checkbox_name">`
20 What is the use of the `<span>` tag in HTML?
It is used to group inline elements for styling purposes
CSS (15 Questions)
21 What does CSS stand for?
Cascading Style Sheets
22 How do you link an external CSS file to an HTML document?
Use `<link rel="stylesheet" href="styles css">`
23 What is the difference between `id` and `class` in CSS?
`id` is unique to a single element, `class` can be applied to multiple elements
24 How do you center text in CSS?
Use `text align: center;`
25 How do you apply a background color to an element in CSS?
.tag_name{background color: color;}
26 What is the box model in CSS?
The box model includes the content, padding, border, and margin around an element
27 How do you create rounded corners using CSS?
Use the `border radius` property: `border radius: 10px;`
28 What is the use of the `z index` property in CSS?
It controls the stacking order of elements (higher numbers are displayed on top)
29 How do you make text bold using CSS?
Use `font weight: bold;`
30 How do you create a hover effect in CSS?
Use the `:hover` pseudo class, e g , `a:hover { color: red; }`
31 What is the difference between `padding` and `margin` in CSS?
`Padding` is the space inside an element, `margin` is the space outside the element
32 How do you change the font size of an element in CSS?
Use `Tag_name{font size: size;` }
33 What is the use of the `float` property in CSS?
It positions an element to the left or right of its container
34 How do you add a border to an element in CSS?
Use the `border` property: `border: 1px solid black;`
35 How do you make an element responsive using CSS?
Use media queries: `@media screen and (max width: 600px) { }`
PHP (15 Questions)
36 What does PHP stand for?
PHP: Hypertext Preprocessor
37 How do you start and end a PHP block?
Use `<?php` to start and `?>` to end
38 How do you declare a variable in PHP?
Use the `$` symbol: `$variable = "value";`
39 What is the difference between `echo` and `print` in PHP?
`echo` can output multiple arguments, `print` returns 1 and can only output one argument
40 How do you create an array in PHP?
`$array = array("value1", "value2");`
41 How do you connect PHP to a MySQL database?
Use `mysqli_connect("host", "user", "password", "database");`
42 What is the use of the `isset()` function in PHP?
It checks if a variable is set and not null
43 How do you include an external PHP file in another PHP file?
Use `include 'file php';` or `require 'file php';`
44 How do you define a function in PHP?
`function functionName() { }`
45 How do you retrieve form data using PHP?
Use `$_POST["field_name"]` or `$_GET["field_name"]`
46 What is the difference between `GET` and `POST` in PHP?
`GET` sends data via the URL, `POST` sends data via the HTTP request body
47 How do you check if a variable is empty in PHP?
Use the `empty()` function
48 How do you handle errors in PHP?
Use `try catch` blocks or custom error handling functions
49 How do you create a session in PHP?
Use `session_start();` and `$_SESSION["key"] = "value";`
50 How do you redirect to another page in PHP?
Use `header("Location: page php");`
XAMPP/WAMP (10 Questions)
51 What is XAMPP?
A cross platform local server that includes Apache, MySQL, PHP, and Perl
52 What components does XAMPP include?
Apache, MySQL, PHP, Perl, phpMyAdmin
53 What is WAMP?
A Windows based local server that includes Apache, MySQL, and PHP
54 How do you start the Apache server in XAMPP?
Open the XAMPP Control Panel and click "Start" next to Apache
55 How do you create a database in XAMPP?
Open phpMyAdmin, go to the "Databases" tab, and create a new database
56 What is the difference between XAMPP and WAMP?
XAMPP is cross platform, while WAMP is Windows only
57 How do you access phpMyAdmin in XAMPP?
Go to `http://localhost/phpmyadmin/` in your browser
58 Where do you place your PHP files in XAMPP for local hosting?
In the `htdocs` folder within the XAMPP installation directory
59 How do you check if MySQL is running in XAMPP?
Open the XAMPP Control Panel and check the status of MySQL
60 How do you change the port number for Apache in XAMPP?
Edit the `httpd conf` file and change the `Listen` directive
Bootstrap Questions:
1. What is Bootstrap?
A front-end framework for responsive web design with pre styled components.
2. Explain the Bootstrap grid system.
A layout system based on a 12 column structure that adjusts for different screen sizes.
3. What are breakpoints in Bootstrap?
Points at which the layout changes based on screen size (e.g., `sm`, `md`, `lg`).
4. What is the difference between `container` and `container fluid`?
`container`: fixed width; `container fluid`: full width.
5. How do you make a website responsive using Bootstrap?
Use the grid system, responsive classes, and media queries.
MongoDB Questions:
1. What is MongoDB?
A NoSQL, document oriented database that stores data in JSON like documents.
2. What is a NoSQL database?
A non relational database designed for flexibility and scalability.
3. How does MongoDB store data?
In BSON (Binary JSON) format, allowing for varied data structures.
4. What is a collection in MongoDB?
A group of documents, similar to a table in SQL.
5. How do you query data in MongoDB?
Using the `find()` method with filters in JSON like syntax.
HTML, CSS, PHP, and XAMPP more Questions:
1. What is the purpose of HTML in web design?
To structure content on the web.
2. How do you link a CSS file to an HTML document?
Using the `<link>` tag in the `<head>` section.
3. What is the difference between inline and external CSS?
Inline CSS is applied directly in an element's style attribute; external CSS is in a separate file.
4. What is PHP, and why is it used in web development?
A server side scripting language for dynamic web pages.
5. What is XAMPP, and how does it help in web development?
A local server environment to run PHP and MySQL for development and testing.
Tables:
Main features and purposes of html,css,javascript and php in web design.

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