Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

UBC CPEN 223 – FINAL Practice Test Exam GRADED A+ with Revised Q & A 2023/2024 VERIFIED

Beoordeling
-
Verkocht
-
Pagina's
20
Cijfer
A+
Geüpload op
07-12-2023
Geschreven in
2023/2024

UBC CPEN 223 – FINAL Practice Test Exam GRADED A+ with Revised Q & A 2023/2024 VERIFIED 3 C's for "good Software" correct answers - Correct (safe from bugs) - Comprehensible (easy to understand) - Changeable (ready to change) Static Checking correct answers The checking that is done at compilation. - Bug automatically found before program runs Dynamic Checking correct answers The checking that is done at run time. - Found automatically Benefits of C# correct answers -Safety Type safe, static checking, exception handling, etc - Ubiquity Multiplatform: Mobile, Web, Windows/Mac/Linux - Elegance - Popular - Powerful - High-level - Modern object oriented Issues with C# correct answers - Verbose: takes a lot of code to do simple task - Large: many features static void Main() correct answers The starting place of a program int varName = 92; correct answers Declaring an int type variable double VarName = 1.45; correct answers Declaring a double type variable char varName = '*'; correct answers Declaring a char type variable Two categories of C# types correct answers - Value types - Reference types C# operators correct answers - arithmetic ( +, -, /, % (remainder), *) - comparison (==, !=, , =, ...) - conditional (&&, ||, !) C# selection statements correct answers - if(condition) - else if(condition) - switch *an alternative to if-else statements C# repetition statements correct answers - while - for - do-while Class correct answers The most important user defined type - Contains two types of members; Data members (fields, ..) that store the data within the ______. Function members (methods, constructors, ...) that perform operations on the data Methods correct answers A block of code that contains a series of statements. Arrays correct answers stores a fixed-size collection of elements How to initialize an array correct answers int[] nameOfVariable = new int[5]; - The size of the ______ is 5. int [] nameOfVariable = new int[] {1, 2, 3, 4, 5}; int [] nameOfVariable = {1, 2, 3, 4, 5}; What is a Data Type? correct answers A _____ is a set of values and the operations that are permitted on the values Value pre-defined types correct answers - int - long - double - char - uint - bool - decimal - bool - byte - sbyte - float - uint - short - ushort

Meer zien Lees minder
Instelling
CPEN
Vak
CPEN

Voorbeeld van de inhoud

UBC CPEN 223 – FINAL Practice Test Exam GRADED A+
with Revised Q & A 2023/2024 VERIFIED
3 C's for "good Software" correct answers - Correct (safe from bugs)
- Comprehensible (easy to understand)
- Changeable (ready to change)

Static Checking correct answers The checking that is done at compilation.
- Bug automatically found before program runs

Dynamic Checking correct answers The checking that is done at run time.
- Found automatically

Benefits of C# correct answers -Safety
> Type safe, static checking, exception handling, etc
- Ubiquity
> Multiplatform: Mobile, Web, Windows/Mac/Linux
- Elegance
- Popular
- Powerful
- High-level
- Modern object oriented

Issues with C# correct answers - Verbose: takes a lot of code to do simple task
- Large: many features

static void Main() correct answers The starting place of a program

int varName = 92; correct answers Declaring an int type variable

double VarName = 1.45; correct answers Declaring a double type variable

char varName = '*'; correct answers Declaring a char type variable

Two categories of C# types correct answers - Value types
- Reference types

C# operators correct answers - arithmetic ( +, -, /, % (remainder), *)
- comparison (==, !=, >, >=, ...)
- conditional (&&, ||, !)

C# selection statements correct answers - if(condition)
- else if(condition)
- switch *an alternative to if-else statements

C# repetition statements correct answers - while
- for

,- do-while

Class correct answers The most important user defined type
- Contains two types of members;
> Data members (fields, ..) that store the data within the ______.
> Function members (methods, constructors, ...) that perform operations on the data

Methods correct answers A block of code that contains a series of statements.

Arrays correct answers stores a fixed-size collection of elements

How to initialize an array correct answers int[] nameOfVariable = new int[5];
- The size of the ______ is 5.
int [] nameOfVariable = new int[] {1, 2, 3, 4, 5};
int [] nameOfVariable = {1, 2, 3, 4, 5};

What is a Data Type? correct answers A _____ is a set of values and the operations that are permitted on
the values

Value pre-defined types correct answers - int
- long
- double
- char
- uint
- bool
- decimal
- bool
- byte
- sbyte
- float
- uint
- short
- ushort

Reference pre-defined types correct answers - object
- string
- dynamic

A value type correct answers This type needs only one allocated memory space that stores the actual
data.

A reference type correct answers This type stores the *mention to some other memory location where
the actual data is stored.

Two regions of memory that store data correct answers - stack
- heap

Stack correct answers location for storage of value types

, (last-in, first-out data structure)
- Primary operations:
> push() : addition of an element to the top of the stack
> pop() : removal of an element from the top of the stack
> Clear()
> Remove()
> ToArray()
> Contains()
> Count()

Heap correct answers The reference type is stored in the stack but the actual data is stored in the
"______"

User-defined types correct answers - class
- struct
- array
NOTE: can be classified as either reference or value types

_______ is a type that stores logically related data and functions correct answers a class

Declare a class correct answers class nameOfClass
{
//member declarations
}

A field correct answers - Stores data
- Is a variable (of any type) that is a member of a class
-

PascalCasing correct answers Every word is capitalized

camelCasing correct answers The first word is lowercase, and then concatenating capitalized words

A property correct answers A _________ represents data and appears very much like a field
- Uses PascalCasing

A constructor correct answers A special method that is used to initialize the state of a class instance.
- Executed whenever a new instance of a class is created
- Has no return type
- Named the same as the class it is within

Local variable correct answers Holds temporary data within the scope of the method.
- uses camelCasing

Access modifier correct answers optionally specifies what other part of the program can access the
member

syntax: access modifier for a field correct answers AccessModifier Type Identifier

Geschreven voor

Instelling
CPEN
Vak
CPEN

Documentinformatie

Geüpload op
7 december 2023
Aantal pagina's
20
Geschreven in
2023/2024
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$9.78
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
MastersSetQuizes Harvard
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
13
Lid sinds
3 jaar
Aantal volgers
10
Documenten
594
Laatst verkocht
10 maanden geleden
Masters Set Quizes

Welcome to Masters Set Quizes Your Ultimate Science Exam Preparation Hub to unlock your potential with our comprehensive collection of science study materials tailored for exam success. Whether you're tackling biology, chemistry, physics, or environmental sciences, we've got you covered. Our expert-crafted resources are designed to simplify complex concepts, boost your understanding, and help you ace your exams with confidence. With a range of study guides, practice tests, and interactive learning tools, Master Quiz Bank is your go-to source for mastering science subjects at any level. Get ahead with our science-focused exam preparations always Ace in you Exams with comfort from our academic materials. Wish you all the Best.

Lees meer Lees minder
5.0

2 beoordelingen

5
2
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen