Click here to Skip to main content
16,005,037 members
Home / Discussions / C#
   

C#

 
GeneralNeed answers for some test questions Pin
Alvaro Mendez19-Mar-04 8:41
Alvaro Mendez19-Mar-04 8:41 
GeneralRe: Need answers for some test questions Pin
Judah Gabriel Himango19-Mar-04 9:13
sponsorJudah Gabriel Himango19-Mar-04 9:13 
GeneralRe: Need answers for some test questions Pin
Mazdak19-Mar-04 9:35
Mazdak19-Mar-04 9:35 
GeneralRe: Need answers for some test questions Pin
Alvaro Mendez19-Mar-04 10:32
Alvaro Mendez19-Mar-04 10:32 
GeneralRe: Need answers for some test questions Pin
Alvaro Mendez19-Mar-04 10:17
Alvaro Mendez19-Mar-04 10:17 
GeneralRe: Need answers for some test questions Pin
Colin Angus Mackay20-Mar-04 1:35
Colin Angus Mackay20-Mar-04 1:35 
GeneralRe: Need answers for some test questions Pin
Werdna19-Mar-04 10:31
Werdna19-Mar-04 10:31 
GeneralRe: Need answers for some test questions Pin
John Fisher19-Mar-04 11:35
John Fisher19-Mar-04 11:35 
Alvaro Mendez wrote:
1. What is the purpose of the definite assignment in C#:
D. You must assign a value to a variable before you use it


You'll get warnings that say this from the compiler itself, if you try to use a variable before it has been assigned.

Alvaro Mendez wrote:
2. Which of the following statements is FALSE:
I know that A is true. If D was true, then B and C would both technically be false, so I would say that D is false. (Another helpful bit of info is that the JIT doesn't generally compile code until it needs to run it. So, until code that would need to reference an not-yet-loaded dll is called, that dll shouldn't be loaded.) (Also! There are way too many ways to load an assembly dynamically whenever you feel like it for B and C to really apply at all unless they are talking about default behavior of the CLR.)

Alvaro Mendez wrote:
3. There are two kinds of attributes in C#:

Assuming that "attributes" means the classes derived from System.Attribute, then A would be the only applicable answer, I think. B is possible, but would apply to basically everything in the .NET Framework if that was the correct answer. C is totally irrelevant, since that would be about Properties. D is obviously related more to a stack than to the C# language.



John

"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.

GeneralRe: Need answers for some test questions Pin
leppie20-Mar-04 1:07
leppie20-Mar-04 1:07 
GeneralRe: Need answers for some test questions Pin
leppie20-Mar-04 1:05
leppie20-Mar-04 1:05 
GeneralRe: Need answers for some test questions Pin
Curi0us_George20-Mar-04 5:33
Curi0us_George20-Mar-04 5:33 
GeneralRe: Need answers for some test questions Pin
Heath Stewart20-Mar-04 13:05
protectorHeath Stewart20-Mar-04 13:05 
GeneralRe: Need answers for some test questions Pin
Curi0us_George21-Mar-04 14:07
Curi0us_George21-Mar-04 14:07 
GeneralRe: Need answers for some test questions Pin
Heath Stewart21-Mar-04 14:12
protectorHeath Stewart21-Mar-04 14:12 
GeneralRe: Need answers for some test questions Pin
Curi0us_George21-Mar-04 14:36
Curi0us_George21-Mar-04 14:36 
Generalijl15.dll problem Pin
kendao19-Mar-04 8:16
kendao19-Mar-04 8:16 
GeneralRe: ijl15.dll problem Pin
Heath Stewart19-Mar-04 8:22
protectorHeath Stewart19-Mar-04 8:22 
GeneralDocking Application to the System Pin
Nagendra Kamath K19-Mar-04 7:18
Nagendra Kamath K19-Mar-04 7:18 
GeneralRe: Docking Application to the System Pin
Heath Stewart19-Mar-04 8:11
protectorHeath Stewart19-Mar-04 8:11 
GeneralMasking Keyboard and Mouse Events Pin
Nagendra Kamath K19-Mar-04 7:02
Nagendra Kamath K19-Mar-04 7:02 
GeneralRe: Masking Keyboard and Mouse Events Pin
Judah Gabriel Himango19-Mar-04 7:30
sponsorJudah Gabriel Himango19-Mar-04 7:30 
GeneralRe: Masking Keyboard and Mouse Events Pin
Dave Kreskowiak19-Mar-04 7:30
mveDave Kreskowiak19-Mar-04 7:30 
GeneralRe: Masking Keyboard and Mouse Events Pin
Heath Stewart19-Mar-04 8:04
protectorHeath Stewart19-Mar-04 8:04 
GeneralRe: Masking Keyboard and Mouse Events Pin
Dave Kreskowiak19-Mar-04 9:25
mveDave Kreskowiak19-Mar-04 9:25 
GeneralRe: Masking Keyboard and Mouse Events Pin
Heath Stewart19-Mar-04 8:02
protectorHeath Stewart19-Mar-04 8:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.