0% found this document useful (0 votes)
3 views3 pages

Abc

The document provides a comprehensive breakdown of IT concepts, including SQL commands for database access, HTML and JavaScript fundamentals, and programming examples. It covers fill-in-the-blank questions, true/false statements, multiple-choice questions, and sample code for creating HTML tables and forms. The content serves as a study guide for understanding key IT principles and coding practices.

Uploaded by

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

Abc

The document provides a comprehensive breakdown of IT concepts, including SQL commands for database access, HTML and JavaScript fundamentals, and programming examples. It covers fill-in-the-blank questions, true/false statements, multiple-choice questions, and sample code for creating HTML tables and forms. The content serves as a study guide for understanding key IT principles and coding practices.

Uploaded by

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

Here is a breakdown of solutions and explanations for the provided IT question

bank:

---

### **Que.1 Fill in the Blanks**


1. **GRANT** or **REVOKE** commands are used to control user access in a database.
- These SQL commands manage permissions in relational databases.

2. **Relational Database Management System** (RDBMS).


- It organizes data into tables and allows for complex queries and
relationships.

3. The `<input type="radio">` tag creates a radio button.


- It is used to select one option from multiple choices.

4. A variable name in JavaScript is declared with the keyword **var**, **let**, or


**const**.
- Modern practice favors `let` or `const` for block-scoped variables.

5. The **prompt()** function is used to take user input during program execution.

6. **Information** is processed data.


- Data becomes information when it's meaningful and organized.

7. **DBMS** (Database Management System) is software for creating and managing


databases.

8. **HTML document** is a simple text file created using HTML.

9. The web pages are retrieved from the original location with the help of **URLs**
(Uniform Resource Locators).

10. **Attribute** defines a property for an element and consists of an


attribute/value pair.

---

### **Que.2 True or False**


1. **True**: A variable is a basic unit of storage in a JavaScript program.

2. **False**: Data helps in decision-making when analyzed.

3. **True**: HTML provides seven levels of heading tags (`<h1>` to `<h7>`).

4. **False**: Variable names are case-sensitive in JavaScript (`sum` ≠ `SUM`).

5. **True**: Container tags are paired tags (e.g., `<div>` and `</div>`).

6. **True**: A one-to-one relationship links one record in a table to one in


another.

7. **False**: The correct tag for inserting an image is `<img>`.

8. **True**: `if` and `if...else` are control statements in JavaScript.

9. **True**: `<textarea>` creates a textbox with multiple lines.

---
### **Que.3 Multiple Choice (One Correct Answer)**

1. **b) onKeyDown** is the keyboard event triggered when a key is pressed.

2. **d) x++** is the post-increment operator.

3. **a) `<title></title>`**: Content within this tag is displayed in the title bar.

4. **b) --x** is the pre-decrement operator.

5. **d) `<textarea>`** is used to create a textbox with multiple lines.

---

### **Que.4 Multiple Choice (Two Correct Answers)**

1. Attributes of the `<select>` tag: **b) Name** and **d) Multiple**.

2. Mouse Events: **a) onClick** and **e) onMouseUp**.

3. Methods of forms: **a) GET** and **d) POST**.

---

### **Que.5 Multiple Choice (Three Correct Answers)**

1. Valid relationships in RDBMS: **a) one to one**, **c) one to many**, and **e)
many to many**.

2. Attributes of `<textarea>`: **c) Name**, **d) rows**, and **f) cols**.

---

### **Que.6 Write Program**


#### 1. HTML Program to Design a Table
```html
<!DOCTYPE html>
<html>
<head>
<title>Table Design</title>
</head>
<body>
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
<th>City</th>
</tr>
<tr>
<td>John</td>
<td>25</td>
<td>New York</td>
</tr>
<tr>
<td>Jane</td>
<td>30</td>
<td>London</td>
</tr>
</table>
</body>
</html>
```

#### 2. JavaScript Program to Check Even or Odd Number


```javascript
let num = prompt("Enter a number:");
if (num % 2 === 0) {
alert("The number is even.");
} else {
alert("The number is odd.");
}
```

#### 3. HTML Form to Submit Personal Data


```html
<!DOCTYPE html>
<html>
<head>
<title>Personal Data Form</title>
</head>
<body>
<form action="/submit" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name"><br><br>
<label for="address">Address:</label>
<input type="text" id="address" name="address"><br><br>
<label for="standard">Standard:</label>
<input type="text" id="standard" name="standard"><br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
```

#### 4. JavaScript Program for Addition Using Mouseover Event


```html
<!DOCTYPE html>
<html>
<head>
<title>Mouseover Addition</title>
<script>
function addNumbers() {
let num1 = parseInt(document.getElementById("num1").value);
let num2 = parseInt(document.getElementById("num2").value);
document.getElementById("result").innerText = "Result: " + (num1 +
num2);
}
</script>
</head>
<body>
<input type="number" id="num1" placeholder="Enter first number">
<input type="number" id="num2" placeholder="Enter second number">
<p id="result" onmouseover="addNumbers()">Hover to see the result</p>
</body>
</html>
```

You might also like