Programming Languages and Computer Graphics – Previous Year Questions
229 questions from past UGC NET Paper 2 – Computer Science papers, each with the correct answer. Open any question for its explanation.
- Pointers cannot be used to
- Which mechanism in XML allows organisations to specify globally unique names as element tags in documents?
- The following transformation (with general entries in all four rows) is called[x'] [a1 b1 c1 d1] [x] [y'] = [a2 b2 c2 d2] [y] [z'] [a3 b3 c3 d3] [z] [w'] [e f g h ] [1]
- A top-down approach to programming calls for: Statement I: Working from the general to the specific. Statement II: Postponing the minor decisions. Statement III: A systematic approach. Statement IV: Intermediate coding…
- Which of the following is NOT a logical error?
- Which statement is false?
- The steps for analysis and design of object oriented system: (A) Draw interaction diagrams (B) Draw state chart and object diagram (C) Draw use case and activity diagram (D) Draw component and deployment diagram (E) Dra…
- Given below are two statements: Assertion A: Cohesion is a qualitative indication of the degree to which a module can be written more compactly and is able to complete its function in a timely manner. Reason R: Cohesion…
- Modules X and Y operate on the same input and output, then the cohesion is
- Arrange the following types of Cohesion from best to worst type. A. Logical Cohesion B. Sequential Cohesion C. Communication Cohesion D. Temporal Cohesion E. Procedural Cohesion Choose the correct answer from the option…
- Which of the following UML diagrams has a static view?
- Which of the following statements is/are TRUE? P: In software engineering, defects that are discovered earlier are more expensive to fix. Q: A software design is said to be a good design, if the components are strongly…
- Software coupling involves dependencies among pieces of software called modules. Which of the following are correct statements with respect to module coupling? P: Common Coupling occurs when two modules share the same g…
- Match each UML diagram in List-I with the appropriate description in List-II: List-I (a) State Diagram (b) Use-Case Diagram (c) Class Diagram (d) Activity Diagram List-II (i) Describes how the external entities (people,…
- Coupling is a measure of the strength of the interconnections between software modules. Which of the following are correct statements with respect to module coupling? P: Common coupling occurs when one module controls t…
- A software design pattern often used to restrict access to an object is:
- Consider the following statements regarding software architecture: S1: Coupling is a measure of how well the things grouped together in a module belong together logically. S2: Cohesion is a measure of the degree of inte…
- A software design pattern used to enhance the functionality of an object at run-time is:
- Module design is used to maximize cohesion and minimize coupling. Which of the following is the key to implement this rule?
- The design concept 'Refinement' is a:
- A software design is highly modular if:
- Cohesion is an extension of:
- Given 4 GB (≈ 4.3 × 10⁹ bytes) of virtual address space and a page size of 4 KB (= 4 × 10³ bytes), with each page table entry 5 bytes: how many virtual pages would this imply, and what is the size of the whole page tabl…
- A table T with 17 rows and 1024 columns is stored in memory. T[i][j] and the variable temp are 32-bit floating-point values; memory is word-addressable (1 word = 1 element) and temp is kept in a processor register (no m…
- Using the same table T (17 rows × 1024 columns, 32-bit word-addressable entries, 16 page frames of 1024 words each, LRU) and the same column-averaging program as above, now consider T stored in column-major format. How…
- Using the same table T (17 rows × 1024 columns, 32-bit word-addressable entries, 16 page frames of 1024 words each, LRU) and the same column-averaging program as above, now consider T stored in row-major format. How man…
- Using the same table T (17 rows × 1024 columns, 32-bit word-addressable entries, 16 page frames of 1024 words each, LRU) and the same column-averaging program as above, now consider T stored again in column-major format…
- Using the same table T (17 rows × 1024 columns, 32-bit word-addressable entries, 16 page frames of 1024 words each, LRU) and the same column-averaging program as above, what is the ratio of the number of page faults wit…
- A virtual memory system uses the first-in-first-out (FIFO) page replacement policy and allocates a fixed number of frames to a process. Assertion A: Increasing the number of page frames allocated to a process sometimes…
- Which of the following statement(s) is/are correct with respect to virtual memory? Statement I: Address translation is performed for every logical address used during the execution of a program. Statement II: A program…