0% found this document useful (0 votes)
146 views7 pages

HTML, Python, and Java Quiz Questions

Uploaded by

s.charusri428
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)
146 views7 pages

HTML, Python, and Java Quiz Questions

Uploaded by

s.charusri428
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

Quiz questions

HTML Based questions

[Link] is the developer of html?

a) Robert cailliau b) Tim Thompson

c)Charles Darwin d) Tim Berners_Lee

2. Apart from <b> tag, which tag makes text bold?

a) <fat> b) <black>

c) <strong> d) <emp>

[Link] stands for ?

a)What you see is what you get b) what you see is what you Gain

c) When you start is when you go d) None of the above

[Link] is the purpose of using Div tags in HTML?

a) For creating Different b) For styles b) For creating different section

c) For adding headings. d) For adding titles.

[Link] tag is used for creating a drop down selection list?

a) <select> b) <option>

c) <dropdown> d) <list>

[Link] are the two main rendering modes that browsers can use based on the

DOCTYPE declaration?

a)Strict Mode and Transitional mode b)Standard mode and quirks mode

c)Normal mode and legacy mode d) Document Mode and Compatibility

Modemark>kbd>dfn>

[Link] does the “View Page source” option do?

a) Opens the broses developer tools b) Displays the raw HTML code of the

webpage

c) Shows the website’s analytics d) clears the browser cache

7. Which of the following HTML elements is used to embed custom data attributes that
can be accessed via Javascript?
a)<meta> b)<data>

c) data-* d)<param>

8. which is the correct way to embed a video in HTML5?

a) video src=”movie.mp4”> b)<embed>


c)<object> d)<media>
9. Which element is semantically best for marking up a site's primary navigation?
A. <div id="nav"> b)<menu>
c) <nav> d)<section>
10. Which attribute enables an HTML document to opt into using the latest HTML
parsing mode for compatibility?
a . <meta charset="utf-8"> b)<!DOCTYPE html>
c. <meta http-equiy=”X-UA-Compatible”C. d) <html lang=”en”>
content="IE=edge">
General Question
1. Which of the following is NOT a programming paradigm?
A. Object-Oriented
B. Functional
C. Procedural
D. Circular
2. In Big-O notation, what is the complexity of binary search?
A. O(n)
B. O(log n)
C. O(n log n)
D. O(1)
3. Which of the following is NOT part of the OSI model?
A. Transport
B. Presentation
C. Session
D. Application Layer Security
4. In cloud computing, what does SaaS stand for?
A. Software as a Solution
B. Software as a Service
C. Storage as a Service
D. System as a Service
5. Which HTML5 API allows offline storage of data in key-value pairs?
A. localStorage
B. sessionStorage
C. cookies
D. Web Worker.
6. What does RAID 1 provide?
A. Striping without parity
B. Mirroring
C. Parity with striping
D. Hot spares
7. Who is considered the "Father of Artificial Intelligence"?
A. Alan Turing
B. John McCarthy
C. Marvin Minsky
D. Geoffrey Hinton
8. Which type of learning uses labeled data?
A. Supervised Learning
B. Unsupervised Learning
C. Reinforcement Learning
D. Self-Supervised Learning
9. Which language is most commonly used for modern AI development?
A. Java
B. C++
C. Python
D. PHP
10. What is the goal of Natural Language Processing (NLP)?
A. Image recognition
B. Understanding human language
C. Predicting stock markets
D. Training robots
Python
1. In Python, which data type is immutable?
A. List
B. Set
C. Tuple
D. Dictionary
2. What is the output?
print(bool('False'))
[Link]
B. True
C. None
D. Error
3. Which Python data structure is implemented as a hash table internally?

A. List
B. Dictionary
C. Tuple
D. Set
4. Which built-in module provides support for multithreading synchronization
primitives like Lock and R Lock?
A. multiprocessing
B. concurrent
C. threading
D. asyncio
5. Which of these decorators is used to define a property in a Python class?
A. @staticmethod
B. @classmethod
C. @property
D. @attr
6. 5. Which method is called when you use len() on a custom object?

A. __size__()
B. __count__()
C. __len__()
D. __length__()
General question
[Link] of the following is not a valid C data type?
A. int
B. bool
C. char
D. float
2. What is the output of this code?
printf("%d", 5/2);
A. 2
B. 2.5
C. 2
D. Error
3. Which operator is used to get the memory address of a variable?
A. *
B. &
C. ->
D. %
4. Which method is the entry point of every Java program?

A. start()
B. main()
C. init()
D. execute()
5. What is the default value of a boolean in Java?
A. true
B. false
C. null
D. 0
6. Which Java collection does not allow duplicate elements?
A. List
B. Map
C. Set
[Link] Java keyword is used to inherit a class?
A. this
B. implements
C. extends
D. super
8. Which of the following exceptions is a checked exception?
A. Null Pointer Exception
B. IOException
C. Arithmetic Exception
D. Array Index Out Of Bounds Exception
9. Which CSS property is used to change the font type?

A. font-style
B. font-family ✅
C. font-weight
D. font-size
10 Which CSS property makes an element’s position fixed on the screen?
A. absolute
B. fixed ✅
C. sticky
D. relative
11. Which CSS property controls the space inside an element’s border?
A. margin
B. padding ✅
C. spacing
D. border-spacing

You might also like