Introductory to object-oriented programmin questions.
Find Introductory to object-oriented programmin university examination questions in acaproso.com
# | Question |
---|---|
1 | All high level object oriented programming languages are built on the concepts of classes and objects. Mentioning real life examples give the meaning of the terms class and object. Short answers |
2 | Suppose you are developing a system named Students` Records System-SRS, write a java program to create a class called SoccerPlayer. This class must include one and one method named playerName(with one argument) to print player`s name . Then create the second class named Demo which includes the main method. In this main method, create three objects namely mangala, kompani and toure. Invoke the playerName method for each of your objects. Short answers |
3 | Mention at least 6 advantages of writing a program in object oriented language. Short answers |
4 | With an example write the syntax of an if-else statement. Short answers |
5 | Define Java and give three characteristics of Java programming language. Short answers |
6 | In Java, to create an application using a class known as Welcome, one has to create a ___ file, save it as ___ , then __ it to produce a __ file which looks like Welcome.class and finally __ to produce output/result. Short answers |
7 | Write a simple Java program to display a message on the screen that says “finally, I will be graduating soon”. Practical |
8 | Giving examples for each type, state three commonly used primitive data types in Java. Short answers |
9 | Demonstrate the concept of primitive data types by creating a simple application that calculates the balance after buying a cake and biscuit for 500 and 740.50, given that the person has 2000. Practical |
10 | What is a variable? briefly describe the types of variables used in Java programming language. Short answers |