Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Instructions: Attempt all the questions from Sections A, B. Answers must be clearly written on the the back of the paper Time allowed: 120 Materials
Instructions: Attempt all the questions from Sections A, B. Answers must be clearly written on the the back of the paper Time allowed: 120 Materials allowed: Answer Sheet provided at Section A- SINGLE CHOICE QUESTIONS (20 m each) 1. Consider a Java program with the following code arks in total with 2 marks int value- ; for(int i 4; i it value-+i System.out.print(value +"); What actual values are neded to assigned in D, 2, and so that the output when the code is executed will be: 7911 13 . -3, 11, 2 E. -4, -11, 2 2. Which of the following statements will cause a compilation error Aint knewString("aa"); C. char c-74; B. String str-new String("bb"); D. long j-8888; 3. Suppose there're two classes called Class1, Class2, and two interfaces called Interfacel, Interface2. Within the class headers shown below, which one is correct? A. public class MyClass extends Class ,Class2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started