Comp Sci II Midterm

14 flashcardspar Eucalyptus
Réviser ces flashcardsGratuit · répétition espacée · iPhone, Android, Mac et web

Toutes les cartes

1
Passing by reference using &,
Allows you to change the value of the argument
2
What is the syntax to overload operators such as --, ++, etc?
Object Object::operator--(int)
3
How do you access a static member of an object?
::
4
How do you access a non-static member of an object?
Period
5
What is a pointer?
A variable that holds the address of another variable
6
What is a struct?
A collection of variables. These variables can be of different types, unlike arrays.
7
Declare a struct
struct {
int num;
string str;
} structName;
8
How do you access a member of a structure?
structName.varName
9
What is the difference between a private and public member of a class?
Private members can only be accessed or viewed from inside the class, public members can be accessed outside the class
10
What is the difference between a struct and a class?
A struct has no methods
11
Mutator
Can change the value of one or more data members. Setter, or set, functions are mutators, but it is NOT the case that all mutators are set functions. In the Date class, all the set functions are mutators, but increment() is a mutator as well.
12
Facilitator
Provides a result based upon the value of one or more data members. Facilitators figure something out. In the Date class, leapYear() is one facilitator.
13
Inspector
Sometimes referred to as an accessor function, an inspector merely furnishes the value of one or more data members. Get (or getter) functions are inspectors. In the Date class, getDate() is not a classic get function, as it furnishes multiple data members’ values, but it is certainly an inspector.
14
What does the & operator provide when used?
The address to the variable it is used on
Réviser les 14 cartes gratuitement

Plus de flashcards : Informatique

CIS Module 821 cartesInformatique · AnglaisAlieu Topic 2, Control Statement, Lecture 416 cartesInformatique · AnglaisClementArgc Argv10 cartesInformatique · AnglaisJohnCompTIA Security+ Section 1: Social Engineering224 cartesInformatique · AnglaisJoeIT and Networking Final 2023115 cartesInformatique · Anglaispinkstarfish777Networking and Security Key Terms (Chapter 6)79 cartesInformatique · AnglaisJayDatabases68 cartesInformatique · AnglaisXyzboltCybersecurity: Cryptography56 cartesInformatique · AnglaisAndrewChapter 3: Hardware46 cartesInformatique · Anglais—Griffith—Chapter 2: Cabling and Technology40 cartesInformatique · AnglaisManethelChapter 6: Security, privacy, and data integrity34 cartesInformatique · Anglais—Griffith—Implementation and Testing29 cartesInformatique · Anglais—Griffith—

Tous les decks : Informatique

Révise ces decks dans l’app

Gratuit sur iPhone, Android, Mac et le web. Ajoute n’importe quel deck à ton compte en un tap.

Télécharger dans l’App StoreDisponible sur Google Play
Réviser les 14 cartes gratuitement