0% found this document useful (0 votes)
17 views11 pages

New Microsoft Word Document

Good to message

Uploaded by

Ramesh D
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)
17 views11 pages

New Microsoft Word Document

Good to message

Uploaded by

Ramesh D
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/ 11

1. What does HTML stand for?

o a) Hyper Text Markup Language

o b) Hyperlinks and Text Markup Language

o c) Home Tool Markup Language

o d) None of the above


Answer: a) Hyper Text Markup Language

2. Which HTML tag is used to define a paragraph?

o a) <para>

o b) <p>

o c) <text>

o d) <paragraph>
Answer: b) <p>

3. Which tag is used to create an unordered list in HTML?

o a) <ul>

o b) <ol>

o c) <li>

o d) <list>
Answer: a) <ul>

4. Which tag is used to define a hyperlink?

o a) <link>

o b) <a>

o c) <href>

o d) <url>
Answer: b) <a>

5. Which attribute is used to specify the URL in a hyperlink?

o a) href

o b) src

o c) link

o d) url
Answer: a) href

6. Which HTML tag is used to define a table?

o a) <table>
o b) <tab>

o c) <td>

o d) <tr>
Answer: a) <table>

7. Which tag is used to define a list item in an unordered list?

o a) <ul>

o b) <ol>

o c) <li>

o d) <list>
Answer: c) <li>

8. What is the correct HTML tag to insert an image?

o a) <img>

o b) <image>

o c) <src>

o d) <picture>
Answer: a) <img>

9. Which attribute is used to specify the image source in an <img> tag?

o a) src

o b) alt

o c) url

o d) href
Answer: a) src

10. Which tag is used to define a header in HTML?

o a) <header>

o b) <head>

o c) <h1>

o d) <top>
Answer: a) <header>

Advanced-Level HTML Questions:

1. Which HTML5 tag is used for specifying the main content of the document?

o a) <content>
o b) <main>

o c) <body>

o d) <primary>
Answer: b) <main>

2. Which tag is used to define a navigation block in HTML5?

o a) <nav>

o b) <navigation>

o c) <menu>

o d) <link>
Answer: a) <nav>

3. What is the purpose of the <picture> element in HTML5?

o a) To add a background image

o b) To define responsive images for different screen sizes

o c) To add multiple images for a gallery

o d) To wrap text around an image


Answer: b) To define responsive images for different screen sizes

4. What is the function of the placeholder attribute in HTML5?

o a) To display a description of the input field

o b) To set the default value of the input field

o c) To provide a temporary value that disappears when the user starts typing

o d) To disable the input field


Answer: c) To provide a temporary value that disappears when the user starts typing

5. Which attribute is used in the <meta> tag to define the character encoding in HTML5?

o a) charset

o b) encoding

o c) content

o d) type
Answer: a) charset

6. Which element is used to embed audio in an HTML5 document?

o a) <audio>

o b) <embed>

o c) <source>
o d) <audiofile>
Answer: a) <audio>

7. How do you create a form input that only allows numbers in HTML?

o a) <input type="number">

o b) <input type="text" pattern="[0-9]*">

o c) <input type="digits">

o d) Both a and b
Answer: d) Both a and b

8. Which HTML tag is used to define a template for reuse in HTML5?

o a) <template>

o b) <script>

o c) <include>

o d) <div>
Answer: a) <template>

9. How do you add a favicon (browser icon) to a website in HTML?

o a) <link rel="icon" href="favicon.ico">

o b) <icon href="favicon.ico">

o c) <img src="favicon.ico">

o d) <favicon href="favicon.ico">
Answer: a) <link rel="icon" href="favicon.ico">

10. Which tag is used to define the main navigation menu in HTML5?

o a) <menu>

o b) <nav>

o c) <links>

o d) <section>
Answer: b) <nav>
Here are some sample DBMS (Database Management System) questions for a quiz:

Easy Level:

1. What does DBMS stand for?

a) DataBase Management System

b) Data Backup Management Software

c) Data Batch Maintenance System

d) DataBuffer Management Software

2. Which of the following is a type of DBMS?

a) Hierarchical

b) Network

c) Relational

d) All of the above

3. What is the full form of SQL?

a) Sequential Query Language

b) Structured Query Language

c) Simplified Query Language

d) Systematic Query Language

4. Which of the following is an example of a primary key?

a) Name

b) Email Address

c) Roll Number

d) All of the above

5. In SQL, which command is used to retrieve data from a database?

a) INSERT

b) DELETE

c) SELECT

d) UPDATE

Medium Level:
DBMS

1.What is a foreign key in a database?

a) A primary key in another table

b) A unique identifier in the same table

c) A column that stores external data

d) A randomly generated key

2.Which SQL command is used to remove a table from the database?

a) DELETE

b) DROP

c) REMOVE

d) TRUNCATE

3.What is normalization in DBMS?

a) Converting data into a simpler form

b) Minimizing redundancy and dependency in a database

c) Optimizing the execution time of queries

d) Backing up data

4.What is the difference between DELETE and TRUNCATE in SQL?

a) DELETE removes specific rows, TRUNCATE clears the entire table.

b) DELETE cannot be rolled back, TRUNCATE can.

c) Both are used to delete the entire table.

d) There is no difference.

5.Which of the following is NOT a database management system?

a) MySQL

b) Oracle

c) MS Word

d) MongoDB

Advanced Level:

1.What is the purpose of ACID properties in a database?

a) To ensure chemical stability of data


b) To maintain the integrity of transactions

c) To increase database speed

d) To simplify data retrieval

2.What is a deadlock in DBMS?

a) When multiple processes access the database simultaneously

b) When two or more processes wait for each other to release resources

c) A situation where transactions commit simultaneously

d) None of the above

3.Which join retrieves only the matching rows from both tables?

a) LEFT JOIN

b) INNER JOIN

c) OUTER JOIN

d) CROSS JOIN

4.What is a view in a database?

a) A physical table storing raw data

b) A virtual table created using a query

c) A table used to store backups


C programming :

The C-preprocessors are specified with _________ symbol.

a) #

b) $

c) ” ”

d) &

ans:A

What is an example of iteration in C?

a) for

b) while

c) do-while

d) all of the mentioned

ans:D

Functions in C Language are always _________

a) Internal

b) External

c) Both Internal and External

d) External and Internal are not valid terms for functions

Which of the following are C preprocessors?

a) #ifdef

b) #define

c) #endif

d) all of the mentioned

ans:D

How is search done in #include and #include “somelibrary.h” according to C


standard?

a) When former is used, current directory is searched and when latter is used,
standard directory is searched

b) When former is used, standard directory is searched and when latter is used,
current directory is searched

c) When former is used, search is done in implementation defined manner and when
latter is used, current directory is searched
d) For both, search for ‘somelibrary’ is done in implementation-defined places

ans:B

Which of the following is not possible statically in C language?

a) Jagged Array

b) Rectangular Array

c) Cuboidal Array

d) Multidimensional Array

ans:A

The standard header _______ is used for variable list arguments (…) in C.

a) <stdio.h >

b) <stdlib.h>

c) <math.h>

d) <stdarg.h>

ans:D

n C language, FILE is of which data type?

a) int

b) char *

c) struct

d) None of the mentioned

ans:c
d) A temporary storage location

5.What is the purpose of an index in a database?

a) To enforce constraints

b) To speed up data retrieval

c) To store metadata

d) To improve data redundancy

What is the sizeof(char) in a 32-bit C compiler?

a) 1 bit

b) 2 bits

c) 1 Byte

d) 2 Bytes

ans:c

What is meant by ‘a’ in the following C operation?

fp = fopen("Random.txt", "a");

a) Attach

b) Append

c) Apprehend

d) Add

ans:B

What will be the final value of x in the following C code?

#include <stdio.h>

void main()

int x = 5 * 9 / 3 + 9;

a) 3.75

b) Depends on compiler

c) 24
d) 3

ans:C

You might also like