DSSSB TGT / PGT · Computer Science

Web Technologies Previous Year Questions (page 2)

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.

  • 64 questions
  • Official answer key
  • Free

Other Computer Science topics

Q51DSSSB TGT Computer Science, 24 Jun 2023, Shift 3 (4:30 PM)
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:
  1. A22
  2. B24
  3. C25
  4. 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.

Q52DSSSB TGT Computer Science, 24 Jun 2023, Shift 3 (4:30 PM)
Which of the following is the syntax to write an external CSS?
  1. A<style rel="stylesheet" type="text/css" href="style.css">
  2. B<style> href="style.css" </style>
  3. C<link rel="stylesheet" type="text/css" href="style.css">
  4. D<a href="style.css" rel="stylesheet" type="text/css" >
Show answerHide answer

Correct answer: (C) <link rel="stylesheet" type="text/css" href="style.css">

Explanation

An external stylesheet is linked in the <head> with <link rel="stylesheet" type="text/css" href="style.css">.

Q53DSSSB TGT Computer Science, 24 Jun 2023, Shift 3 (4:30 PM)
Which of the following is NOT an XML Parser?
  1. AShell
  2. BJDOM
  3. CDOM
  4. DSAX
Show answerHide answer

Correct answer: (A) Shell

Explanation

DOM, SAX and JDOM are XML parsers or APIs. Shell is a command interpreter, not an XML parser.

Q54DSSSB TGT Computer Science, 24 Jun 2023, Shift 3 (4:30 PM)
Which of the following is NOT a feature of ADO.net?
  1. AMaintainability
  2. BInteroperability
  3. CReachability
  4. DScalability
Show answerHide answer

Correct answer: (C) Reachability

Explanation

ADO.NET's listed features are interoperability, maintainability, programmability, performance and scalability. "Reachability" is not one of them.

Q55DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following tag of HTML language is a container for the tags that contain information about the page?
  1. AQuestion content
  2. BQuestion content
  3. CQuestion content
  4. DQuestion content
Show answerHide answer

Correct answer: (C)

Explanation

The head element is a container for tags giving information about the page, such as title, meta, link and style. The body holds visible content.

Q56DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following form is correct to show a ‘comments’ in the HTML language?
  1. A< – – This is a comment – – >
  2. B< – – This is a comment – –! >
  3. C< !– – This is a comment – –! >
  4. D< !– – This is a comment – – >
Show answerHide answer

Correct answer: (D) < !– – This is a comment – – >

Explanation

An HTML comment starts with <!-- and ends with -->, as in option D.

Q57DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following rule is needed to be followed while declaring the XML (Extensible Markup Language) elements name?
  1. AName must start with a number
  2. BName can contain spaces
  3. CName must not start with the letter xml
  4. 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.

Q58DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following HTML tag is used to puts a line break in the text?
  1. AQuestion content
  2. BQuestion content
  3. CQuestion content
  4. DQuestion content
Show answerHide answer

Correct answer: (D)

Explanation

The <BR> tag inserts a line break. <B> makes text bold; <BL> and <L> are not standard tags.

Q59DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
What is the purpose of using a CSS framework in front-end development?
  1. ATo provide a set of pre-designed UI components and styles for faster and consistent development
  2. BTo add style and layout to a web page using CSS
  3. CTo simplify and extend the capabilities of CSS
  4. DTo add interactivity to a web page using JavaScript
Show answerHide answer

Correct answer: (A) To provide a set of pre-designed UI components and styles for faster and consistent development

Explanation

A CSS framework such as Bootstrap or Tailwind gives ready-made UI components, grids and styles, which makes development faster and more consistent.

Q60DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
While working on a JavaScript project, in your JavaScript application, which function would you use to send messages to users requesting for text input?
  1. ADisplay()
  2. BAlert()
  3. CPrompt()
  4. 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.

Q61DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Which of the following is NOT a feature of ADO.net?
  1. AInteroperability
  2. BReachability
  3. CScalability
  4. DMaintainability
Show answerHide answer

Correct answer: (B) Reachability

Explanation

ADO.NET's listed features are interoperability, scalability, maintainability, programmability and performance. "Reachability" is not one of them.

Q62DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
What is the purpose of using a CSS pre-processor in front-end development?
  1. ATo simplify and extend the capabilities of CSS
  2. BTo add interactivity to a web page using JavaScript
  3. CTo add style and layout to a web page using CSS
  4. 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.

Q63DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
What is the difference between a CSS grid and a CSS flexbox in front-end development?
  1. AA CSS grid is used for desktop websites, while a CSS flexbox is used for mobile websites.
  2. BThere is no difference between a CSS grid and a CSS flexbox.
  3. 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.
  4. 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.

Q64DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Communication between end systems is encrypted using a key that is commonly referred to as a:
  1. Asingle key
  2. Bsession key
  3. Cprivate key
  4. 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.

More DSSSB TGT / PGT subjects