DSSSB TGT / PGT · Topic-wise previous year questions

Computer Science Previous Year Questions (page 6)

1995 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.

  • 1995 questions
  • 19 topics
  • Official answer key
  • Free

Practise by topic

Q251From DSSSB TGT Computer Science Practice Set 3
Which of the following transactions increases the capital of the owner?
  1. AWithdrawal of cash for personal use
  2. BNet Profit earned during the year
  3. CPayment to creditors
  4. DPurchase of furniture
Show answerHide answer

Correct answer: (B) Net Profit earned during the year

Explanation

Net profit earned is added to the owner's capital. Drawings reduce capital, while paying creditors or buying furniture only changes assets and liabilities.

Q252From DSSSB TGT Computer Science Practice Set 3
There are mother centric societies where the eldest woman in the family is the leader. The power of property passes from mother to daughter. Which society is being referred to ?
  1. AA marriage system
  2. BPatriarchy
  3. CMatriarchy
  4. DMisogyny
Show answerHide answer

Correct answer: (C) Matriarchy

Explanation

In a matriarchy the eldest woman heads the family, and property and lineage pass from mother to daughter. The Khasi and Garo of Meghalaya are examples.

Q253From DSSSB TGT Computer Science Practice Set 3
Which of the following is not an aspect of curriculum ?
  1. ADesign
  2. BDesigning co-curriculum activities
  3. CResults
  4. DEducation goals and objectives
Show answerHide answer

Correct answer: (B) Designing co-curriculum activities

Explanation

Per the keyed answer, designing co-curricular activities is treated as a separate activity, not one of the core aspects of curriculum. The core aspects are goals and objectives, design (content and methods) and results (evaluation).

Q254From DSSSB TGT Computer Science Practice Set 3
Which of the following is not a feature of curriculum?
  1. ACurriculum includes all activities
  2. BCurriculum as the end
  3. CCurriculum as a resources
  4. DCurriculum as experience
Show answerHide answer

Correct answer: (B) Curriculum as the end

Explanation

Curriculum is seen as a means to achieve educational goals, not an end in itself. It includes all activities and serves as both a resource and an experience.

Q255From DSSSB TGT Computer Science Practice Set 3
The sum total of all the activities, academic and non-academic, which is impact on the student's accessibility is called
  1. ABlock
  2. BSyllabus
  3. CCurriculum
  4. DCurriculum activities
Show answerHide answer

Correct answer: (C) Curriculum

Explanation

Curriculum is the sum total of all experiences and activities, academic and co-curricular, that a school provides to shape a student. Syllabus covers only the subject content.

Q256From DSSSB TGT Computer Science Practice Set 3
Which of the following is not an important concepts of Vygotsky's theory ?
  1. Asocial interaction
  2. Bculture
  3. Clanguage
  4. Dassessments
Show answerHide answer

Correct answer: (D) assessments

Explanation

Vygotsky's socio-cultural theory centres on social interaction, culture and language (with ZPD and scaffolding). Assessment is not one of its key concepts.

Q257From DSSSB TGT Computer Science Practice Set 3
Proximal distance field and scaffolding are some of the major processes of child development. Who gave these words ?
  1. ARousseau
  2. BVygotsky
  3. CKohlberg
  4. DPiaget
Show answerHide answer

Correct answer: (B) Vygotsky

Explanation

Lev Vygotsky gave the concepts of the Zone of Proximal Development and scaffolding, meaning support from a more knowledgeable person that is gradually withdrawn.

Q258From DSSSB TGT Computer Science Practice Set 3
Every child to the age of six to fourteen years shall have the right to free and compulsory education in a nearby school till the completion of his elementary education. Which act provides the above recommendation?
  1. AKothari commission
  2. BNational policy on education 1986
  3. CNational campaign for secondary education
  4. DRight to education act, 2009
Show answerHide answer

Correct answer: (D) Right to education act, 2009

Explanation

The Right of Children to Free and Compulsory Education Act, 2009 guarantees free and compulsory education to children aged 6 to 14 in a neighbourhood school.

Q259From DSSSB TGT Computer Science Practice Set 3
Which of the following is not a determinant of curriculum?
  1. APersonal talent
  2. Bsocial aspect
  3. CGender role
  4. DBasic needs
Show answerHide answer

Correct answer: (C) Gender role

Explanation

Curriculum is shaped by learners' needs and abilities and by social aspects. Gender roles should not determine curriculum, which must be gender-neutral.

Q260From DSSSB TGT Computer Science Practice Set 3
National education commission (1964-1966) is popularly known as ?
  1. AUniversity education commission
  2. BNational knowledge commission
  3. CKothari commission
  4. DSecondary education commission
Show answerHide answer

Correct answer: (C) Kothari commission

Explanation

The Education Commission of 1964–66 was chaired by Dr. D. S. Kothari, so it is popularly called the Kothari Commission.

Q261From DSSSB TGT Computer Science Practice Set 3
Women are considered weak and flawed, they need protection and not being able to survive alone means ______
  1. AInequality
  2. BStereotype
  3. CEquity
  4. DGender bias
Show answerHide answer

Correct answer: (B) Stereotype

Explanation

Seeing all women as weak and needing protection is a stereotype: a fixed, oversimplified belief applied to a whole group.

Q262From DSSSB TGT Computer Science Practice Set 2
Which data type is mostly returned by fetchall() method in Python-MySQL connectivity? Select the most common answer
  1. AA single list or an empty list, if no more rows are available.
  2. BA list of tuples or an empty list, if no more rows are available.
  3. CA list of dictionaries or an empty list, if no more rows are available.
  4. DA single tuples or an empty tuple, if no more rows are available.
Show answerHide answer

Correct answer: (B) A list of tuples or an empty list, if no more rows are available.

Explanation

cursor.fetchall() returns the remaining rows as a list of tuples (one tuple per row), or an empty list if no rows are left.

Q263From DSSSB TGT Computer Science Practice Set 2
XML is designed to ______ and ______ data. Select the best pair of answers from the following options.
  1. ADesign, transport
  2. BStore, design
  3. CStore, transport
  4. DFormat, design
Show answerHide answer

Correct answer: (C) Store, transport

Explanation

XML was designed to store and transport data, while HTML was designed to display data.

Q264From DSSSB TGT Computer Science Practice Set 2
How many times the below FOR LOOP gets executed ? <SCRIPT LANGUAGE = "VBScript"> Q = 29 FOR AGE = 5 to Q STEP 6 DOCUMENT.WRITE P NEXT </SCRIPT>
  1. A4 times
  2. B5 times
  3. CIt will not execute as STEP parameter is wrong
  4. DIt will not execute as P is not enclosed in ( )
Show answerHide answer

Correct answer: (B) 5 times

Explanation

Corrected: the book's key says (d). The loop runs for AGE = 5, 11, 17, 23, 29, i.e. 5 times.

Q265From DSSSB TGT Computer Science Practice Set 2
What is the output of the following code snippet of VBScript ? 18 MOD 7+4*2−10
  1. A4
  2. B1
  3. C0
  4. D2
Show answerHide answer

Correct answer: (D) 2

Explanation

In VBScript, * is evaluated before MOD, and MOD before + and −. 18 MOD 7 = 4 and 4*2 = 8, so 4 + 8 − 10 = 2.

Q266From DSSSB TGT Computer Science Practice Set 2
This question is based on following table : TABLE : DELIVERY SNO | DBOY | ITEM | STAR | AMOUNT 1001 | AMAN | FOOD | 5 | 3000 1005 | JONES | MEDICINE | 3 | 5000 1008 | AMAN | MEDICINE | 2 | 4000 1009 | RAZID | FOOD | 4 | 4500 1010 | JONES | GIFT | 5 | 5000 1018 | AMAN | FOOD | 5 | 3000 1022 | RAZID | MEDICINE | 4 | 5000 Which of the following SQL commands will remove the rows, which have column value of STAR less than 5 ?
  1. AREMOVE FROM DELIVERY WHERE STAR < 5;
  2. BDROP TABLE DELIVERY WHERE STAR < 5;
  3. CDELETE FROM DELIVERY WHERE STAR < 5;
  4. DDELETE * FROM DELIVERY WHERE STAR < 5;
Show answerHide answer

Correct answer: (C) DELETE FROM DELIVERY WHERE STAR < 5;

Explanation

DELETE FROM table WHERE condition removes matching rows. There is no REMOVE command, DROP removes the whole table, and DELETE * is not valid standard SQL.

Q267From DSSSB TGT Computer Science Practice Set 2
Consider the following tables in a database SPORTS : Table 1 : STUDENTS ADMNO | SNAME 101 | AMAR 205 | MARIA 410 | MALALA Table 2 : GAMES GAMEID | GNAME G03 | CRICKET G05 | FOOTBALL Which of the following SQL Command will produce an output as : SNAME | GNAME AMAR | CRICKET MARIA | CRICKET MALALA | CRICKET AMAR | FOOTBALL MARIA | FOOTBALL MALALA | FOOTBALL
  1. ASELECT SNAME, GNAME FROM STUDENTS, GAMES;
  2. BSELECT SNAME, GNAME FROM STUDENTS X GAMES;
  3. CSELECT SNAME FROM STUDENTS, GNAME FROM GAMES;
  4. DSELECT SNAME FROM STUDENTS, SELECT GNAME FROM GAMES;
Show answerHide answer

Correct answer: (A) SELECT SNAME, GNAME FROM STUDENTS, GAMES;

Explanation

Listing two tables with no join condition gives their Cartesian product: every student paired with every game (3 × 2 = 6 rows), which matches the output.

Q268From DSSSB TGT Computer Science Practice Set 2
This question is based upon the following class and code segment : class STOCK { float price ; public : STOCK( ) ; // Function 1 STOCK(float P) ; // Function 2 STOCK(STOCK &S) ; // Function 3 void INIT( ) ; // Function 4 void DISP( ) ; // Function 5 ~ STOCK( ) ; // Function 6 }; void main( ) { STOCK S2(10) ; // Statement 1 ______ ______ // Other Statements ______ } Which of the following declaration/statement will invoke the default constructor of the class - STOCK?
  1. ASTOCK S1(S2);
  2. BSTOCK S2;
  3. CSTOCK S1(20);
  4. DS2.INIT();
Show answerHide answer

Correct answer: (B) STOCK S2;

Explanation

Corrected: the book's key says (a), but STOCK S1(S2) calls the copy constructor. A declaration without arguments, like STOCK S2, invokes the default constructor.

Q269From DSSSB TGT Computer Science Practice Set 2
Name the type of Inheritance if Activity, Teacher and SUPW are C++ Classes and → denotes inheritance. Activity ↓ Teacher ↓ SUPW
  1. AMulti Level Inheritance
  2. BMultiple Inheritance
  3. CSingle Level Inheritance
  4. DHybrid Inheritance
Show answerHide answer

Correct answer: (A) Multi Level Inheritance

Explanation

Teacher inherits from Activity, and SUPW inherits from Teacher. A chain of single inheritance like this is multilevel inheritance.

Q270From DSSSB TGT Computer Science Practice Set 2
Which of the following is the correct order of problem solving steps ?
  1. ATesting and Debugging, Coding, Analysing the problem, Developing an Algorithm
  2. BDeveloping an Algorithm, Coding, Testing and Debugging, Analysing the problem
  3. CAnalysing the problem, Developing an Algorithm, Coding, Testing and Debugging
  4. DDeveloping an Algorithm, Analysing the problem, Coding, Testing and Debugging
Show answerHide answer

Correct answer: (C) Analysing the problem, Developing an Algorithm, Coding, Testing and Debugging

Explanation

Corrected: the book's key says (b). The standard order is: analyse the problem, develop an algorithm, code, then test and debug.

Q271From DSSSB TGT Computer Science Practice Set 2
Which of the following can be considered as a unary as well as a binary operator ?
  1. A−
  2. B*
  3. C/
  4. D%
Show answerHide answer

Correct answer: (B) *

Explanation

Answer as per the book's key (b): * is binary multiplication and unary dereference. Note that − is also both unary and binary.

Q272From DSSSB TGT Computer Science Practice Set 2
Which of the following options states the correct storage - device hierarchy in terms of decreasing access time?
  1. AMagnetic tape, magnetic disk, cache, main memory
  2. BMagnetic disk, optical disk, main memory, register
  3. CMagnetic tape, magnetic disk, main memory, register
  4. DRegister, main memory, magnetic disk, magnetic tape
Show answerHide answer

Correct answer: (C) Magnetic tape, magnetic disk, main memory, register

Explanation

Decreasing access time means going from slowest to fastest: magnetic tape, magnetic disk, main memory, register. Option A wrongly puts cache before main memory.

Q273From DSSSB TGT Computer Science Practice Set 2
Interrupts are sent by ______ and received by ______.
  1. ACPU, I/O Devices
  2. BI/O Devices, CPU
  3. CTimer, I/O Devices
  4. DCPU, ALU
Show answerHide answer

Correct answer: (B) I/O Devices, CPU

Explanation

Corrected: the book's key says (a). Interrupts are sent by I/O devices and received by the CPU.

Q274From DSSSB TGT Computer Science Practice Set 2
Name the top level object also known as the default object of the JavaScript Object Model.
  1. ADocument
  2. BBody
  3. CLocation
  4. DWindow
Show answerHide answer

Correct answer: (D) Window

Explanation

window is the top-level (global) object of the browser object model. document, location and others are its properties.

Q275From DSSSB TGT Computer Science Practice Set 2
Which of the following is not an advantage of client - side scripting ?
  1. AFast processing as data is not sent to the server
  2. BGive developers more control over behaviour of web widgets
  3. CAllow for more interactivity by immediate responses to user's actions
  4. DGive developers more control for data repositories across systems
Show answerHide answer

Correct answer: (D) Give developers more control for data repositories across systems

Explanation

Client-side scripts run in the browser and give speed, control of widgets and interactivity. Managing data repositories across systems is done on the server side.

Q276From DSSSB TGT Computer Science Practice Set 2
Which of the following C++ Statements will open a text file "VIEWS. TXT" in which read as well as write activities are required at the same time?
  1. AFstream F ("VIEWS.TXT", ios :: read | ios :: write);
  2. BFstream F ("VIEWS.TXT", ios :: in | ios :: out);
  3. CFstream F ("VIEWS.TXT", ios :: in | out);
  4. DFstream F ("VIEWS.TXT", ios :: read | write);
Show answerHide answer

Correct answer: (B) Fstream F ("VIEWS.TXT", ios :: in | ios :: out);

Explanation

An fstream opened with ios::in | ios::out allows both reading and writing. ios::read and ios::write do not exist.

Q277From DSSSB TGT Computer Science Practice Set 2
Which of the following file stream function will not move the file pointer to (N+1)th record of a binary file F created with the help of objects of class EMPLOYEE ?
  1. AF. seekp (N*sizeof (EMPLOYEE));
  2. BF. seekg (F.tellg( )*N);
  3. CF. seekg (sizeof (EMPLOYEE)*N);
  4. DPOS = sizeof (EMPLOYEE)*N;
Show answerHide answer

Correct answer: (B) F. seekg (F.tellg( )*N);

Explanation

seekg(F.tellg()*N) multiplies the current position by N, which is not the offset of the (N+1)th record. The correct offset is N*sizeof(EMPLOYEE).

Q278From DSSSB TGT Computer Science Practice Set 2
In Visual Basic, if CHR(65) is "A" what will be displayed in text box with following statement ? txtBox.Text = "A" & CHR(77) & "T"
  1. A657784
  2. BAMT
  3. CA M T
  4. D65 77 84
Show answerHide answer

Correct answer: (B) AMT

Explanation

CHR(77) is "M", and & joins strings, so "A" & "M" & "T" gives AMT.

Q279From DSSSB TGT Computer Science Practice Set 2
In Visual Basic, variable declared inside a procedure are said to have ______ scope.
  1. AGLOBAL
  2. BLOCAL
  3. CMODULE-LEVEL
  4. DPROGRAM - LEVEL
Show answerHide answer

Correct answer: (B) LOCAL

Explanation

The book prints option (c) as LOCAL again; it has been replaced with MODULE-LEVEL so only one option is correct.

Q280From DSSSB TGT Computer Science Practice Set 2
Which of the following statements about disk scheduling algorithms is correct ?
  1. AThe disk arm behaves like an elevator in SCAN algorithm
  2. BFCFS provides fastest service to the disk requests
  3. CSSTF algorithm is an optimal algorithm
  4. DSCAN algorithm provides more uniform wait time compared to C - SCAN algorithm
Show answerHide answer

Correct answer: (A) The disk arm behaves like an elevator in SCAN algorithm

Explanation

In SCAN, the disk arm moves to one end, then reverses, serving requests along the way, like an elevator. C-SCAN, not SCAN, gives more uniform waiting time.

Q281From DSSSB TGT Computer Science Practice Set 2
Which of the following statements is incorrect?
  1. ACounting semaphore can be used to control access to finite number of instances of a resource
  2. BReader writers problem typically arises when several concurrent processes share the data base
  3. CBanker's algorithm prevents dead lock
  4. DA computer system is in a safe state only if there exists a safe sequence
Show answerHide answer

Correct answer: (C) Banker's algorithm prevents dead lock

Explanation

The banker's algorithm avoids deadlock (by checking for a safe state); it does not prevent it. Prevention means removing one of the four necessary conditions.

Q282From DSSSB TGT Computer Science Practice Set 2
Determine the size of PROM required for implementing the 16-to-1 multiplexer.
  1. A1M x 1
  2. B2M x 1
  3. C8M x 1
  4. D32M x 1
Show answerHide answer

Correct answer: (A) 1M x 1

Explanation

A 16-to-1 MUX has 16 data inputs + 4 select lines = 20 inputs. A PROM needs 2²⁰ words × 1 output bit = 1M × 1.

Q283From DSSSB TGT Computer Science Practice Set 2
The simplest, but most expensive, approach to introductory redundancy is duplicate to every disk. This technique is called
  1. ASwap space.
  2. BMirroring.
  3. CPage slots.
  4. DNone of these
Show answerHide answer

Correct answer: (B) Mirroring.

Explanation

Mirroring (RAID 1) keeps a duplicate copy of every disk. It is the simplest form of redundancy but the costliest, because storage is doubled.

Q284From DSSSB TGT Computer Science Practice Set 2
Bridge works in which layer of the OSI model ?
  1. AApplication Layer
  2. BTransport Layer
  3. CNetwork layer
  4. DDatalink Layer
Show answerHide answer

Correct answer: (D) Datalink Layer

Explanation

A bridge filters and forwards frames using MAC addresses, so it works at the data link layer (layer 2).

Q285From DSSSB TGT Computer Science Practice Set 2
The following figure is a ______ tree after zig_Zig rotations. Tree: root X; X has left child A and right child P; P has left child B and right child G; G has left child C and right child D.
  1. AHeap
  2. BBubble
  3. CSplay
  4. DBinary
Show answerHide answer

Correct answer: (C) Splay

Explanation

Zig-zig rotations are the restructuring steps of a splay tree, which move an accessed node up to the root.

Q286From DSSSB TGT Computer Science Practice Set 2
The diagram below represents a solution to the ______ 8 x 8 board (rows 0-7, columns 0-7), one piece per row: Row 0: column 0 Row 1: column 6 Row 2: column 4 Row 3: column 7 Row 4: column 1 Row 5: column 3 Row 6: column 5 Row 7: column 2
  1. AKnights Tour.
  2. BEight Queens Problem.
  3. CKings Problem.
  4. DRooks Problem.
Show answerHide answer

Correct answer: (B) Eight Queens Problem.

Explanation

Each row and each column has exactly one piece, and no two pieces share a diagonal. This is a solution to the Eight Queens problem.

Q287From DSSSB TGT Computer Science Practice Set 2
Determine the function performed by the combinational circuit of the given figure. Circuit: three 2-to-1 MUXes. MUX-1 has inputs I3 (to its I1) and I2 (to its I0). MUX-2 has inputs I1 (to its I1) and I0 (to its I0). The select lines of MUX-1 and MUX-2 are tied together to S1. The output Y of MUX-1 goes to input I1 of MUX-3 and the output Y of MUX-2 goes to input I0 of MUX-3. MUX-3 has select S0 and output F.
  1. A4-to-1 multiplexer
  2. B8-to-1 multiplexer
  3. C16-to-1 multiplexer
  4. D32-to1 multiplexer
Show answerHide answer

Correct answer: (A) 4-to-1 multiplexer

Explanation

MUX-1 and MUX-2 choose between I3/I2 and I1/I0 using S1, and MUX-3 chooses between their outputs using S0. Four inputs and two select lines make a 4-to-1 multiplexer.

Q288From DSSSB TGT Computer Science Practice Set 2
A ______ multivibrator circuit is one in which both LOW and HIGH output states are stable.
  1. AMonostable
  2. BBistable
  3. CMultistable
  4. DTristable
Show answerHide answer

Correct answer: (B) Bistable

Explanation

A bistable multivibrator (flip-flop) has two stable states and stays in either HIGH or LOW until it is triggered.

Q289From DSSSB TGT Computer Science Practice Set 2
How many characters does an escape sequence (\On, \Hn, \n, \f) in C++ consume?
  1. A1
  2. B3
  3. C2
  4. DNone of these
Show answerHide answer

Correct answer: (A) 1

Explanation

An escape sequence is written with two or more characters in the source code, but it represents and stores a single character, so it takes 1 character (1 byte).

Q290From DSSSB TGT Computer Science Practice Set 2
The closeness of the recorded version to the original sound is called
  1. AFidelity.
  2. BDigitization.
  3. CSampling.
  4. DNyquil's theorem.
Show answerHide answer

Correct answer: (A) Fidelity.

Explanation

Fidelity is how closely the recorded or reproduced sound matches the original sound.

Q291From DSSSB TGT Computer Science Practice Set 2
Which of the following topologies gives highest reliability ?
  1. AMesh topology
  2. BBus topology
  3. CStar topology
  4. DRing topology
Show answerHide answer

Correct answer: (A) Mesh topology

Explanation

In a mesh topology each device has dedicated links to the others, so a single link failure does not affect the network. This gives the highest reliability.

Q292From DSSSB TGT Computer Science Practice Set 2
What is the length of an IP address in bytes (Pre-IPv6) ?
  1. A8
  2. B1
  3. C2
  4. D4
Show answerHide answer

Correct answer: (D) 4

Explanation

An IPv4 address is 32 bits = 4 bytes, usually written as four dotted decimal octets.

Q293From DSSSB TGT Computer Science Practice Set 2
Buying and selling goods over the Internet is called :
  1. AEuro-Conversion
  2. BHyper-Marketing
  3. CCyber-Selling
  4. DE-Commerce
Show answerHide answer

Correct answer: (D) E-Commerce

Explanation

E-commerce (electronic commerce) means buying and selling goods and services over the Internet.

Q294From DSSSB TGT Computer Science Practice Set 2
Which one of the following most accurately describes "multiple inheritance" ?
  1. AWhen a child class has both an "is a" and a "has a" relationship with its parent class.
  2. BWhen two classes inherit from each other.
  3. CWhen a base class has two or more derived classes.
  4. DWhen a child class has two or more parent classes.
Show answerHide answer

Correct answer: (D) When a child class has two or more parent classes.

Explanation

Multiple inheritance means one derived (child) class inherits from two or more base (parent) classes.

Q295From DSSSB TGT Computer Science Practice Set 2
Which of the following is not a transaction management SQL command ?
  1. ARollback
  2. BCommit
  3. CSelect
  4. DSavepoint
Show answerHide answer

Correct answer: (C) Select

Explanation

COMMIT, ROLLBACK and SAVEPOINT are transaction control (TCL) commands. SELECT is a data query command.

Q296From DSSSB TGT Computer Science Practice Set 2
Concurrency control in RDBMS is important for which of the following reasons ?
  1. ATo ensure data integrity when reads occur to the database in a multi-user environment.
  2. BTo ensure data integrity when updates occur to the database in a single-user environment.
  3. CTo ensure data integrity when updates occur to the database in a multi-user environment.
  4. DTo ensure data integrity when reads occur to the database in a single-user environment.
Show answerHide answer

Correct answer: (C) To ensure data integrity when updates occur to the database in a multi-user environment.

Explanation

Concurrency control keeps data consistent when several users update the database at the same time, preventing lost updates and inconsistent reads.

Q297From DSSSB TGT Computer Science Practice Set 2
Consider the following code segment: if ( Y<0 ) {X = −X; Y = − Y;} Z = 0; while (Y>0) {Z = Z + X; Y = Y −1;} Assume that X, Y and Z are inter variables, and that X and Y have be initialized. Which of the following best describes what this code segment does?
  1. ASets Z to be the product X* Y
  2. BSets Z to be the sum X+Y
  3. CSets Z to be the absolute value of X
  4. DSets Z to be the value of Y
Show answerHide answer

Correct answer: (A) Sets Z to be the product X* Y

Explanation

If Y is negative, both signs are flipped. The loop then adds X to Z Y times, so Z = X × Y.

Q298From DSSSB TGT Computer Science Practice Set 2
A combinational logic circuit that is used when it is desired to send data from two more source through a single transmission line is known as ______.
  1. ADe-multiplexer
  2. BEncoder
  3. CDecoder
  4. DMultiplexer
Show answerHide answer

Correct answer: (D) Multiplexer

Explanation

A multiplexer selects one of several inputs and sends it over a single output line, so many data sources can share one transmission line.

Q299From DSSSB TGT Computer Science Practice Set 2
Anti-aliasing is important to improve the readability of text. It deals with the:
  1. AElimination of "jaggies".
  2. BSpacing between two individual characters.
  3. CUnderlining of letters.
  4. DSpacing of a group of characters.
Show answerHide answer

Correct answer: (A) Elimination of "jaggies".

Explanation

Anti-aliasing smooths the jagged, staircase edges ("jaggies") caused by pixel sampling, which makes text easier to read.

Q300From DSSSB TGT Computer Science Practice Set 2
Consider a set of n tasks with known runtimes r1, r2 ........ rn, to be run on a uniprocessor machine, Which of the following processor scheduling algorithm will result in the maximum throughput.
  1. APriority scheduling
  2. BRound-robin
  3. CFCFS
  4. DShortest job first
Show answerHide answer

Correct answer: (D) Shortest job first

Explanation

Shortest Job First runs the shortest tasks first, so the average waiting time is minimised and the most jobs are completed per unit time.

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