Windows Form Interview Questions
1.How can I run an EXE from within my application?
2.What are the common issues in redirecting assemblies using the publisher policy files?
3.How can I find all programs with a GUI (not just arbitrary windows) that are running on my local machine?
4.How can I get a list of all processes running on my system?
5.How can I make sure there is only one instance of my application running?
6.How do I determine which operating system is running?
7.How can I get all IP addresses for my local machine?
8.My user does not have .NET installed. Will he be able to run my Windows Forms application?
9.How do I get the path to my running EXE?
10.How can I programmatically obtain the name of the assembly that the code is executing in ?
11.How can I see what is installed in the Global Assembly on a machine?
12.How do I set the company name that is returned by System.Windows.Forms.Application.CompanyName?
13.How do you prevent serialization of certain child controls in your Composite Control?
14.How do I get hold of the currently focused Control?
15.Why do calling Focus() on a control not set focus on it?
16.How do I listen to windows messages in my Control?
17.How do I programatically change the color of a control?
18.How can I change the Border color of my control?
19.Why should I provide a Non-Client border to my Control derived class?
20.How do I provide a 2 pixel 3d border in the Non-Client area of my Control derived class?
Element Tree Interview Questions
Element Tree Interview Questions
1.How can I override the Logical Tree ?
2.How can I enumerate all the descendants of a visual object ?
3.How can I override the Logical Tree ?
4.How can I enumerate all the descendants of a visual object ?
1.How can I override the Logical Tree ?
2.How can I enumerate all the descendants of a visual object ?
3.How can I override the Logical Tree ?
4.How can I enumerate all the descendants of a visual object ?
Multimedia and Graphics Interview Questions (2d Graphics)
Multimedia and Graphics Interview Questions (2d Graphics)
1.How do I apply BitmapEffect to a particular area of an Image ?
2.How do I apply Transform when an event is occurred ?
3.In what way CombinedGeometry is used ?
4.How do I apply BitmapEffect to a particular area of an Image ?
5.How do I apply Transform when an event is occurred ?
6.In what way CombinedGeometry is used ?
1.How do I apply BitmapEffect to a particular area of an Image ?
2.How do I apply Transform when an event is occurred ?
3.In what way CombinedGeometry is used ?
4.How do I apply BitmapEffect to a particular area of an Image ?
5.How do I apply Transform when an event is occurred ?
6.In what way CombinedGeometry is used ?
8 queens problem c code interview question
8 queens problem c code
The 8 queens problem is a classic problem using the chess board. This problem is to place 8 queens on the chess board so that they do not attack each other horizontally, vertically or diagonally. It turns out that there are 12 essentially distinct solutions to this problem.
Suppose we have an array t[8] which keeps track of which column is occupied in which row of the chess board. That is, if t[0]==5, then it means that the queen has been placed in the fifth column of the first row. We need to couple the backtracking algorithm with a procedure that checks whether the tuple is completable or not, i.e. to check that the next placed queen 'i' is not menaced by any of the already placed 'j' (j < i): Two queens are in the same column if t[i]=t[j]
Two queens are in the same major diagonal if (t[i]-t[j])=(i-j)
two queens are in the same minor diagonal if (t[j]-t[i])=(i-j)
Here is some working C code to solve this problem using backtracking
#include
static int t[10]={-1};
void queens(int i);
int empty(int i);
void print_solution();
int main()
{
queens(1);
print_solution();
return(0);
}
void queens(int i)
{
for(t[i]=1;t[i]<=8;t[i]++) { if(empty(i)) { if(i==8) { print_solution(); /* If this exit is commented, it will show ALL possible combinations */ exit(0); } else { // Recurse! queens(i+1); } }// if }// for } int empty(int i) { int j; j=1; while(t[i]!=t[j] && abs(t[i]-t[j])!=(i-j) &&j<8)j++; return((i==j)?1:0); } void print_solution() { int i; for(i=1;i<=8;i++)printf("\nt[%d] = [%d]",i,t[i]); } And here is one of the possible solutions
t[1] = [1] // This means the first square of the first row.
t[2] = [5] // This means the fifth square of the second row.
t[3] = [8] ..
t[4] = [6] ..
t[5] = [3] ..
t[6] = [7] ..
t[7] = [2] ..
t[8] = [4] // This means the fourth square of the last row.
Write more solutions in comments plzzz
The 8 queens problem is a classic problem using the chess board. This problem is to place 8 queens on the chess board so that they do not attack each other horizontally, vertically or diagonally. It turns out that there are 12 essentially distinct solutions to this problem.
Suppose we have an array t[8] which keeps track of which column is occupied in which row of the chess board. That is, if t[0]==5, then it means that the queen has been placed in the fifth column of the first row. We need to couple the backtracking algorithm with a procedure that checks whether the tuple is completable or not, i.e. to check that the next placed queen 'i' is not menaced by any of the already placed 'j' (j < i): Two queens are in the same column if t[i]=t[j]
Two queens are in the same major diagonal if (t[i]-t[j])=(i-j)
two queens are in the same minor diagonal if (t[j]-t[i])=(i-j)
Here is some working C code to solve this problem using backtracking
#include
static int t[10]={-1};
void queens(int i);
int empty(int i);
void print_solution();
int main()
{
queens(1);
print_solution();
return(0);
}
void queens(int i)
{
for(t[i]=1;t[i]<=8;t[i]++) { if(empty(i)) { if(i==8) { print_solution(); /* If this exit is commented, it will show ALL possible combinations */ exit(0); } else { // Recurse! queens(i+1); } }// if }// for } int empty(int i) { int j; j=1; while(t[i]!=t[j] && abs(t[i]-t[j])!=(i-j) &&j<8)j++; return((i==j)?1:0); } void print_solution() { int i; for(i=1;i<=8;i++)printf("\nt[%d] = [%d]",i,t[i]); } And here is one of the possible solutions
t[1] = [1] // This means the first square of the first row.
t[2] = [5] // This means the fifth square of the second row.
t[3] = [8] ..
t[4] = [6] ..
t[5] = [3] ..
t[6] = [7] ..
t[7] = [2] ..
t[8] = [4] // This means the fourth square of the last row.
Write more solutions in comments plzzz
Hr Manager Interview Questions
Hr Manager Interview Questions
1.HR planning interview questions
1)What is competency mapping?
2)How to conduct job analysis?
3)What is HR scorecard?
4)How to set up HR strategy?
5)How to measure effectiveness of workforce?
6)What is core competency of HR?
2.Recruitment and selection interview questions
1)Tell us how many selection methods are used in recruitment and selection process?
2)How many recruitment channels in this …?
3)Describe recruitment and selection process?
4)How to check candidate?
3.Health and safety interview questions
1)What is MSDS?
2)How to be compliance with H&S regulation of local law?
4.Training and development interview questions
1)How many are training methods?
2)Describe training process?
3)How to do career development?
5.Compensation and benefits interview questions
1)How many methods are used to pay employee?
2)What are compensation and benefit setup for senior positions at our industry?
6.Corporate culture interview questions
1)How to set up corporate culture in our industry?
7.General HR interview questions
1)What is human resource management?
2)What do you prefer recruitment or selection?
3)How do you motivate your employees?
4)What is more important to you money or position?
5)How does you define empowerment?
6)How can you make use of IT in HRM?
7)Suggest a training program/workshop for feedback skills?
8)Why do you think HRM is important?
9)What are retention strategies?
10)What do you mean by 360? feedback?
11)Which one is more better mentoring or coaching?
12)How would you terminate an employee who is not performing?
13)What is the difference between personnel management and human resource management?
14)What aspect of supervision do you find the most difficult?
15)How do you motivate employees?
16)What are the competitive challenges in Human Resource Management?
17)Explain managing changes in HRM?
18)Why do you want to work in HR and why is confidentiality so important?
19)May a deceased employee remain on the payroll to exhaust her annual leave accrual?
20)Does an agency have to provide an employee with time off if the employee is donating blood?
21)What is the Career Scope for the person working in HR.
22)If a person who is physically Disable and is working in HR Wants to migrate to some foreign country. Is he capable of doing so?
1.HR planning interview questions
1)What is competency mapping?
2)How to conduct job analysis?
3)What is HR scorecard?
4)How to set up HR strategy?
5)How to measure effectiveness of workforce?
6)What is core competency of HR?
2.Recruitment and selection interview questions
1)Tell us how many selection methods are used in recruitment and selection process?
2)How many recruitment channels in this …?
3)Describe recruitment and selection process?
4)How to check candidate?
3.Health and safety interview questions
1)What is MSDS?
2)How to be compliance with H&S regulation of local law?
4.Training and development interview questions
1)How many are training methods?
2)Describe training process?
3)How to do career development?
5.Compensation and benefits interview questions
1)How many methods are used to pay employee?
2)What are compensation and benefit setup for senior positions at our industry?
6.Corporate culture interview questions
1)How to set up corporate culture in our industry?
7.General HR interview questions
1)What is human resource management?
2)What do you prefer recruitment or selection?
3)How do you motivate your employees?
4)What is more important to you money or position?
5)How does you define empowerment?
6)How can you make use of IT in HRM?
7)Suggest a training program/workshop for feedback skills?
8)Why do you think HRM is important?
9)What are retention strategies?
10)What do you mean by 360? feedback?
11)Which one is more better mentoring or coaching?
12)How would you terminate an employee who is not performing?
13)What is the difference between personnel management and human resource management?
14)What aspect of supervision do you find the most difficult?
15)How do you motivate employees?
16)What are the competitive challenges in Human Resource Management?
17)Explain managing changes in HRM?
18)Why do you want to work in HR and why is confidentiality so important?
19)May a deceased employee remain on the payroll to exhaust her annual leave accrual?
20)Does an agency have to provide an employee with time off if the employee is donating blood?
21)What is the Career Scope for the person working in HR.
22)If a person who is physically Disable and is working in HR Wants to migrate to some foreign country. Is he capable of doing so?
Subscribe to:
Posts (Atom)