CSC105 Quizzes |Questions with 100% Correct
Answers
A statement in which one structure is contained within another - ✔️✔️nested "if"
A series of "if" statements that determine whether a value falls within a specified range -
✔️✔️range check
Identifies a course of action in a "switch" structure - ✔️✔️"case" label
Allows you to assign values to a list of constants - ✔️✔️enumeration
Negates the results of any Boolean expression - ✔️✔️NOT operator
A diagram used to describe the Boolean value of an entire compound expression - ✔️✔️truth
table
The equal sign (=) is the C# _______________ - ✔️✔️assignment operator
You can concatenate two strings with the _____________ - ✔️✔️plus sign (+)
T or F: Operator precedence rules ensure that addition and subtraction always take place prior
to multiplication, division, or remainder in an expression - ✔️✔️False
T or F: "someValue++" is an example of the use of the prefix increment operator - ✔️✔️False
An escape sequence is used to represent _____________ and always begins with a
_________________ - ✔️✔️1. special characters such as a carriage return or a tab
, 2. a backslash
A(n) ___________ is a named location in computer memory that can hold different values at
different points in time - ✔️✔️variable
If a value is given to a variable at the time it is declared, it is called a(n) _______ -
✔️✔️initialization
A _____________ is a string of characters that optionally contains fixed text and contains one
or more format items or placeholders for variable values - ✔️✔️format string
A ____________ consists of a pair of curly braces containing a number that indicates the
desired variable's position in a list that follows the string - ✔️✔️placeholder
A(n) ____________ number is one that contains decimal positions - ✔️✔️floating point
In the C# statement 'moneyString = someMoney.ToString("F3")' , the expression F3 is an
example of a(n) _______________ - ✔️✔️standard numeric format string
+= is the C# __________ operator; it adds the operand on the right to the operand on the left
and assigns it to the operand on the left in one step - ✔️✔️add and assign
You declare a Boolean variable by using type ________ - ✔️✔️"bool"
An expression containing a(n) ______ operator has a Boolean value - ✔️✔️comparison
In arithmetic operations with operands of dissimilar types, a(n) ___________ is the automatic
conversion of nonconforming operands to a unifying type - ✔️✔️implicit cast
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Examcheatcode. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.49. You're not tied to anything after your purchase.