Show answerHide answer
Correct answer: (C) Lexical analysis
Explanation
The lexer produces tokens; the parser builds a parse tree.
DSSSB TGT / PGT · Computer Science
10 Theory of Computation & Compilers (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.
Other Computer Science topics
Correct answer: (C) Lexical analysis
Explanation
The lexer produces tokens; the parser builds a parse tree.
Correct answer: (B) Real users at the customer's site
Explanation
Alpha testing is done at the developer's site.
Correct answer: (C) Interpreter
Explanation
An interpreter translates and executes one statement at a time.
Correct answer: (B) Compiler
Explanation
A compiler translates the whole program; an interpreter works line by line.
Correct answer: (C) MAU
Explanation
In Token Ring, the MAU (Multistation Access Unit) is the hub-like device that houses the switches and connects the stations into a logical ring.
Correct answer: (A) Assembler
Explanation
An assembler translates assembly-language mnemonics into machine code. Compilers and interpreters translate high-level languages, and a linker joins object files.
Correct answer: (A) Compiler
Explanation
A compiler is system software that translates a high-level language program into machine language (object code) as a whole.
Correct answer: (B) Using proper grammar and punctuation
Explanation
Netiquette means polite online behaviour: proper grammar and punctuation, respectful replies, relevant posts and privacy for others. Insults, spam and sharing others' personal data violate it.
Correct answer: (C) Welcoming the child’s language and using it to build understanding
Explanation
The multilingual approach treats the child's home language as a resource: teachers welcome it and use it as a bridge to new concepts and to other languages, as NEP 2020 and NCF advise.
Correct answer: (D) The smallest individual units of C program and the basic element recognised by the compiler both
Explanation
Tokens such as keywords, identifiers, constants, strings, operators and punctuators are the smallest individual units of a C program and the basic elements the compiler recognises.
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.