COS326 L7 2025

COS326 L7 2025

University

5 Qs

quiz-placeholder

Similar activities

Clasificación de Bases de Datos

Clasificación de Bases de Datos

10th Grade - University

10 Qs

R Quiz

R Quiz

University

10 Qs

Quiz Web Programming #Week5

Quiz Web Programming #Week5

University

10 Qs

Software Engineering Unit1

Software Engineering Unit1

University

10 Qs

Bilişim Dersi Genel Quiz

Bilişim Dersi Genel Quiz

University

10 Qs

Quiz Ke 8 alprog if-09

Quiz Ke 8 alprog if-09

University

10 Qs

ECM3434 Business Analysis 1 - Business process modelling

ECM3434 Business Analysis 1 - Business process modelling

University

10 Qs

TUTORR DASPROG

TUTORR DASPROG

University

10 Qs

COS326 L7 2025

COS326 L7 2025

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Sheunesu Makura

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid array declaration in PostgreSQL?

  1. text[] schedule[][]

  1. schedule text[][]

  1. ARRAY(text[][])

schedule = text[][]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which PostgreSQL function returns the dimensions of an array?

array_length()

array_dims()

array_size()

array_dimensions()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following query return?

SELECT name FROM sal_Emp WHERE payByQuarter[1] <> payByQuarter[2];

Names of employees with equal first two quarterly payments

Names of employees with different first two quarterly payments

Names of employees with missing payments

Names of employees with NULL values

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to insert a 2D array in PostgreSQL?

ARRAY[ ['a', 'b'], ['c', 'd'] ]

ARRAY( ('a', 'b'), ('c', 'd') )

ARRAY{ {'a', 'b'}, {'c', 'd'} }

ARRAY['a', 'b', 'c', 'd']

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The query

SELECT array_dims(schedule) FROM sal_Emp WHERE name = 'Thando';

returns the _______ of the schedule array.