Which of the following algorithms solves the all pair shortest path problem?
Asked in GPSC Assistant Director (IT), Class-1 2025
Answer under review: our editors are checking this question. Try the other GPSC Prelims previous year questions questions meanwhile.
More GPSC Prelims previous year questions questions
- Consider the string abbccddeee. Each letter in the string must be assigned a binary code satisfying the following properties: For any two letters, the code assigned to one letter must not be a prefix of the code assigned to the other letter. For any two letters of the same frequency, the letter which occurs earlier in the dictionary order is assigned a code whose length is at most the length of the code assigned to the other letter. Among the set of all binary code assignments which satisfy the above two properties, what is the minimum length of the encoded string?
- Let R(a,b,c) and S(d,e,f) be two relations in which d is the foreign key of S that refers to the primary key of R. Consider the following four operations R and S. I. Insert into R II. Insert into S III. Delete from R IV. Delete from S Which of the above can cause violation of the referential integrity constraint?
- A locked database file can be
- An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account A attempted simultaneous transfers of Rs. 10,000 each from account A to account B. Both transactions read the same value Rs. 11,000 as the initial balance in A and were allowed to go through. B was credited Rs. 10,000 twice. A was debited only once and ended up with a balance of Rs. 1,000. Which of the following properties is/are certain to have been violated by the system?
- In a relational data model, which one of the following statements is TRUE?
- If every non-key attribute is functionally dependent on the primary key, then the relation will be in
- Consider a relational table R that is in 3NF, but not in BCNF. Which one of the following statements is TRUE?
- A data file consisting of 1,50,000 student-records is stored on a hard disk with block size of 4096 bytes. The data file is sorted on the primary key RollNo. The size of a record pointer for this disk is 7 bytes. Each student-record has a candidate key attribute called ANum of size 12 bytes. Suppose an index file with records consisting of two fields, ANum value and the record pointer corresponding student-record is built and stored on the same disk. Assume that the records of data file and index file are not split across disk blocks. The number of blocks in the index file is ___________.