Showing 561–580 of 603

Q561.Which programming language, named after a famous French mathematician, can correctly compute 5^3 as 125?

Easy
A Pascal
B Eiffel
C Ada
D Smalltalk
Programming Basics PPSC

Correct Answer: A

Pascal is a high-level, structured programming language designed by Niklaus Wirth and named in honor of Blaise Pascal.

Q562.An array data structure is typically categorized as which of the following data types?

Easy
A Primitive data type
B Composite data type
C Derived data type
D Abstract data type
Programming Basics PPSC

Correct Answer: B

An array is a composite data type because it groups a collection of elements (usually of the same type) into a single logical structure.

Q563.An 'expression' in a programming language is defined as a set of which elements?

Easy
A Variables and functions only
B Variables, constants, operators, and functions
C Only constants and operators
D Only functions and operators
Programming Basics PPSC

Correct Answer: B

An expression is any valid combination of variables, constants, mathematical/logical operators, and function calls that can be evaluated to produce a single value.

Q564.In a C++ structure, which statement instructs the compiler to allocate memory for an instance of the structure?

Easy
A struct { ... };
B typedef struct { ... } StructName;
C StructName var;
D #include <iostream>
Programming Basics PPSC

Correct Answer: C

Declaring 'StructName var;' defines a variable of type StructName, prompting the compiler to allocate physical stack memory for its instance.

Q565.Which programming language is a highly efficient system programming language designed specifically for structured programming?

Easy
A Python
B JavaScript
C C language
D HTML
Programming Basics PPSC

Correct Answer: C

The C language was developed in 1972 by Dennis Ritchie as a structured, low-level-access system programming language for operating systems.

Q566.Within a Microsoft Access database file, which objects can be contained and managed?

Easy
A Tables to store data
B Queries to find and retrieve data
C Forms to view and update data
D All of the above
Database Basics PPSC

Correct Answer: D

A complete database file in MS Access can contain multiple objects including tables, queries, forms, and reports to manage data holistically.

Q567.Which view in Microsoft Access is specifically used to define or modify the structure of a database table?

Easy
A Design View
B Table View
C Query View
D Form View
Database Basics PPSC

Correct Answer: A

Design View allows database designers to specify field names, select data types, configure validation rules, and establish primary keys.

Q568.A computer mouse pointing device is designed to be utilized in which category of operating systems?

Easy
A File Operating System
B Graphical User Interface (GUI)
C Linux Operating System
D Disk Operating System (DOS)
Operating Systems PPSC

Correct Answer: B

While text-based systems like DOS do not typically require a mouse, GUIs rely heavily on a mouse to select icons, drag windows, and click buttons.

Q569.A server used to temporarily store copies of recently visited websites and web pages in its database is called a?

Easy
A Proxy server
B Mail server
C DNS server
D Cache server
Database Basics PPSC

Correct Answer: D

A cache server (or web cache) stores copies of web content locally to speed up future requests and save bandwidth.

Q570.If a computer beeps repeatedly during startup or fails to boot, what is the source generating this error signal?

Easy
A The operating system
B The hard drive controller
C The BIOS or UEFI firmware
D The application software
Operating Systems PPSC

Correct Answer: C

Startup beep codes are POST (Power-On Self-Test) diagnostic signals generated by the BIOS/UEFI firmware to report hardware initialization failures.

Q571.What type of code is written by programmers in human-readable programming languages before being compiled?

Easy
A Source code
B Object code
C Machine code
D Binary code
Programming Basics PPSC

Correct Answer: A

Source code consists of statements written by programmers in high-level languages. It is translated by compilers into executable machine/object code.

Q572.In the Ruby programming language, what is the correct syntax used to define a new method?

Easy
A def method_name
B method method_name
C function method_name
D define method_name
Programming Basics PPSC

Correct Answer: A

In Ruby, methods are defined using the 'def' keyword, followed by the method name, and ended with the 'end' keyword.

Q573.What is a fundamental difference in characteristics between JavaScript and Java?

Easy
A There is no difference between them
B In JavaScript, functions are considered fields
C Variables are static in JavaScript
D In JavaScript, functions are values and there is no hard distinction between methods and fields
Programming Basics PPSC

Correct Answer: D

JavaScript is a prototype-based scripting language where functions are first-class citizens (values), whereas Java is a strictly class-based, statically typed language.

Q574.Which loop structure is most commonly used in C programming to iterate through an array with a known size?

Easy
A If loop
B Switch loop
C For loop
D While loop
Programming Basics PPSC

Correct Answer: C

The 'for' loop is ideal for array iteration because it packs initialization, condition checking, and index incrementing into a single line.

Q575.What is the maximum positive value that can be stored in a standard 32-bit signed 'int' data type in C++?

Easy
A 32767
B 2147483647
C 65535
D 4294967295
Programming Basics PPSC

Correct Answer: B

A signed 32-bit integer ranges from -2,147,483,648 to 2,147,483,647 (which is 2^31 - 1).

Q576.In computer database systems, how is client-side software communication standardly established with a MySQL server?

Easy
A SQL APIs
B A programming language like C++
C Network calls
D Through the File System
Database Basics PPSC

Correct Answer: C

MySQL operates on a client-server architecture. Clients establish communication with the server by making network calls (TCP/IP socket connections).

Q577.Which SQL command statement is used to permanently delete one or more columns from an existing table?

Easy
A MODIFY TABLE TableName DROP COLUMN ColumnName
B MODIFY TABLE TableName DROP ColumnName
C ALTER TABLE TableName DROP COLUMN ColumnName
D ALTER TABLE TableName DROP ColumnName
Database Basics PPSC

Correct Answer: C

The correct SQL syntax is ALTER TABLE followed by the table name, and then the DROP COLUMN clause with the column name.

Q578.Which SQL operator is used to test a column for the absence of data (representing an empty field)?

Easy
A NOT operator
B IS NULL operator
C EXISTS operator
D None of these
Database Basics PPSC

Correct Answer: B

The IS NULL operator is used to identify fields that do not contain any data or are empty in a relational database table.

Q579.What is the primary purpose of utilizing a Scatter Plot in Exploratory Data Analysis (EDA)?

Easy
A To show the distribution of a single variable
B To visualize and analyze relationships between two continuous variables
C To display categorical counts as separate categories
D To represent strictly linear time-series progressions
Programming Basics PPSC

Correct Answer: B

Scatter plots display data points on a coordinate grid, helping researchers identify patterns, correlations, clusters, or outliers between two continuous variables.

Q580.Which Artificial Intelligence concept allows computer systems to handle vague, imprecise, or non-binary information in a way that mimics human intuition?

Easy
A Boolean logic
B Human intelligence
C Fuzzy logic
D Functional logic
Common Technical Terms PPSC

Correct Answer: C

Fuzzy logic allows computers to evaluate partial truths (values between 0 and 1) rather than strictly binary true/false values, modeling human-like decision-making.