Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Glenn Downing
executable file 37 lines (27 sloc) 0.788 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#!/usr/bin/env python3

"""
CS373: Quiz #12 (10 pts) <Raul>
"""

""" ----------------------------------------------------------------------
1. What is a primary key?
[Basic UML & SQL: Rows & Tables]
(3 pts)

a minimal unique identifier for each row
"""

""" ----------------------------------------------------------------------
2. What is the multiplicity of an association?
[Basic UML & SQL: Associations]
(3 pts)

how many instances of a class are connected to an instance of another
class
"""

""" ----------------------------------------------------------------------
3. What is the output of the following?
(3 pts)

[6, 9, 8, {'b': 7}]
"""

def f (x = 2, y = 3, z = 4, **t) :
    return [x, y, z, t]

a = [6]
d = {"b" : 7 , "z" : 8}

print(f(y = 9, *a, **d))
Something went wrong with that request. Please try again.