logo

Crowdly

CS102 - Object-Oriented Programming 1 F1 - S25

Looking for CS102 - Object-Oriented Programming 1 F1 - S25 test answers and solutions? Browse our comprehensive collection of verified answers for CS102 - Object-Oriented Programming 1 F1 - S25 at moodle.medtech.tn.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Which are the object characteristics?

 
View this question
What is a constructor in Java?

 

 

 

 
0%
0%
0%
View this question
What is an object in Java?

 

 
View this question
What is the printout for the first statement in the main method?

public class Foo {

static int i = 0;

static int j = 0;

 

public static void main(String[] args) {

int i = 2;

int k = 3;

{

int j = 3;

System.out.println("i + j is " + i + j);

}

 

k = i + j;

System.out.println("k is " + k);

System.out.println("j is " + j);

}

}
View this question
The default constructor is used for

 
View this question
What is a class in Java?

 

 
View this question

The access level of a default modifier is

 

 

View this question
A program which shows an example of

class Student{

int id;

String name;

}

class MainStudent{  

public static void main(String args[]){

Student s1 = new Student();

s1.id=100;

s1.name="Sadiq";

System.out.println(s1.id+" "+s1.name);

}

}

View this question
new keyword is used for?

 
View this question
A variable, which gets memory at runtime when an object is created is called?

 

 
View this question

Want instant access to all verified answers on moodle.medtech.tn?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!