Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

  • AppLabs aptitute test questions (1)
  • AppLabs interview questions (104)
  • AppLabs placement papers (1)
  • AppLabs technical test questions (4)



AppLabs C Interview Questions
Questions Answers Views Company eMail

HOW DO YOU HANDLE EXCEPTIONS IN C?

2 4387

Post New AppLabs C Interview Questions



Un-Answered Questions

explain the omportance of "squish" and "swirl" in ci engine

1722


what is the syallabus of computer science students in group- 1?

1028


Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar

2045


is there any role of power factor with frequency variation? and how we can manage the frequency variation?

807


I've finished b tech in electronics and communication engg.Can i appaer for the nic exam

775






How to calculate heat load .For example 10 TR .Then how we will find load (we want rh(relatavie humidity) sir)

359


What is Risk Assessment?

666


where do i get c form in hyd for my factory.and what do i need for that.

896


for G+2 residential building how much quantity of required in foundations,sub & superstructures per sq ft area

877


How to capture an image from a video source?

768


why nitrogen charecter as a inert gas plz identified

469


Which of our products/services most appeals to you and why?

358


How can you save the sea from oil and sound polution?

1041


How to create scrollable tables in HTML-DHTML? My doubt is "I want to create a table whose header will remain stationery when I scroll the table vertically, but at the same time when I scroll horizontally, the header should scorll sidewise along with the body."

1155


Question 5 [15] Consider the following classes, illustrating the Strategy design pattern: import java.awt.*; abstract class Text { protected TextApplet tA; protected Text(TextApplet tApplet) { tA = tApplet; } abstract public void draw(Graphics g); } class PlainText extends Text { protected PlainText(TextApplet tApplet) { super(tApplet); } public void draw(Graphics g) { g.setColor(tA.getColor()); g.setFont(new Font("Sans-serif", Font.PLAIN, 12)); g.drawString(tA.getText(), 20, 20); } } class CodeText extends Text { protected CodeText(TextApplet tApplet) { super(tApplet); } public void draw(Graphics g) { g.setColor(tA.getColor()); g.setFont(new Font("Monospaced", Font.PLAIN, 12)); g.drawString(tA.getText(), 20, 20); } } public class TextApplet extends java.applet.Applet { protected Text text; protected String textVal; protected Color color; public String getText() { return textVal; } public Color getColor() { return color; } public void init() { textVal = getParameter("text"); String textStyle = getParameter("style"); String textColor = getParameter("color"); if (textStyle == "code") text = new CodeText(this); else text = new PlainText(this); if (textColor == "red") color = Color.RED; else if (textColor == "blue") color = Color.BLUE; else color = Color.BLACK; } public void paint(Graphics g) { text.draw(g); 10 } } The Text class is more complicated than it should be (there is too much coupling between the Text and TextApplet classes). By getting rid of the reference to a TextApplet object in the Text class and setting the colour in the paint() method, one could turn the Text class into an interface and simplify the strategy classes considerably. 5.1 Rewrite the Text and PlainText classes to do what is described above. (6) 5.2 Explain the consequent changes that are necessary to the TextApplet class. (4) 5.3 Write an additional strategy class called FancyText (to go with your simplified strategy classes) to allow fancy text to be displayed for the value "fancy" provided for the style parameter. It should use the font Font ("Serif", Font.ITALIC, 12). (3) 5.4 Explain what changes are necessary to the TextApplet class for this. (2)

782






AppLabs C Interview Questions
    C (1)
  • CGI Perl (2)
  • VB Script (3)
  • Microsoft Related AllOther (1)
  • Oracle General (1)
  • WinRunner (4)
  • Load Runner (3)
  • QTP (25)
  • Silk Test (1)
  • Manual Testing (55)
  • Test Cases (3)
  • Testing AllOther (2)
  • IBM MainFrame AllOther (1)
  • JDBC (1)
  • SAP Basis (1)
  • Oracle Apps Financial (2)
  • Civil Engineering (1)
  • Placement Papers (1)
  • Microsoft Certifications (1)
  • Scripts Errors (1)