![]() |
Модераторы: Partizan, gambit |
![]() ![]() ![]() |
|
devdotnet |
|
|||
Новичок Профиль Группа: Участник Сообщений: 3 Регистрация: 30.11.2005 Репутация: нет Всего: нет |
1) What is the underlying type of an enum declaration that does NOT explicitly define an underlying type?
Answer: did not get the question completely but looks like the answer is byte, ah? Value type ---------- 2) Which one of the following flags causes the compiler to make a stand-alone assembly containing a manifest? Answer: /t:assembly ---------- 3) Which one of the following code samples deserializes the CSharp object (assume that the object had previously been serialized to the "cs.xml" file)? Answer: : CSharp cs; XmlSerializer slzr = new XmlSerializer(); FileStream fs = new FileStream("cs.xml", FileMode.Open); cs = slzr.Deserialize(fs); --------------- 4) You are building an application that consumes various Web Services. You have a situation in which you need to get data from three different Web Services, which are independent of each other but take a considerable time to run. You want to minimize the time it takes the whole method to run but due to system constraints you cannot break the processing across multiple methods. Given the above scenario, what approach do you use to implement this functionality? answer: Call each of the Web Services asynchronously, providing the same callback delegate for each. ---------- 5) public void CalculateLCD(long number1, long number2, ref long LCD) { // calculate lowest common denominator } Given the declarations above, which code below calls CalculateLCD asynchronously for the numbers 15 and 34 and returns the calculated value of LCD by reference into the defined long lcd? a) long lcd = 0; CalculateLCDStart dlgLCD = new CalculateLCDStart(CalculateLCD); IAsyncResult iar = dlgLCD.BeginInvoke(15, 34, ref lcd, null, null); dlgLCD.EndInvoke(iar); b) long lcd = 0; CalculateLCDStart dlgLCD = new CalculateLCDStart(CalculateLCD); IAsyncResult iar = dlgLCD.BeginInvoke(15, 34, ref lcd, null, null); dlgLCD.EndInvoke(ref lcd, iar); c) long lcd = 0; CalculateLCDStart dlgLCD = new CalculateLCDStart(CalculateLCD); IAsyncResult iar = dlgLCD.BeginInvoke(15, 34, lcd, null, null); dlgLCD.EndInvoke(ref lcd, iar); d) long lcd = 0; CalculateLCDStart dlgLCD = new CalculateLCDStart(CalculateLCD); IAsyncResult iar = dlgLCD.BeginInvoke(15, 34, null, null); dlgLCD.EndInvoke(ref lcd, iar); e) long lcd = 0; CalculateLCDStart dlgLCD = new CalculateLCDStart(CalculateLCD(15, 34)); IAsyncResult iar = dlgLCD.BeginInvoke(ref lcd, null, null); dlgLCD.EndInvoke(lcd, iar); Answer: Looks like A But the strange thing is that the method is used as a class…maybe they missed sth and wanted to say this is a class…. -------------- 6) Couple questions about OOP c) Composition . What is it? I know that decomposition is fragmentation the big task into several simple tasks. Consiquently composition is the merging of simple tasks into the big the only task. Is it correct? |
|||
|
||||
devdotnet |
|
|||
Новичок Профиль Группа: Участник Сообщений: 3 Регистрация: 30.11.2005 Репутация: нет Всего: нет |
Что-то никто не отвечает...неужели никто не знает?
|
|||
|
||||
mr.DUDA |
|
|||
![]() 3D-маньяк ![]() ![]() ![]() ![]() Профиль Группа: Экс. модератор Сообщений: 8244 Регистрация: 27.7.2003 Где: город-герой Минск Репутация: 110 Всего: 232 |
Наверное вопрос слишком большой и сложный. Мне лично имхо было трудно прочитать все вопросы/ответы, да к тому же шариться по MSDN в поисках правильного ответа. Ты нас за brainbench.com считаешь что ли?
![]() -------------------- ![]() |
|||
|
||||
Domestic Cat |
|
|||
![]() Эксперт ![]() ![]() ![]() ![]() Профиль Группа: Экс. модератор Сообщений: 5452 Регистрация: 3.5.2004 Где: Dallas, US Репутация: 9 Всего: 172 |
devdotnet А книжку какую-нибудь почитать слабо?
JFGI -------------------- |
|||
|
||||
Lord Dagger |
|
|||
![]() Шустрый ![]() Профиль Группа: Участник Сообщений: 103 Регистрация: 14.8.2004 Где: Москва Репутация: 2 Всего: 3 |
mr.DUDA
Судя по вопросам, они если не напрямую с brainbench, то уж точно с какого-нибудь собеседования;) Человек видимо решил, что и здесь сработает принцип "широкой русской души", на работу устроится помогут, ну или сертификат получить ![]() А вопросы нехреновые, очень нехреновые ![]() --------------------
(+) |
|||
|
||||
dronzo |
|
|||
Новичок Профиль Группа: Участник Сообщений: 48 Регистрация: 26.11.2005 Где: Москва Репутация: 6 Всего: 8 |
3-ий вопрос.
5-ый вопрос. B. |
|||
|
||||
![]() ![]() ![]() |
Прежде чем создать тему, посмотрите сюда: | |
|
Используйте теги [code=csharp][/code] для подсветки кода. Используйтe чекбокс "транслит" если у Вас нет русских шрифтов. Что делать если Вам помогли, но отблагодарить помощника плюсом в репутацию Вы не можете(не хватает сообщений)? Пишите сюда, или отправляйте репорт. Поставим :) Так же не забывайте отмечать свой вопрос решенным, если он таковым является :) Если Вам понравилась атмосфера форума, заходите к нам чаще! С уважением, mr.DUDA, THandle. |
1 Пользователей читают эту тему (1 Гостей и 0 Скрытых Пользователей) | |
0 Пользователей: | |
« Предыдущая тема | Общие вопросы по .NET и C# | Следующая тема » |
|
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности Powered by Invision Power Board(R) 1.3 © 2003 IPS, Inc. |