Вопросы с теста на интервью
От: avgur  
Дата: 16.11.10 00:49
Оценка:

1. Dot Net Framework consists of:
a. Common language runtime
b. Set of class libraries
— c. Common language runtime and set of class libraries
d. Common language runtime, set of class Libraries, and ADO.NET




2. Which of the following statements is correct with regard to NET framework managed web pages?
a. They interact directly with the runtime
b. They do not execute in the native code language
c. They are interpreted and scripted
— d. All of the above




3. ______ namespace is not defined in the base class library.
a. System
— b. System.CodeDom
c. System.IO
d. System.Threading
e. System.Text



4. Which of the following can not be used with files?
a. FileClose
b. Filelnput
c. Linelnput
d. LOF
e. PrintLine




5. Which of the following should you use to serialize instances of a class?
a. XMLSerializer
— b. It depends on the situtaion
c. SoapFormatter
d. BinaryFormatter


Вот, на интервью сказали пройти тест. Кое-как я спер часть вопросов с теста, к-рые меня поставили в тупик. Мои ответы помечены "-", но все равно, есть сомнения, что я правильно на них ответил. Посмотрите, плиз, и скажате, что было правильно/неправильно.
Re: Вопросы с теста на интервью
От: Sinix  
Дата: 16.11.10 01:23
Оценка: 4 (1)
Здравствуйте, avgur, Вы писали:

Ох уж эти тесты...
1,2,5 — ответил бы так же.

3 — http://msdn.microsoft.com/en-us/library/system.codedom.codearraycreateexpression.aspx

Namespace: System.CodeDom
Assembly: System (in System.dll)

И тут 2 варианта — в ecma-334 не упомянут CodeDOM, а в wiki — System.Threading.

4 вызвал WTF. Либо вопрос идиотский, либо аффтары обожают васик, либо не может быть использован ни один вариант.
Re: Вопросы с теста на интервью
От: andy1618 Россия  
Дата: 16.11.10 03:54
Оценка: +1
Здравствуйте, avgur, Вы писали:

A>

A>4. Which of the following can not be used with files?
A> a. FileClose
A> b. Filelnput
A> c. Linelnput
A> d. LOF
A> e. PrintLine


Мда, по-видимому, тут речь про VB. Насколько я помню Excel VBA, варианты a,c,d точно есть в природе. Подозреваю, что лишний тут — FileInput, т.к. точно есть оператор Input.
Re[2]: Вопросы с теста на интервью
От: avgur  
Дата: 16.11.10 07:41
Оценка:
А вот еще:

Which one of the following describes the Object Oriented concept of Aggregation?
A system of objects that implement each other
A system of objects inherited from each other
— A system of objects that are not related
A system of objects that are built using each other
A system of objects that define each other



Что тут правильно?
Re[3]: Вопросы с теста на интервью
От: QrystaL Украина  
Дата: 16.11.10 07:45
Оценка: 1 (1) +1
Здравствуйте, avgur, Вы писали:

A>А вот еще:


A>

A>Which one of the following describes the Object Oriented concept of Aggregation?
A>A system of objects that implement each other
A>A system of objects inherited from each other
A>- A system of objects that are not related
A>A system of objects that are built using each other
A>A system of objects that define each other



A>Что тут правильно?


Ни одного ) Агрегация — отношение "целое-часть". По смыслу самый близкий 4-й ответ.
Re[4]: Вопросы с теста на интервью
От: samius Япония http://sams-tricks.blogspot.com
Дата: 16.11.10 08:43
Оценка: +1
Здравствуйте, QrystaL, Вы писали:

QL>Здравствуйте, avgur, Вы писали:


A>>А вот еще:


A>>

A>>Which one of the following describes the Object Oriented concept of Aggregation?



A>>Что тут правильно?


QL>Ни одного ) Агрегация — отношение "целое-часть". По смыслу самый близкий 4-й ответ.


"целое-часть" — это композиция (автомобиль — это композит из составляющих узлов). Агрегация слабже (корзина с фруктами).
Я бы ответил 3 (that are not related), хотя такая формулировка мне тоже не совсем нравится.
Re[5]: Вопросы с теста на интервью
От: Sinix  
Дата: 16.11.10 08:46
Оценка: +1
Здравствуйте, samius, Вы писали:

S>"целое-часть" — это композиция (автомобиль — это композит из составляющих узлов). Агрегация слабже (корзина с фруктами).

S>Я бы ответил 3 (that are not related), хотя такая формулировка мне тоже не совсем нравится.
Причём эти абстракции напрямую в работе не используются
Re[5]: Вопросы с теста на интервью
От: QrystaL Украина  
Дата: 16.11.10 08:47
Оценка:
QL>>Ни одного ) Агрегация — отношение "целое-часть". По смыслу самый близкий 4-й ответ.

S>"целое-часть" — это композиция (автомобиль — это композит из составляющих узлов). Агрегация слабже (корзина с фруктами).

S>Я бы ответил 3 (that are not related), хотя такая формулировка мне тоже не совсем нравится.

Целое-часть это и агрегация, и композиция. Отличие в том, что композиция это сильно-связанное отношение, с доп. условиями:
— целое ответственно за создание частей
— часть не может существовать отдельно от целого
— при удалении целого части тоже удаляются (или присоединяются к другому целому)
Классический пример композиции — "рука-пальцы"
Re[6]: Вопросы с теста на интервью
От: samius Япония http://sams-tricks.blogspot.com
Дата: 16.11.10 08:57
Оценка: +1
Здравствуйте, QrystaL, Вы писали:

QL>>>Ни одного ) Агрегация — отношение "целое-часть". По смыслу самый близкий 4-й ответ.


S>>"целое-часть" — это композиция (автомобиль — это композит из составляющих узлов). Агрегация слабже (корзина с фруктами).

S>>Я бы ответил 3 (that are not related), хотя такая формулировка мне тоже не совсем нравится.

QL>Целое-часть это и агрегация, и композиция. Отличие в том, что композиция это сильно-связанное отношение, с доп. условиями:

QL>- целое ответственно за создание частей
QL>- часть не может существовать отдельно от целого
QL>- при удалении целого части тоже удаляются (или присоединяются к другому целому)
QL>Классический пример композиции — "рука-пальцы"

Вопрос больше философский. Все-же я готов рассматривать существование пальца отдельно от руки и руку отдельно от ее хозяина.

Классический пример агрегации — профессор факультета. Считать профессора частью факультета — как-то нехорошо.
Re[7]: Вопросы с теста на интервью
От: QrystaL Украина  
Дата: 16.11.10 09:19
Оценка: +1
S>Вопрос больше философский. Все-же я готов рассматривать существование пальца отдельно от руки и руку отдельно от ее хозяина.
В целом да.

S>Классический пример агрегации — профессор факультета. Считать профессора частью факультета — как-то нехорошо.



В любом случае, тест на собеседование достаточно кривой )))
Re: Вопросы с теста на интервью
От: matumba  
Дата: 16.11.10 09:56
Оценка: +5
Здравствуйте, avgur, Вы писали:

A>есть сомнения, что я правильно на них ответил.


Я даже не сомневаюсь, что неправильно. Правильный ответ: "Да идите вы на ... со своими тестами! Вам шашечки или ехать?!".
Все вопросы настолько тупые и далёкие от необходимости, что если вас не возьмут, поблагодарите их, что не работаете в таком отстойнике.
Re[2]: Вопросы с теста на интервью
От: rsn81 Россия http://rsn81.wordpress.com
Дата: 16.11.10 10:13
Оценка: :)
Здравствуйте, matumba, Вы писали:

M>Я даже не сомневаюсь, что неправильно. Правильный ответ: "Да идите вы на ... со своими тестами! Вам шашечки или ехать?!".

M>Все вопросы настолько тупые и далёкие от необходимости, что если вас не возьмут, поблагодарите их, что не работаете в таком отстойнике.
Обычно такие вопросы может выдавать HR, чтобы провести первичный фильтр. Если кандидат его проходит, с ним непременно поговорят по душам специалисты.
Re[6]: Вопросы с теста на интервью
От: rsn81 Россия http://rsn81.wordpress.com
Дата: 16.11.10 10:46
Оценка:
Здравствуйте, QrystaL, Вы писали:

QL>Целое-часть это и агрегация, и композиция. Отличие в том, что композиция это сильно-связанное отношение, с доп. условиями:

QL>- целое ответственно за создание частей
QL>- часть не может существовать отдельно от целого
QL>- при удалении целого части тоже удаляются (или присоединяются к другому целому)
QL>Классический пример композиции — "рука-пальцы"
Интересно, что GoF-ы аргерацию противопоставляли не композиции, а осведомленности (ассоциации, использованию), причем агрегация у них ровно то, что привели для определения композиции.
А композицию они рассматривали в другом аспекте: противопоставляли наследованию. Хотя в UML (Фаулер) все именно так.
Re[3]: Вопросы с теста на интервью
От: avgur  
Дата: 16.11.10 21:53
Оценка:
Вопросы, кстати, были с интервью на удаленку

Вот продолжение их:

Which of the following characteristics is found in The DateTime type?
a. It always references the UTC (GMT) time
— b. It always references the Local time
c. It contains a member indicating which time zone it refers to
d. It contains a member indicating whether it is UTC, Local, or Unspecified



What arguments does the target method for a callback take?
a The same arguments as the method being asynchronously called
b A WaitHandle object
c The same arguments as the Beginlnvoke call on the delegate that started the asynchronous call
d A Thread object
e An IAsyncResult object



What is an Object in Object Oriented Programming?
a. A real entity having some state
b. A real entity having state and behavior
c. An entity having some state
d. An entity having state and behavior



What is the syntax required to load and use a normal unmanaged windows DLL (e.g. kernel32.DLL) in a managed .NET C# code?
a. Assembly.Load("Kernel32.DLL")
b. LoadLibrary("Kernel32.DLL")
c. [Dlllmport("kernel32", SetLastError=true)]
d. We cannot use unmanaged DLLs in managed .NET application



Steve wants to create a multi-threaded assembly that uses the maximum number of processors a client machine has to offer.
Given the scenario above, what does Steve do in order to ensure that the .NET application uses all available processors on a client machine?
a. ) Specify the number of processors on the .NET compiler options at compile time.
b. ) Select a language that compiles for the number of processors.
c. ) Set an attribute that is compiled into the Manifest of the application Assembly.
d. ) Set a registry setting for the operating system of the machine on which the application is running.
e. ) Ensure that the JIT compilers of Common Language Runtime (CLR) can handle the number of processors of all target client machines.



Sandra is writing some code that uses components that may call unmanaged code. She needs to catch any exceptions that may result from these comp
Referring to the scenario above, which one of the following code snippets allows Sandra to catch all exceptions originating in unmanaged code?
a.) catch (Exception e)
b.) catch(UnmanagedException e)
c.) catch ()
d.) catch(ComException e)
e.) catch(ExternalException e)




Declarative security does which one of the following?
a. ) It configures the machine's system security policy.
b. ) It sets the permissions on any reference types that are declared.
c. ) It is implemented by code and does not use attributes.
d. ) It uses attributes to place security information into the metadata of your code.
e. ) It sets the permissions on any value types that are declared.




Which of the following tools can be used to configure assemblies located in the GAC?
р. Soapsuds.exe
b. Lldasm.exe
c. CASPol.exe
d. Mscorcfg.msc
e. SN.exe




We are iterating through the results received in a data reader named 'DReaderOrder,' which is created by using the connection 'SqICon.'
In between we need to retrieve some more values from the database, so we executed another command in the same connection to get
the results in a new data reader named 'DReaderProduct.' What will be the result if we are using ADO.NET 2.0?
a. First data reader will immediately stop and the new data reader starts reading
b. First data reader will halt till the new data reader finishes reading
c. Both will keep on reading records independent of each other
d. We receive an exception 'Systerm.lnvalidOperationException'




Which of the following statements is true for a DataSet?
a. DataSet is disconnected from the underlying database
b. You can add many new rows to multiple DataTables within a DataSet
c. DataSet stores a snapshot of the live data
d. It is a foolproof solution to the data concurrency issues




Complete the following sentence (select 1):
In C# exception handling should be used.........
a. to handle the occurrence of unusual or unanticipated program events
b. to redirect the programs normal flow of control
C. in cases of potential logic or user input errors
d. in case of overflow of an array boundary



In the .NET framework, what are the options available for packaging?
a. CAB
b. EXE
C. MSI
d. All of the above




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?

a. Call each of the Web Services synchronously one after each other.
b. Call one Web Service asynchronously with a callback, one Web Service asynchronously using a WaitHandle, and the final Web Service synchronously.
c. Call each of the Web Services asynchronously, providing a unique callback delegate for each.
d. Call each of the Web Services asynchronously, using a WaitHandle to wait for the results for you method.
e. Call each of the Web Services asynchronously, providing the same callback delegate for each.

Re[4]: Вопросы с теста на интервью
От: andy1618 Россия  
Дата: 17.11.10 07:15
Оценка: +1
Здравствуйте, avgur, Вы писали:

A>

A>Which of the following characteristics is found in The DateTime type?
A> a. It always references the UTC (GMT) time
A>- b. It always references the Local time
A> c. It contains a member indicating which time zone it refers to
A> d. It contains a member indicating whether it is UTC, Local, or Unspecified


Тут правильный ответ — d.
Не так давно как раз было обсуждение:
http://www.rsdn.ru/forum/philosophy/3988063.1.aspx
Автор: chocho
Дата: 07.10.10
Re[5]: Вопросы с теста на интервью
От: avgur  
Дата: 17.11.10 15:21
Оценка:
а с остальными что?
Re[4]: Вопросы с теста на интервью
От: Sinix  
Дата: 17.11.10 16:19
Оценка: 6 (1)
Здравствуйте, avgur, Вы писали:

A>Which of the following characteristics is found in The DateTime type?

Ответил andy1618.

A>What arguments does the target method for a callback take?

public delegate void AsyncCallback(IAsyncResult ar). e

A>What is an Object in Object Oriented Programming?

d. До того, как не нарвётесь на смоллток-фанатика

A>What is the syntax required to load and use a normal unmanaged windows DLL (e.g. kernel32.DLL) in a managed .NET C# code?

Вопрос из серии "Угадай, какую книжку читал автор теста". _Формально_, в BCL нет API для прямой работы с нативными библиотеками. С другой стороны, у нас есть интероп, и через него таки можно вызвать LoadLibrary Выбирайте из 3х последних. Учитывая общий уровень теста, скорее всего

A>Steve wants to create a multi-threaded assembly that uses the maximum number of processors a client machine has to offer.

Бред шотрындец . С натяжкой e.

A>Referring to the scenario above, which one of the following code snippets allows Sandra to catch all exceptions originating in unmanaged code?

Зависит от фреймворка. Либо c (для первого фреймворка. _без_ скобочек), либо a (для 4-го потребуется ещё и [HandledProcessCorruptedStateExceptions]). А, да, если в .Net 2.0 и выше в app.config — <legacyUnhandledExceptionPolicy enabled="1"/> — то снова c

A>Declarative security does which one of the following?

d. Для 4го фреймворка с фактическим упразднением CAL и переходом к transparent security model тема слегка неактуальна.

A>Which of the following tools can be used to configure assemblies located in the GAC?

CASPol.exe и Mscorcfg.msc? Только при чём здесь GAC?


A>We are iterating through the results received in a data reader named 'DReaderOrder,' which is created by using the connection 'SqICon.'

A>In between we need to retrieve some more values from the database, so we executed another command in the same connection
c (если включён MARS или первый ридер — всё) или d.

A>Which of the following statements is true for a DataSet?

a-d и докажите мне обратное

Complete the following sentence (select 1):
A>In C# exception handling should be used.........
A> a. to handle the occurrence of unusual or unanticipated program events
A> b. to redirect the programs normal flow of control
A> C. in cases of potential logic or user input errors
A> d. in case of overflow of an array boundary
В идеале — ни в одном из случаев, с натяжкой — a-d и докажите мне обратное

A>In the .NET framework, what are the options available for packaging?

A> a. CAB
A> b. EXE
A> C. MSI
A> d. All of the above
Для установщика — d и ... ну, вы поняли
A>[/q]


A>You are building an application that consumes various Web Services...

b или d, если я их правильно понял
а молоко дадут?
Re[5]: Вопросы с теста на интервью
От: andy1618 Россия  
Дата: 22.11.10 02:45
Оценка: +1
Здравствуйте, Sinix, Вы писали:

S>Complete the following sentence (select 1):

A>>In C# exception handling should be used.........
A>> a. to handle the occurrence of unusual or unanticipated program events
A>> b. to redirect the programs normal flow of control
A>> C. in cases of potential logic or user input errors
A>> d. in case of overflow of an array boundary
S>В идеале — ни в одном из случаев, с натяжкой — a-d и докажите мне обратное

Да, против a-d спорить тяжело.
Единственное, можно припомнить рекомендации разных гуру, что "exceptions should be exceptional",
тогда варианты b,c уйдут как противоречащие этому принципу.
Вариант d слишком уж специфичный, плюс контроль границ зависит от опций компилятора.
Остаётся вариант a.
Re[4]: Вопросы с теста на интервью
От: yoriсk.kiev.ua  
Дата: 22.11.10 10:17
Оценка:
Здравствуйте, avgur, Вы писали:

A>

A>What is an Object in Object Oriented Programming?
A> a. A real entity having some state
A> b. A real entity having state and behavior
A> c. An entity having some state
A> d. An entity having state and behavior


А в чём разница между "entity" и "real entity"?
Re[5]: Вопросы с теста на интервью
От: Sinix  
Дата: 22.11.10 11:06
Оценка:
Здравствуйте, yoriсk.kiev.ua, Вы писали:

YKU>Здравствуйте, avgur, Вы писали:


A>>

A>>What is an Object in Object Oriented Programming?
A>> a. A real entity having some state
A>> b. A real entity having state and behavior
A>> c. An entity having some state
A>> d. An entity having state and behavior


YKU>А в чём разница между "entity" и "real entity"?

Примерно та же, что и между "объект" и "объект реального мира".

Эт фигня, меня больше вопрос с многопоточностью убил.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.