Showing 601–603 of 603

Q601.In C/C++ programming, what roles can a 'null pointer' serve?

Easy
A To stop indirection in a recursive data structure
B As an error return value
C As a sentinel value
D All of the above
Programming Basics PPSC

Correct Answer: D

A null pointer serves multiple roles, including acting as a sentinel, representing function errors, and terminating recursive trees or linked lists.

Q602.In relational database design terminology, records are formally referred to as which of the following?

Easy
A Files
B Tables
C Rows
D Fields
Database Basics PPSC

Correct Answer: C

A row in a database table represents a single, complete record containing multiple fields (attributes).

Q603.The general-purpose 'C' programming language belongs to which category of languages?

Easy
A High-level language
B Low-level language
C Assembly language
D Machine language
Programming Basics PPSC

Correct Answer: A

C is a compiled high-level programming language that abstracts physical hardware details while providing efficient memory access.