Beruflich Dokumente
Kultur Dokumente
Unit Testing
Database Normalization
Binary Trees
Relational Databases
Time Complexity of Linked Lists
** Write a program which prints number from 1-75 but if the number is divisible by 5 it will
print "Foo", if its divisible by 7 it prints "Bar" and if its divisible by both 7 and 5 then it print
"FooBar".
** Unit test a function which uses the following parameters :
reversestring(originalString, stringToBeReversed, stringReverseTo,max)
(Come up with as many test cases as possible)
** Design a chess game using OOP concepts.
** What are pointers, how are they used, what is a wild pointer.
** What is buffer overflow.
** what is First chance exception,
Technical:
arrays vs linklist
what is RDMBS
Code:unit test
Code:find the null pointer exception
concept of 1 to many relationships in databases with an example
binary search to find number 9 in an array from 1 to 19
complexity of binary search and its complexity in case of an unsorted array
design a game of checkers using OOD
Code for finding an output of an recursive program
what are memory managed languages, name them
what are the responsibilities of a programmer in a memory managed language
Name and explain the various design pattens
There is a class Car and a class Paint what is the relationship between them and explain
What is database normalization and forms of it
Various software testing levels and explain
Deadlock, explain
Write a program that prints foo, bar and foobar for numbers divisible by 5,7 and both 5 and 7
respectively
what are memory managed languages, name them
what are the responsibilities of a programmer in a memory managed language
Car,paint relationship.
database normalization
Make a binary tree where the nodes are the letters in "Cerner".
linked list vs arrays
design chess through oops
If a user reports a bug in the application, what steps would you take?
How would you go about designing a program for binary search?
How would you go about coding a game of Chess or Checkers?
What's the difference in encapsulation and inheritance?
What is database normalization?
Make a binary tree where the nodes are the letters in "Cerner".
String reversal program was given and I was told to explain the output.
Question about unit testing. How to create unit test cases.
How will you manage the memory while programming.
Complexity of linked list and tree insertion
Explain the differences between searching through a linked list vs. a binary tree
DBMS vs RDBMS
Linked List implementation
Describe a situation where you have difficulties with your team members.
Describe a scenario where you tried to troubleshoot and you succeeded.
Describe a scenario where you tried to troubleshoot and you failed.
Were the Managers unhappy about your work anytime?
What was the challenging work in your career?
prime?
How would you go about coding a game of checkers?
What's the difference in encapsulation and inheritance?
What is database normalization?
Make a binary tree where the nodes are the letters in "Cerner".
String reversal program was given and I was told to explain the output.
Question about unit testing. How to create unit test cases.
What is a deadlock?
If there was anything you wanted to change about a programming language, what would it be?
How will you manage the memory while programming.
Complexity of linked list and tree insertion
Explain the differences between searching through a linked list vs. a binary tree
explain a time when you used polymorphism
DBMS vs RDBMS
Linked List implementation
Interview Questions
Tell me about yourself
Why do u want to work at Cerner Answer Question
Describe a situation where you have difficulties with your team members
Describe a scenario where you tried to troubleshoot and you succeeded
Describe a scenario where you tried to troubleshoot and you failed
What are your 3 biggest achievements so far
were the Managers unhappy about your work anytime?
What is the biggest mistake you made in a past job.
What was the challenging work in your career
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.border.*;
public class TrafficLight extends JFrame implements ActionListener {
JButton b1, b2, b3;
Signal green = new Signal(Color.green);
Signal yellow = new Signal(Color.yellow);
Signal red = new Signal(Color.red);
public TrafficLight(){
super("Traffic Light");
getContentPane().setLayout(new GridLayout(2, 1));
b1 = new JButton("Red");
b2 = new JButton("Yellow");
b3 = new JButton("Green");
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
green.turnOn(false);
yellow.turnOn(false);
red.turnOn(true);
JPanel p1 = new JPanel(new GridLayout(3,1));
p1.add(red);
p1.add(yellow);
p1.add(green);
JPanel p2 = new JPanel(new FlowLayout());
p2.add(b1);
p2.add(b2);
p2.add(b3);
getContentPane().add(p1);
getContentPane().add(p2);
pack();
}
public static void main(String[] args){
TrafficLight tl = new TrafficLight();
tl.setVisible(true);
}
public void actionPerformed(ActionEvent e){
if (e.getSource() == b1){
green.turnOn(false);
yellow.turnOn(false);
red.turnOn(true);
} else if (e.getSource() == b2){
yellow.turnOn(true);
green.turnOn(false);
red.turnOn(false);
} else if (e.getSource() == b3){
red.turnOn(false);
yellow.turnOn(false);
green.turnOn(true);
}
}
}
class Signal extends JPanel{
Color on;
int radius = 40;
int border = 10;
boolean change;
Signal(Color color){
on = color;
change = true;
}