64 Web Technologies (Computer Science) questions asked in DSSSB TGT / PGT previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.
A four-way set-associative cache memory unit with a capacity of 32 KB is built using a block size of 1 K. The word length is 8 bits. The size of physical address space is 32 GB. The number of bits for the TAG field is:
A22
B24
C25
D23
Show answerHide answer
Correct answer: (A) 22
Explanation
32 KB / 1 KB = 32 blocks, and with 4 ways that is 8 sets (3 set bits). The block offset is 10 bits and the address is 35 bits (32 GB = 2³⁵ bytes). Tag = 35 − 3 − 10 = 22 bits.
Which of the following rule is needed to be followed while declaring the XML
(Extensible Markup Language) elements name?
AName must start with a number
BName can contain spaces
CName must not start with the letter xml
DName cannot contain letter, numbers and other characters
Show answerHide answer
Correct answer: (C) Name must not start with the letter xml
Explanation
XML element names must not start with "xml" (in any case), cannot start with a number or contain spaces, but can contain letters, digits and characters like hyphen and underscore.
While working on a JavaScript project, in your JavaScript application, which function would you use to send messages to users requesting for text input?
ADisplay()
BAlert()
CPrompt()
DGet input()
Show answerHide answer
Correct answer: (C) Prompt()
Explanation
prompt() shows a dialog box with a text field and returns what the user types. alert() only displays a message.
What is the purpose of using a CSS pre-processor in front-end development?
ATo simplify and extend the capabilities of CSS
BTo add interactivity to a web page using JavaScript
CTo add style and layout to a web page using CSS
DTo improve the performance of a web page using optimised code
Show answerHide answer
Correct answer: (A) To simplify and extend the capabilities of CSS
Explanation
A CSS pre-processor such as Sass or LESS adds variables, nesting, mixins and functions to CSS. It simplifies and extends CSS, then compiles to plain CSS.
What is the difference between a CSS grid and a CSS flexbox in front-end development?
AA CSS grid is used for desktop websites, while a CSS flexbox is used for mobile websites.
BThere is no difference between a CSS grid and a CSS flexbox.
CA CSS grid is a one-dimensional layout system for arranging elements in a single line, while a CSS flexbox is a two-dimensional layout system for arranging elements in rows and columns.
DA CSS grid is a two-dimensional layout system for arranging elements in rows and columns, while a CSS flexbox is a one-dimensional layout system for arranging elements in a single line.
Show answerHide answer
Correct answer: (D) A CSS grid is a two-dimensional layout system for arranging elements in rows and columns, while a CSS flexbox is a one-dimensional layout system for arranging elements in a single line.
Explanation
CSS Grid is a two-dimensional layout system (rows and columns). Flexbox is one-dimensional, arranging items along a single row or column.
Communication between end systems is encrypted using a key that is commonly referred to as a:
Asingle key
Bsession key
Cprivate key
Dpublic key
Show answerHide answer
Correct answer: (B) session key
Explanation
A session key is a temporary symmetric key generated for one communication session. It is used to encrypt the data exchanged between the end systems and is then discarded.
How to use these DSSSB TGT / PGT Computer Science questions
Every question here was asked in a real DSSSB TGT / PGT paper; the paper and shift are shown on the card, and the number opens the question on its own page. Try each one before tapping Show answer, then attempt the full DSSSB TGT / PGT papers as timed tests to check your speed under exam conditions.