Question: c# test: 1. Which SQL keyword may cause some rows to be excluded from the result set? a. WHERE b. SELECT c. FROM d. USING

c# test:

1. Which SQL keyword may cause some rows to be excluded from the result set?

a. WHERE

b. SELECT

c. FROM

d. USING

2.

Which test correctly compares the contents of two strings for equality? Group of answer choices

if (s1.Equals(s2)) ...

if (s1.IndexOf(s2)) ...

if (s1.Substring(s2)) ...

if (s1.Compare(s2)) ... Flag question: Question 3 Question 31 pts At their most flexible (and complicated), _____ event handler(s) can be coded to handle _____ event(s). Group of answer choices

multiple, multiple

multiple, a single

a single, multiple

a single, a single Flag question: Question 4 Question 41 pts An expression is more complex than the compiler needs, therefore it resolves it to a type and single value? Group of answer choices

True

False Flag question: Question 5 Question 51 pts Visual Studio allows a visual, drag-and-drop approach to developing GUI programs, either as Win Forms or WPF applications? Group of answer choices

True

False Flag question: Question 6 Question 61 pts Data entered from the keyboard is textual; converting it to a floating point number is done by calling Group of answer choices

double.Parse()

int.Parse()

text.Parse()

it already is a number Flag question: Question 7 Question 71 pts Which keyword is used to terminate a loop before its continuation test evaluates to false? Group of answer choices

break

continue

else

end Flag question: Question 8 Question 81 pts An input sentinel value used to control a loop is _____ with the data type, but _____ with the problem's range of values Group of answer choices

consistent, inconsistent

consistent, consistent

inconsistent, consistent

inconsistent, inconsistent Flag question: Question 9 Question 91 pts The fundamental characteristic of a 'while' loop is that its body is executed _____ times, and that of a 'do' loop is that its body is executed _____ times (the + symbol is read as 'or more') Group of answer choices

0+, 1+

0+, 0+

1+, 0+

1+, 1+ Flag question: Question 10 Question 101 pts Stream operators are susceptible to hardware level errors; all such operations may throw a(n): Group of answer choices

IOException

ArithmeticException

SystemException

HardwareException Flag question: Question 11 Question 111 pts Everything stored in computer memory is Group of answer choices

a number

textual (character) data

references

program code Flag question: Question 12 Question 121 pts A C# Windows or console application begins execution: Group of answer choices

in the Main() method

at the first line of source code

in the PageLoad() method

in the first method in a class Flag question: Question 13 Question 131 pts Which technology promotes a consistent look and feel across all web pages in an application? Group of answer choices

CSS

XML

HTML

JSON Flag question: Question 14 Question 141 pts Given this condition

a < 0 && isNegative(b) if the variable 'a' has the value of -1, the 'isNegative()' method will be called to determine whether 'b' is negative?

Group of answer choices

True

False Flag question: Question 15 Question 151 pts What would be stored in the variable 'n' for this code:

double n = 10 / 3; Group of answer choices

3.0

33.3333

3.3333

0.3333 Flag question: Question 16 Question 161 pts Making class data private causes extra Group of answer choices

all of these answers

programming effort

protection for instance variables

validation of input values Flag question: Question 17 Question 171 pts The output of these two statements is equivalent?

Console.WriteLine(); Console.Write(" "); Group of answer choices

True

False Flag question: Question 18 Question 181 pts To decouple Windows GUI event-generators from event-handlers, C# uses Group of answer choices

delegates

abstract classes

an event registry

event pre-handlers Flag question: Question 19 Question 191 pts Using selection, if exactly one of a set of five options is to be chosen, how many 'if' tests must there be? Group of answer choices

4

5

3

1 Flag question: Question 20 Question 201 pts If two methods in a class have the same name, they are overloaded; they must differ in their Group of answer choices

parameter list

return type

capitalization

body code Flag question: Question 21 Question 211 pts Every stream used for input or output is really just a sequence of: Group of answer choices

bytes

ASCII characters

booleans

files or directories Flag question: Question 22 Question 221 pts All GUI controls (event generators) produce only one event which makes handling the events simple? Group of answer choices

True

False Flag question: Question 23 Question 231 pts If a class definition does not inherit from any other class, its super- (base, parent) class is: Group of answer choices

object

string

system

it has no superclass Flag question: Question 24 Question 241 pts Which SQL keyword allows putting two tables together to form a larger table with columns from each input table? Group of answer choices

JOIN

MERGE

COPY

WHERE Flag question: Question 25 Question 251 pts A super- (base, parent) class usually has more data and methods than a sub- (derived, child) class? Group of answer choices

True

False Flag question: Question 26 Question 261 pts With a two-dimensional array, the left-most index determines the row to access and the right-most index determines the column; this is called Group of answer choices

row major order

row minor order

column major order

column minor order Flag question: Question 27 Question 271 pts A condition is an expression whose possible values are { 0, 1 } Group of answer choices

True

False Flag question: Question 28 Question 281 pts Given a 'try' block with multiple 'catch' blocks, if some of the caught exceptions are related by inheritance, the most general exception (most super- (base, parent) class) must be placed _____ in the list of catch blocks? Group of answer choices

last

first

middle

this approach cannot be done Flag question: Question 29 Question 291 pts Testing code should use different values that represent Group of answer choices

a typical value, boundary values, and out-of-range values

only positive values

only zero

only negative values Flag question: Question 30 Question 301 pts A constructor should never allow an instance variable to have an invalid value; if an invalid argument is passed to the constructor, two strategies for dealing with the invalid value are _____ and _____? Group of answer choices

throw and exception, set a default value

throw an exception, use the invalid value

assign the variable to 0, use the invalid value

assign the variable to 0, set a default value Flag question: Question 31 Question 311 pts Arrays can be passed into a method as a parameter; however, an array cannot be returned from a method? Group of answer choices

True

False Flag question: Question 32 Question 321 pts When an array is passed as a parameter to a method, only its reference (location) is passed, not a copy of each element value; this is known as Group of answer choices

pass by reference

pass by value

pass by array

pass by address Flag question: Question 33 Question 331 pts A C# partial class has its full code defined in Group of answer choices

multiple .cs files

a single .cs file

multiple .aspx files

a single .aspx file Flag question: Question 34 Question 341 pts A 'foreach' loop is a simpler way to iterate (loop) over a container than a 'for' loop; it can always be replaced by a properly coded 'for' loop which uses indexing? Group of answer choices

True

False Flag question: Question 35 Question 351 pts If an array is defined as

int[] vector = new int[?]; what value must be used for '?' so the array has 10 elements, and what is the array's maximum index?

Group of answer choices

10, 9

10, 10

9, 9

9, 10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!