Harmony Soft. C# Developer Test: We Only Consider Applicants Who Complete The Test!
Harmony Soft. C# Developer Test: We Only Consider Applicants Who Complete The Test!
1/5
Mouth.......day.........year........
Mark:......../ 100
Full name:..............................................................................................................................
Mobis number:......................................................................................................................
Email:.....................................................................................................................................
Question:
Question 1. (35 points)
Check the correct information.
If I assign a negative number to an unsigned variable, the compiler returns the value
without negative.
A form is a control.
Use method ExecuteScalar of OleDbCommand with DataReader.
This is order from largest to smallest: Database; Table; Row/record; Column/field.
Structs are always derived from System.ValueType.
Every class is define by you, they have exactly one base class.
You can define optional argument in method.
You can see keyword string and String in C#. Its the one.
It is like C++, you can use pointers in C#.
A thread is an independent stream of instructions in a program.
The windows service can run without having an interactive user logged on to the
system.
I can use methods in static class after create an instance or don't need create it.
Question 2. (15 points)
Circle the wrong code.
Code 1:
namespace System
2/5
Code 2:
namespace MyNameSpace
{
public class MyClass
{
public MyClass()
{
new MyClass(0);
}
public MyClass(int myarg)
{
}
public class MyClass1
{
public MyClass1()
{
}
}
Code 3:
namespace MyNameSpace
{
public class MyClass
{
public int IntMyInt = 100;
public MyClass()
{
}
public int Step100(){
MyClass InsMyClass;
return InsMyClass.IntMyInt;
3/5
Write down query show report of students (students name, subjects name, marks
value). A student can study some subjects without mark return. (5 points)
4/5
The end.
5/5