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

Unit 3

The document is a quiz on web technology, primarily focusing on internet technology, JavaScript, PHP, and SQL. It includes multiple-choice questions covering various topics such as protocols, scripting languages, HTML tags, and database commands. The quiz assesses knowledge on the purpose of the internet, file transfer protocols, client-side and server-side scripting, and database interactions.

Uploaded by

ybimala17
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 views4 pages

Unit 3

The document is a quiz on web technology, primarily focusing on internet technology, JavaScript, PHP, and SQL. It includes multiple-choice questions covering various topics such as protocols, scripting languages, HTML tags, and database commands. The quiz assesses knowledge on the purpose of the internet, file transfer protocols, client-side and server-side scripting, and database interactions.

Uploaded by

ybimala17
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/ 4

Unit- 3

Web technology-ii
Introduction to Internet Technology

1. What is the primary purpose of the internet?


a) To create hardware networks
b) To connect computers worldwide for data sharing
c) To manage software installations
d) To replace operating systems
2. Which protocol is used for transferring files over the internet?
a) HTTP
b) FTP
c) SMTP
d) DNS

3. Server-side scripting is executed:


a) On the client’s browser
b) On the web server
c) On both client and server
d) On the operating system
4. Which of the following is a client-side scripting language?
a) PHP
b) JavaScript
c) Python
d) SQL

5. Which tag is used to add JavaScript to an HTML page?


a) <script>
b) <style>
c) <javascript>
d) <code>
6. The correct way to reference an external JavaScript file is:
a) <script src="file.js"></script>
b) <js src="file.js"></js>
c) <javascript src="file.js"></javascript>
d) <script ref="file.js"></script>

7. Which of the following is not a valid JavaScript data type?


a) String
b) Boolean
c) Float
d) Object
8. In JavaScript, which keyword is used to declare a variable?
a) var
b) int
c) declare
d) let

9. In JavaScript, a for loop is used for:


a) Repeating a block of code a specific number of times
b) Conditional execution of code
c) Declaring variables
d) Defining data types
10. What will be the output of the following code?

javascript
Copy code
if (5 > 3) {
console.log("True");
} else {
console.log("False");
}

a) True
b) False
c) Error
d) Undefined

11. In JavaScript, an object is a collection of:


a) Variables only
b) Functions only
c) Properties and methods
d) Data types
12. Which event occurs when a user clicks on an HTML element?
a) onchange
b) onclick
c) onmouseover
d) onload

13. The src attribute in an <img> tag specifies:


a) Image location
b) Image size
c) Image type
d) Image style
14. In a form object, the action attribute defines:
a) The URL where form data is sent
b) The style of the form
c) The validation rules
d) The input data type

15. Which JavaScript method is commonly used for form validation?


a) validateForm()
b) checkValidity()
c) testForm()
d) confirmForm()
16. jQuery is a:
a) Programming language
b) JavaScript library
c) Framework
d) Web server

17. PHP stands for:


a) Pre Hypertext Processing
b) PHP Hypertext Preprocessor
c) Programming Hypertext Page
d) Post Hypertext Processor
18. PHP code is executed:
a) In the client’s browser
b) On the web server
c) During database query execution
d) As a compiled program

19. Which symbol is used to start a PHP variable?


a) #
b) $
c) %
d) &
20. Which of the following is not a PHP data type?
a) String
b) Boolean
c) Object
d) Decimal

21. Which function is used to connect PHP to a MySQL database?


a) connect_database()
b) mysql_connect()
c) db_connect()
d) open_database()
22. In SQL, which command is used to retrieve data?
a) INSERT
b) SELECT
c) UPDATE
d) DELETE

23. Which PHP function is used to fetch data from a database table?
a) fetch_data()
b) mysqli_fetch_assoc()
c) get_data()
d) retrieve_data()
24. What is the correct SQL statement to create a table named "Users"?
a) CREATE Users;
b) CREATE TABLE Users;
c) MAKE TABLE Users;
d) INSERT TABLE Users;

You might also like