C#: Conditional Statements, Loops, and Arrays

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/28

flashcard set

Earn XP

Description and Tags

If Else, Switch, While Loop, For Loop, Break/Continue

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

29 Terms

1
New cards

Name two advantages that OOP has over procedural programming.

OOP…

  • is faster to execute

  • provides clear structure for programs

  • makes C# code easy to maintain, modify, and debug

  • makes it easy to reuse code/applications w/ less code & less development time

2
New cards

Briefly explain the overall difference b/w procedural programming & object-oriented programming.

Procedural Programming

  • Writing procedures or methods that perform operations on data

OOP

  • Creating objects that contain methods & data

3
New cards

Define “Class” & “Object” in a simple manner.

Class —> template for objects

Object —> instance of a class

4
New cards

When an object is created, it __________ all of the _______ & ________ of its class.

When an object is created, it inherits all of the variables & methods of its class.

5
New cards

T or F: Everything in C# is associated w/ classes & objects, along with its attributes & methods.

True

6
New cards

How do you create a class?

Using the keyword ‘class’

7
New cards

When a variable is declared directly in a class (

8
New cards
9
New cards
10
New cards
11
New cards
12
New cards
13
New cards
14
New cards
15
New cards
16
New cards
17
New cards
18
New cards
19
New cards
20
New cards
21
New cards
22
New cards
23
New cards
24
New cards
25
New cards
26
New cards
27
New cards
28
New cards
29
New cards