QUESTION
1. Directions and Guidance
Choose One
Agreed
2. PGF1
Group • 5 questions
2.1 We have, and enforce, late/resubmit penalties in this class.
Choose One • 1 points
True
False
2.2 FSO messages and Discord are the best places to get assistance when your instructor may not be immediately available.
Choose One • 1 points
True
False
2.3 When asking questions, screenshots are often extremely helpful.
Choose One • 1 points
True
False
2.4 You should be checking FSO messages and announcements daily.
Choose One • 1 points
True
-
False
2.2 FSO messages and Discord are the best places to get assistance when your instructor may not be immediately available.
Choose One • 1 points
True
False
2.3 When asking questions, screenshots are often extremely helpful.
Choose One • 1 points
True
False
2.4 You should be checking FSO messages and announcements daily.
Choose One • 1 points
True
- False2.5 When asking for help, well thought out questions and screenshots of code are extremely helpful.
Choose One • 1 points
True
False
3. General Development
Group • 3 questions
3.1 Before touching a line of code, it’s best to understand the task.
Choose One • 1 points
True
False
3.2 “My Digital Dog v0.9 just ate my homework!” is a viable alternative to doing the work when catastrophe strikes.
Choose One • 1 points
- True (there’s … something on the wing, and in my code!)
- False (even pros have bad days, but the work must get done, backups help you recover quickly)3.3 “It worked on my machine” is a viable alternative to thoroughly testing your work.
Choose One • 1 points
True
False
4. Unity
Group • 10 questions
4.1 In Unity and Visual Studio, Windows and Views can be reordered to suit different workflows.
Choose One • 1 points
True
False
4.2 Which method runs once and is good for initialization?
Choose One • 1 points
int
void
Start
Update
4.3 Changed values (overrides) of a Component can be reset to their defaults (ex: fields in a C# file) by using the Component’s Gear > Reset option in the Inspector.
Choose One • 1 points
True
False
4.4 Which method runs every frame and is good for frequent operations?
Choose One • 1 points
Debug.Log
Update
“hello world”
Awake
4.5 Runtime variable assignment supersedes the Inspector value which supersedes a field’s default.
Choose One • 1 points
True
False
4.6 To attach a C# Component to a GameObject, the filename and class name must match 100%.
Choose One • 1 points
True
False
4.7 A scene consists of GameObjects.
Choose One • 1 points
True
False
4.8 The Inspector lets us view and set the values of GameObjects and Components.
Choose One • 1 points
True
False
4.9 Normally, every enabled Component (ex: C# script) on an active GameObject gets Start/Update called.
Choose One • 1 points
True
False
4.10 A GameObject can have multiple Components attached, even duplicates in some cases.
Choose One • 1 points
True
False
5. Visual Studio
Group • 2 questions
5.1 Visual Studio ends w/ an ‘s’.
Choose One • 1 points
True
False
5.2 Visual Studio can hint at possible fixes, but each should be understood, checked, and not just assumed correct for the issue at hand.
Choose One • 1 points
True
False
6. C# Syntax
Group • 16 questions
6.1 Code should be as messy and confusing as possible.
Choose One • 1 points
Tabs, spaces, alignment don’t matter at all, just like grammar, spelling, and punctuation – after all, no other humans will EVER try to read my code.
True
False
6.2 Identifiers must begin w/ a letter or _, and cannot contain spaces or special characters.
Choose One • 1 points
True
False
6.3 Tabs, spaces, newlines when used outside of a string are white space characters, used to make our code easier to read, and are ignored by the compiler.
Choose One • 1 points
True
False
6.4 Certain words and symbols have special meaning to C#, these are reserved keywords and operators.
Choose One • 1 points
Keywords are often blue and mousing over something can provide more info.
True
False
6.5 Which comments out a single line of code?
Choose One • 1 points
int
?:
++
==
// code_goes_here
%
6.6 Green squiggles under a line of C# indicates what?
Choose One • 1 points
A syntax error
A warning
A runtime Exception
6.7 Which comments out a block, or multiple lines of code?
Choose One • 1 points
( )
{ }
/* code_goes_here */
[ ]
” “
‘ ‘
6.8 Red squiggles under a line of C# indicates what?
Choose One • 1 points
A syntax error
A warning
A runtime Exception
6.9 Comments are like white space, in that they’re not code but more like notes and also ignored by the compiler.
Choose One • 1 points
True
False
6.10 Code is always correct. Comments never provide helpful info and generally just clutter the file and confuse readers.
Choose One • 1 points
True
False
6.11 Which character ends a statement?
Choose One • 1 points
,
.
;
string
if
else
6.12 Variable means the value can change, literal means it is literally that value and cannot change.
Choose One • 1 points
True
False
6.13 Which character separates lists of items?
Choose One • 1 points
Ex: Declaring same type, arguments/parameters.
.
bool
;
,
else if
[ ]
6.14 Which items pretty much always come in pairs?
Choose One • 1 points
” “, { }, ( )
( ), *, /, +, –
get; set;
class
bool
void
6.15 Compiler errors must be fixed before Unity will play.
Choose One • 1 points
True
False
6.16 Which characters are used to define/control scope/lifetime/visibility?
Choose One • 1 points
( )
{ }
/* */
[ ]
” “
‘ ‘
7. Variables
Group • 17 questions
7.1 What’s the correct order?
Choose One • 1 points
Data type, identifier, equals sign, value, semicolon
Parentheses, identifier, value
Exclamation point, double equals, bool
int, comma, identifier
7.2 int count; string name; float ratio; bool hasKey; are examples of what?
Choose One • 1 points
Declarations
Declarations w/ Initialization/Assignment
Assignments
Methods
Polymorphism
Inheritance
7.3 Which is correctly setting myString?
Choose One • 1 points
myString = “My Text Value ” = myInt;
myString = “My Text Value ” + myInt;
myString = “My Text Value ” * myInt;
None of these
7.4 int count = 5; string name = “Player”; float ratio = 123.456f; bool hasKey = true; are examples of what?
Choose One • 1 points
Declarations
Declarations w/ Initialization/Assignment
Assignments
Methods
Polymorphism
Inheritance
7.5 count = 5; name = “Player”; ratio = 123.456f; hasKey = true; are examples of what?
Choose One • 1 points
Declarations
Declarations w/ Initialization/Assignment
Assignments
Methods
Polymorphism
Inheritance
7.6 Which data type is best for storing whole numbers?
Choose One • 1 points
int
string
float
bool
class
struct
7.7 How would we set a variable to its current value plus 1?
Choose One • 1 points
sum = Mathf.PI;
sum *= 55;
sum = sum + 1;
sum = sum + sum;
7.8 Which data type is best for storing a sequence of characters?
Choose One • 1 points
int
string
float
bool
class
struct
7.9 Which 2 things does the + operator do?
Choose One • 1 points
Addition and concatenation
Division and remainder
Power and exponent
Indexes into an array
7.10 Which data type is best for decimals and ratios where the decimal point floats?
Choose One • 1 points
int
string
float
bool
class
struct
7.11 Inserting a newline into a string requires which escape sequence?
Choose One • 1 points
\t
\”
\n
\\
7.12 Which data type is best for storing true or false?
Choose One • 1 points
int
string
float
bool
class
struct
7.13 Inserting a ” into a string requires which escape sequence?
Choose One • 1 points
\t
\”
\n
\\
7.14 An escape sequence (or escape characters) does what?
Choose One • 1 points
Concatenates a string and number
Calculates Fibonacci numbers
Changes the character’s normal behavior, often providing formatting
Creates a StringBuilder
7.15 To see a field (aka global variable) in the inspector while keeping it private, we use what?
Choose One • 1 points
[public var]
[Serialized Field]
[SerializeField]
[HideInInspector]
7.16 The equals sign assigns the value from the right, into the variable on the left.
Choose One • 1 points
True
False
7.17 A string begins and ends with which character?
Choose One • 1 points
“
+
,
.
8. PEMDAS
Group • 6 questions
8.1 The % (aka modulo/modulus) operator gets us what?
Choose One • 1 points
Percentage component of Mathf.Deg2Rad
“Hello world”
Remainder of a division
123.456f;
8.2 PEMDAS means:
Choose One • 1 points
Parentheses, Exponents, Multiply, Divide, Add, Subtract
Preprocessor, Export, Modulus, Directive, Asynchronous, Subscript
8.3 What’s the result of: float num = (2.0f + 2.0f * 2.0f) / 2.0f – 2.0f * 3.0f;
Choose One • 1 points
3
3.5
7
9
18
None of these
8.4 Regarding PEMDAS, the ( ) lets us control when something happens.
Choose One • 1 points
True
False
8.5 What’s the result of: float num = 4.0f + 2.0f * 3.0f – 4.0f / 2.0f;
Choose One • 1 points
5
6
7
8
9
None of these
8.6 What’s the result of: float num = 2.0f + 2.0f – 4.0f / 2.0f;
Choose One • 1 points
0
2
4
6
8
None of these
9. Methods
Group • 7 questions
9.1 A method provides what?
Choose One • 1 points
Small, containerized, narrowly focused, purpose driven, written once, called any number of times, customizable via sending/receiving values, easily updated
Value storage
A monolithic chunk of code that handles all the things
What’s a method?
9.2 If a method doesn’t need to return a value, the return type would be?
Choose One • 1 points
int
void
string
this
return
null
9.3 If a method declaration specifies a return type, it must use what at all paths?
Choose One • 1 points
return w/ a value of that return type
break
continue
coroutine
9.4 If you specify a return type, you must return what?
Choose One • 1 points
A value of that type
this
0
null
-1
static
9.5 Debug.Log(“Hello world”); is what?
Choose One • 1 points
Method call, used to verify our script is working
Method declaration that does nothing
Type conversion
The singularity
9.6 The items inside the () of a method call are called?
Choose One • 1 points
arguments
fields
string
enum
9.7 What’s the telltale sign the code is a method?
Choose One • 1 points
( )
/* */
[ ]
” “
10. Conditionals and if-statements
Group • 9 questions
10.1 Using || inside an if’s condition means either left or right expression must resolve to true for the body to run.
Choose One • 1 points
True
False
10.2 Using && inside an if’s condition means both left and right expressions must resolve to true for the body to run.
Choose One • 1 points
True
False
10.3 Which expression represents X is greater than Y?
Choose One • 1 points
X == Y
X != Y
X > Y
X < Y
X >= Y
X <= Y
10.4 An if…else if…else statement may have 0 to many else if elements which daisy chain the items together.
Choose One • 1 points
True
False
10.5 Which expression represents X is less than Y?
Choose One • 1 points
X == Y
X != Y
X > Y
X < Y
X >= Y
X <= Y
10.6 An if…else if…else statement may optionally end with an else.
Choose One • 1 points
True
False
10.7 Which expression represents X is greater than or equal to Y?
Choose One • 1 points
X == Y
X != Y
X > Y
X < Y
X >= Y
X <= Y
10.8 An if…else if…else statement must start with an if.
Choose One • 1 points
True
False
10.9 Which expression represents X is less than or equal to Y?
Choose One • 1 points
X == Y
X != Y
X > Y
X < Y
X >= Y
X <= Y
- False (even pros have bad days, but the work must get done, backups help you recover quickly)3.3 “It worked on my machine” is a viable alternative to thoroughly testing your work.
ANSWER
1. Directions and Guidance
Agreed
2. PGF1
NOTE: This Section belongs to your institution’s rules and regulations. Still I answered on my level but PLEASE CHECK IT ONCE!!!
2.1 TRUE
2.2 TRUE
2.3 TRUE
2.4 TRUE
2.5 TRUE
3. General Development
3.1 TRUE
3.2 FALSE
3.3 FALSE
4. Unity
4.1 TRUE
4.2 START
4.3 TRUE
4.4 UPDATE
4.5 TRUE
4.6 TRUE
4.7 TRUE
4.8 TRUE
4.9 TRUE
4.10 TRUE
5. Visual Studio
5.1 TRUE (QUESTION IS AMBIGUOUS)
5.2 TRUE
6. C# Syntax
6.1 FALSE
6.2 TRUE
6.3 TRUE
6.4 TRUE
6.5 // code_goes_here
6.6 A warning
6.7 /* code_goes_here */
6.8 A syntax error
6.9 TRUE
6.10 FLASE
6.11 ;
6.12 TRUE
6.13 ,
6.14 ” “, { }, ( )
6.15 TRUE
6.16 { }
7. Variables
7.1 Data type, identifier, equals sign, value, semicolon
7.2 Declarations
7.3 myString = “My Text Value ” + myInt;
7.4 Declarations w/ Initialization/Assignment
7.5 Assignments
7.6 int
7.7 sum = sum + 1;
7.8 string
7.9 Addition and concatenation
7.10 float
7.11 \n
7.12 bool
7.13 \”
7.14 Changes the character’s normal behavior, often providing formatting
7.15 [SerializeField]
7.16 TRUE
7.17 “
8. PEMDAS
8.1 Remainder of a division
8.2 Parentheses, Exponents, Multiply, Divide, Add, Subtract
8.3 None of these(ANSWER IS -3)
8.4 TRUE
8.5 8
8.6 2
9. Methods
9.1 Small, containerized, narrowly focused, purpose driven, written once, called any number of times, customizable via sending/receiving values, easily updated
9.2 void
9.3 return w/ a value of that return type
9.4 A value of that type
9.5 Method call, used to verify our script is working
9.6 arguments
9.7 ( )
10. Conditionals and if-statements
10.2 TRUE
10.3 X > Y
10.4 TRUE
10.5 X < Y
10.6 TRUE
10.7 X >= Y
10.8 TRUE
10.9 X <= Y
Looking for best Computer Science Assignment Help. Whatsapp us at +16469488918 or chat with our chat representative showing on lower right corner or order from here. You can also take help from our Live Assignment helper for any exam or live assignment related assistance.