COS326 L7 2025

COS326 L7 2025

University

5 Qs

quiz-placeholder

Similar activities

Avaliação de Laboratório de Software

Avaliação de Laboratório de Software

University

10 Qs

9° Lenguajes de Programación

9° Lenguajes de Programación

9th Grade - University

10 Qs

informatika

informatika

7th Grade - University

10 Qs

Industry 4.0 Unit 1

Industry 4.0 Unit 1

University

10 Qs

Java Programming-1

Java Programming-1

University

10 Qs

QUIZ 7 PBO

QUIZ 7 PBO

University

10 Qs

SOAL : Pengenalan Basis Data

SOAL : Pengenalan Basis Data

University

10 Qs

Quiz Network Cabling Structure - SSK20353 -  Network Technology

Quiz Network Cabling Structure - SSK20353 - Network Technology

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.