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

HTML, CSS, JavaScript, Python Quiz

Uploaded by

Bhupesh Nayak
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)
10 views11 pages

HTML, CSS, JavaScript, Python Quiz

Uploaded by

Bhupesh Nayak
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

Question Paper:

1. Who developed the HTML programming language?

o A) Wick van Rossum

o B) Rasmus Lerdorf

o C) Guido van Rossum

o D) Niene Stom

2. What does HTML stand for?

o A) Hyper Text Markup Language

o B) High-level Text Manipulation Language

o C) Hyperlinking Text Management Language

o D) Hyper Transferable Markup Language

3. Which tag is used to embed CSS in an HTML page?

o A) <css>

o B) <!DOCTYPE html>

o C) <script>

o D) <style>

4. What organization defines Web standards?

o A) Apple Inc.

o B) IBM Corporation

o C) World Wide Web Consortium (W3C)

o D) Microsoft Corporation

5. Which of the following is not a browser?


o A) Mozilla Firefox

o B) Netscape

o C) Microsoft Bing

o D) Opera

6. If we want to set the style for just one element, which CSS selector will we use?

o A) id

o B) text

o C) class

o D) name

7. The HTML tag that specifies a CSS style embedded in an element is called:

o A) Design

o B) Style

o C) Modify

o D) Define

8. Which HTML standard does not require double quotes around attribute values?

o A) HTML 1

o B) HTML 3

o C) HTML 5

o D) HTML 7

9. A stricter type of HTML document is known as:

o A) DHTML

o B) XHTML

o C) XML
o D) HTML

10. What is the correct syntax to link an external style sheet in an HTML file?

o A) <link rel="stylesheet" href="[Link]" />

o B) <link rel="stylesheet" src="[Link]" />

o C) <style rel="stylesheet" src="[Link]" />

o D) <style rel="stylesheet" link="[Link]" />

1. What is CSS?

o A) A style sheet language

o B) A compiled language

o C) A high-level language

o D) All of the mentioned

2. Which tag is used to define an internal style sheet?

o A) <script>

o B) <link>

o C) <class>

o D) <style>

3. Which CSS property is used to make text bold?

o A) text-decoration: bold

o B) font-weight: bold

o C) font-style: bold

o D) text-align: bold

4. What does the background-image property do in CSS?


o A) Sets the background color

o B) Sets the background image

o C) Sets the border image

o D) Sets the image as a border

5. Which CSS selector is used to specify a rule for a particular unique element?

o A) tag

o B) id

o C) class

o D) both class and tag

6. Which CSS property defines the different properties of all four sides of an

element’s border in a single declaration?

o A) border-image-source

o B) border-image

o C) border-image-source

o D) border-image

1. What is the output of the following JavaScript code snippet?

JavaScript

[Link](0.1 + 0.2 === 0.3);

AI-generated code. Review and use carefully. More info on FAQ.

- A) true

- B) false
2. Which of the following is not a valid JavaScript data type?

o A) Symbol

o B) BigInt

o C) Complex

o D) Object

3. What does the bind() method do in JavaScript?

o A) Binds an event handler to an element

o B) Binds a function to a context

o C) Binds a variable to a scope

o D) Binds a property to an object

4. What is the result of the expression typeof null?

o A) “null”

o B) “object”

o C) “undefined”

5. Which built-in function in JavaScript is used to sort an array?

o A) sort()

o B) sorted()

o C) order()

o D) arrange()
6. What does the this keyword refer to in JavaScript?

o A) The current function

o B) The global object

o C) The calling object

o D) The parent function

7. What is the purpose of the async keyword in JavaScript?

o A) To define asynchronous functions

o B) To handle exceptions

o C) To create anonymous functions

o D) To declare variables

8. Which of the following is a valid way to create an empty object in JavaScript?

o A) {}

o B) new Object()

o C) [Link](null)

o D) All of the above

9. What does the [Link]() method do?

o A) Resolves all promises sequentially

o B) Resolves the first promise that fulfills

o C) Resolves all promises concurrently


o D) Rejects all promises

10. What is the purpose of the use strict directive in JavaScript?

o A) To enable strict mode

o B) To disable strict mode

o C) To allow undeclared variables

o D) To enable debugging

1. What is the output of the following Python code snippet?

Python

x = [1, 2, 3]

y=x

y[0] = 10

print(x[0])

- A) 1

- B) 10

- C) 2

- D) Error

2. Which of the following is not a valid Python data type?

o A) Complex
o B) Decimal

o C) Rational

o D) Imaginary

3. What does the yield keyword do in Python?

o A) Defines a generator function

o B) Raises an exception

o C) Returns a value from a function

o D) Creates a coroutine

4. What is the result of the expression 3 // 2?

o A) 1.5

o B) 1

o C) 2

o D) 1.0

5. Which built-in function in Python is used to sort a list?

o A) sort()

o B) sorted()

o C) order()

o D) arrange()

6. What does the self keyword refer to in Python?


o A) The current class

o B) The parent class

o C) The instance of the class

o D) The global scope

1. Django is a Python-based ____.

o A) web framework

o B) video creating tool

o C) analysis tool

o D) desktop development platform

2. Django is maintained by which organization/company?

o A) Oracle

o B) Microsoft Corporation

o C) Python Software Foundation

o D) Django Software Foundation

3. What does MTV stand for in Django?

o A) model–template–views

o B) make–test–views

o C) model–template–verify

o D) mobile–template–verification
4. Who is/are the original author(s) of Django?

o A) Pearu Peterson, Robert Kern, and Travis Oliphant

o B) Adrian Holovaty and Simon Willison

o C) Adrian Hallet and Simon Willison

o D) Larry Ellison, Bob Miner, and Ed Oates

5. Which command is used to create the first project in Django?

o A) django-admin startproject project_name

o B) django-admin startapp project_name

o C) django-admin create project_name

o D) django-admin createproject project_name

6. What is the purpose of Django’s Object-Relational Mapping (ORM)?

o A) To create user interfaces

o B) To manage database connections

o C) To map Python objects to database tables

o D) To handle HTTP requests

7. Which authentication system does Django provide out of the box?

o A) OAuth

o B) JWT

o C) Basic authentication
o D) User authentication

8. What is the purpose of Django’s template engine?

o A) To create database models

o B) To define URL patterns

o C) To generate dynamic HTML content

o D) To handle form submissions

9. Which middleware component in Django handles cross-site request forgery (CSRF)

protection?

o A) Authentication middleware

o B) Security middleware

o C) CSRF middleware

o D) Session middleware

10. What is the purpose of Django’s admin interface?

o A) To manage user authentication

o B) To create database migrations

o C) To handle URL routing

o D) To manage application data through a web-based interface

You might also like