Google News
logo
PostgreSQL - Quiz(MCQ)
A)
Ingres
B)
Pregres
C)
Postgres
D)
None of the above

Correct Answer :   Postgres


Explanation : PostgreSQL, originally called Postgres, was created at UCB by a computer science professor named Michael Stonebraker.

A)
C Language
B)
C++ Language
C)
Java Language
D)
Python Language

Correct Answer :   C Language


Explanation : PostgreSQL written in "C" programming language.

A)
PostgreSQL is a powerful
B)
PostgreSQL is open source
C)
PostgreSQL is object-relational database system
D)
All of the above

Correct Answer :   All of the above


Explanation : PostgreSQL (pronounced as post-gress-Q-L) is an open source relational database management system (DBMS) developed by a worldwide team of volunteers.

A)
limits the row data are returned
B)
limits the column data that are returned
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   limits the row data are returned

A)
2 March 1995
B)
8 July 1996
C)
12 August 1997
D)
5 November 1998

Correct Answer :   8 July 1996

A)
Daniel Abadi
B)
Michael Stonebraker
C)
Margo Seltzer
D)
Jeffrey Naughton

Correct Answer :   Michael Stonebraker


Explanation :

Michael Stonebraker : Originally developed in 1986 as a follow-up to INGRES (an open-source SQL relational database project begun in the early 1970s), POSTGRES, now known as PostgreSQL, was the brainchild of Michael Stonebraker, a computer science professor at Berkeley.

A)
Support for SQL was added in 1994
B)
Released as Postgres95 in 1995
C)
Establishment of the PostgreSQL Global Development Team
D)
All of the above

Correct Answer :   All of the above


Explanation : 1994-1995 − Postgres95 : Support for SQL was added in 1994, Released as Postgres95 in 1995, Re-released as PostgreSQL 6.0 in 1996, Establishment of the PostgreSQL Global Development Team

A)
It must start with a single quote
B)
It must meet the ISO SQL:2008 standard
C)
It must be balanced and true
D)
It must end with a SQL comment ( –)

Correct Answer :   It must be balanced and true

A)
Transaction Control Language
B)
Data Control Language
C)
Data Definition Language
D)
Data Manipulation Language

Correct Answer :   Transaction Control Language

A)
One
B)
Two
C)
Three
D)
All of the above

Correct Answer :   All of the above

A)
You can modify multiple columns.
B)
You can update some rows in a table based on values from another table.
C)
If you try to update a record related to an integrity constraint, it raises an error.
D)
All of the above.

Correct Answer :   All of the above.

A)
pg_dumpall
B)
pg_basebackup
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   pg_basebackup

A)
Java scripting
B)
Malware injection
C)
Cross site scripting
D)
Command Injection

Correct Answer :   Cross site scripting

A)
DELETE FROM CUSTOMER WHERE ..
B)
DROP FROM CUSTOMER ..
C)
UPDATE FROM CUSTOMER ..
D)
REMOVE FROM CUSTOMER ..

Correct Answer :   DELETE FROM CUSTOMER WHERE ..

A)
FETCH
B)
ORDER BY
C)
SELECT FROM
D)
SELECT DISTINCT

Correct Answer :   SELECT FROM

A)
add rows to the table
B)
change the table data
C)
delete rows from the table
D)
change the table structure

Correct Answer :   change the table structure

A)
SELECT Persons.FirstName
B)
SELECT FirstName FROM Persons
C)
EXTRACT FirstName FROM Persons
D)
None of the above

Correct Answer :   SELECT FirstName FROM Persons

A)
help
B)
/help
C)
$help
D)
&help

Correct Answer :   help


Explanation : Using psql, you can generate a complete list of commands by using the help command.For the syntax of a specific command, use the following command : postgres-# help

A)
ABORT
B)
ABORT [ WORK ]
C)
ABORT [ TRANSACTION ]
D)
ABORT [ WORK | TRANSACTION ]

Correct Answer :   ABORT [ WORK | TRANSACTION ]


Explanation : Abort the current transaction : ABORT [ WORK | TRANSACTION ]

A)
Development languages using immutable strings
B)
Unpatched versions of applications and operating systems
C)
Developers not sanitizing application input
D)
Operating systems not restricting memory from one process to another

Correct Answer :   Developers not sanitizing application input

A)
armitage
B)
msfconsole
C)
crowdstrike
D)
Both (A) and (B)

Correct Answer :   Both (A) and (B)

A)
An exact match is not possible in a CREATE statement
B)
An exact match is not possible in a SELECT statement
C)
An exact match is necessary in a CREATE statement
D)
An exact match is necessary in a SELECT statement

Correct Answer :   An exact match is not possible in a SELECT statement

A)
INSERT
B)
ADD
C)
UPDATE
D)
SELECT

Correct Answer :   INSERT

A)
IN
B)
LIKE
C)
BETWEEN
D)
DISTINCT

Correct Answer :   LIKE

A)
ALTER LANGUAGE name OWNER TO new_name
B)
UPDATE LANGUAGE name OWNER TO new_name
C)
ALTER LANGUAGE name RENAME TO new_name
D)
UPDATE LANGUAGE name RENAME TO new_name

Correct Answer :   ALTER LANGUAGE name RENAME TO new_name


Explanation : Change the definition of a procedural language : ALTER LANGUAGE name RENAME TO new_name

26 .
The below command is used to?

ALTER TRIGGER name ON table RENAME TO new_name​
A)
Insert the definition of a trigger
B)
Update the definition of a trigger
C)
Delete the definition of a trigger
D)
Change the definition of a trigger

Correct Answer :   Change the definition of a trigger


Explaination : Change the definition of a trigger : ALTER TRIGGER name ON table RENAME TO new_name

27 .
The below command is used to?
 
ANALYZE [ VERBOSE ] [ table [ (column [, ...] ) ] ]
A)
Start a transaction block.
B)
End a transaction block.
C)
Destroy statistics about a database.
D)
Collect statistics about a database.

Correct Answer :   Collect statistics about a database.


Explaination : Collect statistics about a database : ANALYZE [ VERBOSE ] [ table [ (column [, ...] ) ] ]

A)
\conninfo
B)
SHOW current_connection;
C)
show port;
D)
SELECT current_user;

Correct Answer :   SHOW current_connection;

A)
postgresql-%a.log
B)
‘postgresql-%d.log
C)
‘postgresql-%d-%a.log
D)
‘postgresql-%a-%d-%m.log

Correct Answer :   postgresql-%a.log

A)
Geoblocking
B)
TLD Filtering
C)
Domain Filtering
D)
TTL: Topographic Traffic Limiting

Correct Answer :   Geoblocking

A)
SELECT name, course_name FROM student WHERE age>50 and <80;
B)
SELECT name, course_name FROM student WHERE age>50 and WHERE age<80;
C)
SELECT name, course_name FROM student WHERE age>50 and age<80;
D)
None of the above

Correct Answer :   SELECT name, course_name FROM student WHERE age>50 and age<80;

A)
Proxy
B)
Spider
C)
Response analysis tool
D)
None of the above

Correct Answer :   Spider

A)
two-byte
B)
four-byte
C)
eight-byte
D)
All of the above

Correct Answer :   All of the above


Explanation : Numeric types consist of two-byte, four-byte, and eight-byte integers, four-byte and eight-byte floating-point numbers, and selectable-precision decimals.

A)
\o
B)
psql -o
C)
psql -s
D)
None of the above

Correct Answer :   psql -o

A)
UNION
B)
LEFT JOIN
C)
SELF JOIN
D)
OUTER JOIN

Correct Answer :   SELF JOIN

A)
GRANT
B)
REVOKE
C)
ROLLBACK
D)
All of the above

Correct Answer :   All of the above

A)
Schema
B)
View
C)
Diagram
D)
Trigger

Correct Answer :   Schema

A)
Proxy
B)
Spider
C)
Response analysis tool
D)
None of the above

Correct Answer :   Proxy

A)
binary
B)
money
C)
numeric
D)
character

Correct Answer :   money


Explanation : The money type stores a currency amount with a fixed fractional precision. Values of the numeric, int, and bigint data types can be cast to money. Using Floating point numbers is not recommended to handle money due to the potential for rounding errors.

A)
null
B)
error
C)
unknown
D)
undefined

Correct Answer :   unknown


Explanation : PostgreSQL provides the standard SQL type Boolean. The Boolean data type can have the states true, false, and a third state, unknown, which is represented by the SQL null value.

A)
Network
B)
Push Model
C)
Peer-to-Peer
D)
Client/Server

Correct Answer :   Client/Server


Explanation : PostgreSQL used Client/Server model of communication.

A)
View
B)
Schema
C)
Trigger
D)
Procedure

Correct Answer :   Schema


Explanation : In PostgreSQL, a named collection of tables is called Schema.

A)
Proxy
B)
Spider
C)
Response analysis tool
D)
All of the above

Correct Answer :   Response analysis tool

A)
in ascending order
B)
in a random order
C)
in descending order
D)
grouped together by field type

Correct Answer :   in ascending order

A)
Identify the number of accounts with non-expiring passwords
B)
Show the last login date/time of each administrative user
C)
Show the last login date/time of each non-administrative user.
D)
Give information about domain controllers that have weak network encryption

Correct Answer :   Identify the number of accounts with non-expiring passwords

A)
Linux
B)
Windows
C)
FreeBSD & OpenBSD.
D)
All of the above

Correct Answer :   All of the above

A)
Dollar sign ($)
B)
Backslash character ()
C)
Question mark (?)
D)
Forwardslash character (/)

Correct Answer :   Backslash character ()


Explanation : A meta-command always begins with Backslash character ().

A)
UUID
B)
tsquery
C)
lexemes
D)
None of the above

Correct Answer :   lexemes


Explanation : This is a sorted list of distinct words that have been normalized to merge different variants of the same word, called as lexemes.

A)
enum
B)
boolean
C)
one dimensional
D)
two dimensional

Correct Answer :   two dimensional


Explanation : Geometric data types represent two-dimensional spatial objects.

A)
Optional
B)
Text
C)
Required
D)
Integers

Correct Answer :   Optional

A)
Destroys the table.
B)
Deletes all tuples.
C)
updates the table emp with null.
D)
None of the above

Correct Answer :   Deletes all tuples.

A)
INSERT
B)
UPDATE
C)
DELETE
D)
All of the above

Correct Answer :   All of the above

A)
Java scripting
B)
Malware injection
C)
Cross site scripting
D)
Command Injection

Correct Answer :   Cross site scripting

A)
Table
B)
Trigger
C)
View
D)
Function

Correct Answer :   Trigger

A)
Using domain admin privileged accounts for day-to-day non-admin use.
B)
Enforcing password security on users who do not require it.
C)
Forgetting passwords on systems since they have too many passwords.
D)
Not writing passwords down in a safe place, such as a sticky note on your workstation.

Correct Answer :   Using domain admin privileged accounts for day-to-day non-admin use.