I applied online. The process took 1 day. I interviewed at NiCE (Ra`ananna) in Jun 2024
Interview
This was interview day at the company site in Raanana.
The day was divided into 2 parts.
The first part is a small exam with 4 questions(On paper) and the second part and the second part is a design question and an HR Interview.
( I failed in the first part, so don't i didn't was in the second part)
Interview questions [4]
Question 1
class Program
{
static void Main(string[] args)
{
B obj = new B();
Console.ReadKey();
}
}
abstract class A
{
public A()
{
Console.WriteLine("This is the A class");
//calc();
}
public abstract void calc();
}
class B : A
{
public B()
{
Console.WriteLine("This is the B class");
}
public override void calc()
{
Console.WriteLine("This is the abstract methode");
}
}
Questions:
1. What will be printed on the console?
2. what will be printed to the console if we remove this "//" before the calc() in the contractor of class A;
What will be printed to the Console at the end of this code?
int global = 0;
Thread t1 = new Thread(() =>
{
int local = 0;
while(global < 3)
{
local += 1;
global += 1;
}
Console.WriteLine(local);
});
Thread t2 = new Thread(() =>
{
global += 1;
});
t1.Start();
t2.Start();
Describe a data sturcture that you can do:
Get[x] by key in O(1),
Set(x,y) by key in O(1),
and setAll(y) by O(1)
The setAll does not must really put the value at all the places, its just need to be seen like this(when you do get, you need to get the correct value)
Write pseudo code for a method that gets a random number "x"
and print all the numbers between 0 and x in a random order:
Example for x = 7 => 61532740