Showing 381–400 of 603

Q381.Java applets are developed in ______?

Easy
A Java language
B C language
C C++ language
D None of these
Programming Basics PPSC

Correct Answer: A

Java applets are small, interactive application programs designed to run in web browsers, developed natively in the Java programming language.

Q382.A quantity whose value may change during execution of the program is called a _____?

Easy
A Variable
B Header
C Constant
D None of these
Programming Basics PPSC

Correct Answer: A

A variable is a named memory location in programming that can store data whose value is modified or changed during program execution.

Q383.The operating system UNIX was written in _____?

Easy
A C
B C++
C JAVA
D None of these
Programming Basics PPSC

Correct Answer: A

While originally written in Assembly, Ken Thompson and Dennis Ritchie famously rewrote the UNIX operating system kernel in the C language in 1973.

Q384.Which describes meaning to statement of a programming language?

Easy
A Semantic
B Syntax
C Compiler
D None of these
Programming Basics PPSC

Correct Answer: A

Semantics defines the actual meaning or logic of syntactically correct statements in a programming language.

Q385.Which loop is suitable to use in situations where the programmer does not know the number of time the body of the loop will be executed?

Easy
A Nested loop
B Do-while loop
C For loop
D None of these
Database Basics PPSC

Correct Answer: B

A do-while loop (or while loop) is suitable when the number of iterations is unknown beforehand and depends on runtime conditions.

Q386.Which is used when a single block of statements is to be executed if the condition is true?

Easy
A While loop
B Do-while loop
C If statement
D None of these
Programming Basics PPSC

Correct Answer: C

An 'if' statement is the basic conditional branching construct used to run a single block of code if a condition is evaluated as true.

Q387.Which loop is preferred to use when the programmer knows in advance how many times the body of the loop will be executed?

Easy
A While
B For
C Do-while
D None of these
Programming Basics PPSC

Correct Answer: B

The 'for' loop is the preferred loop structure when the number of iterations is fixed and known prior to entering the loop.

Q388.The rules of a programing language according to which statements of program are to be written are referred as _____?

Easy
A Variable
B Syntax
C Semantic
D Expression
Programming Basics PPSC

Correct Answer: B

Syntax represents the formal grammatical rules of a programming language that define the correct structure and format of code statements.

Q389.The process of starting an operating system when the user turns on a computer is known as?

Easy
A Starting
B Loading
C Booting
D None of these
Operating Systems PPSC

Correct Answer: C

Booting (or bootstrap loading) represents the automated startup process that runs when a computer is powered on, initializing hardware and loading the OS kernel into memory.

Q390.Which of the following is a compiler directives?

Easy
A #include<studio.h>
B Int main()
C Float x;
D None of these
Programming Basics PPSC

Correct Answer: A

Preprocessor directives (sometimes called compiler directives) in C/C++ are prefixed with a hash sign, such as #include <stdio.h> (typed as #include<studio.h> in the TestPoint database).

Q391.A well-defined list of steps for solving a particular problem written in a natural language is called ______?

Easy
A Algorithm
B Program
C Flow chart
D None of these
Programming Basics PPSC

Correct Answer: A

An algorithm is a step-by-step, logical set of instructions written in a natural language or pseudo-code to solve a specific problem.

Q392.The _____ is also known as selection statement.

Easy
A Switch
B Goto
C Loop
D None of these
Programming Basics PPSC

Correct Answer: A

The switch (or if-else) statement is classified as a selection statement because it selects a single execution path from several.

Q393.The candidate key that is not selected as primary key is known as _____?

Easy
A Foreign key
B Composite key
C Alternate key
D None of these
Database Basics PPSC

Correct Answer: C

Any candidate key (a column that uniquely identifies rows) not chosen as the primary key of a table is referred to as an alternate key.

Q394.In DBMS _____ level is closest to the physical storage.

Easy
A External
B Internal
C Conceptual
D None of these
Database Basics PPSC

Correct Answer: B

Under the three-schema DBMS architecture, the internal (physical) schema level is closest to the physical storage device.

Q395.Which of the following is correct SQL query to get records of clerks from EMP table?

Easy
A SELECT * FROM EMP WHERE Job = 'Clerk';
B SELECT * FROM EMP WHERE Job == 'Clerk';
C SELECT ALL FROM EMP WHERE Job = 'Clerk';
D None of these
Database Basics PPSC

Correct Answer: A

SQL uses a single equals sign (=) for comparison inside the WHERE conditional clause.

Q396.If the variable name is 'age' and the programmer wants to input age, which is the correct syntax?

Easy
A cin(age)
B cin<<age;
C cin>>age;
D None of these
Programming Basics PPSC

Correct Answer: C

In C++, the stream extraction operator (>>) is used with the standard input stream object (cin) to store inputs into variables.

Q397.If you want to clear previous screen output while running a C/C++ program, which function will you use?

Easy
A clrscr();
B clear_screen();
C scanf();
D None of these
Programming Basics PPSC

Correct Answer: A

The clrscr() utility function (part of the non-standard <conio.h> library) clears the console screen in C/C++.

Q398.Which of the following is correct SQL query that displays all columns from the "STUDENT" table?

Easy
A SELECT * FROM STUDENT;
B SELECT ALL FROM STUDENT;
C DISPLAY * FROM STUDENT;
D None of these
Database Basics PPSC

Correct Answer: A

The asterisk (*) symbol in a SELECT query acts as a wildcard, instructing the SQL engine to retrieve and display all columns of the table.

Q399.When creating a database, what should be the data type of "address" field?

Easy
A Alphabetic
B Integer
C Alpha-numeric
D None of these
Database Basics PPSC

Correct Answer: C

Because home addresses contain a mix of alphabetic text, numbers, and special symbols (like commas or hashes), they require an alphanumeric (or text) data type.

Q400.Which of the following is correct syntax for defining Mathematical constant PI using preprocessor directive in C language?

Easy
A # define PI 3.14
B # define PI = 3.14
C define PI = 3.14
D None of these
Programming Basics PPSC

Correct Answer: A

The preprocessor #define directive does not use an assignment operator (=). Syntax is: #define [NAME] [VALUE].