Programming/CS Flashcards

1
Q

XOR

A

Returns true if EITHER A or B is true, but NOT both

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

NOT AND (NAND)

A

Returns true UNLESS both A and B are true (opposite of AND)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

NOT OR (NOR)

A

Returns true ONLY when both A and B are FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Assembly Language

A

Shortcuts for machine language, still not very human readable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

“High-Level” languages

A

More human-readable, have to be compiled before execution, in machine-specific assembly or machine language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Imperative programming paradigm

A

Program as a series of tasks or subroutines, can be re-used. Sequential instructions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Object-oriented programming paradigm

A

Programs are a collection of interacting objects. Class is the blueprint for an Object. Instance is a specific member of the class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Object characteristics

A

Attributes - adjectives
Methods - verbs
Encapsulation - access privileges
Composition - Combination of objects into more complex objects
Inheritance - structure goes to child, can be extended
Polymorphism - Child can override parent attributes/methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Relational database

A
Table = Relation
Attribute = Column
Tuple = Row
Element = Cell
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Inner Join

A

Similar to an AND function. Only returns rows that have values in both tables as linked by PK. So, if one of the tables has a null value in the tuple, it will not be returned in the JOIN results.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

LEFT Outer Join

A

Returns all rows matching criterion from LEFT table, including those with NULL values in the RIGHT table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

RIGHT Outer Join

A

Returns all rows matching criterion from R table, including those with NULL values in the L table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

FULL Outer Join

A

Like an OR function, returns all rows matching either criterion, unless both are NULL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

% vs _ in SQL

A

% is multicharacter wildcard, _ is the exact number of characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Hierarchical database

A

“Know everything about one thing” Easy to traverse vertically not horizontally. MUMPS is archetype in EHRs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

ACID Transaction

A

Atomicity, Consistency (obeys rules of data structure), Isolation (no duplicate actions allowed that would confuse data integrity), Durability (if connectivity is lost, how do we know what happened?)

17
Q

OSI 7-layer model of the internet

A
Application - Data
Presentation - Data
Session - Data
Transport - Segment (TCP) or Datagram (UDP)
Network - Packet
Data Link - Frame
Physical - Bit