1 Given Following Code Fragment String Num 123 Character C P Int Num1 Integerparseint Num Q37224721

1. Given the following code fragment:

String num = “123”;

Character c = ‘p’;

int num1 = Integer.parseInt(num);

String str = c.toString();

one of the following statements holds…

  1. the initialization of variable str triggers a syntaxerror.
  2. the initialization of variable num1 triggers a syntaxerror.
  3. toString is a static method of class Character that copies astring value into a new string.
  4. parseInt is a static method of class Integer that parses anumeric string into an integer value

2. The “correctness” core quality of software refers tothe fact that …

  1. programs efficiently support the insertion of new features,improvements, corrections
  2. programs answer to requested user actions within acceptabletime delays.
  3. programs compile without any syntax
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.