ITE6104 Computer Programming 2 (Finals Q1&Q2)

This course is designed to introduce the world of computing through computer programming. Students will get firsthand experience in developing their very first console applications using C++ programming language. In addition, some advanced topics will be introduces throughout the course to promote the ideology of C++.

This course is aimed at students with little or no programming experience but has the desire to undertake the world of software development. Students, however, are expected to have extensive grasp of Mathematics, particularly College Algebra. As this course will be analysis-based, students should allot time for off-class group discussions with the class and/or mentor.



ITE6104 Computer Programming 2

Question 1

Answer saved
Marked out of 1.00
Flag question

Question text

Which of the following show casting object?

Select one:

Question 2

Answer saved
Marked out of 1.00
Flag question

Question text

What do you call a blueprint of an object?
Select one:

Question 3

Answer saved
Marked out of 1.00
Flag question

Question text

What is the result if we execute this: “a”.equals(“a”);?
Select one:

Question 4

Answer saved
Marked out of 1.00
Flag question

Question text

It is a template for creating an object?
Select one:

Question 5

Answer saved
Marked out of 1.00
Flag question

Question text

Which of the following creates an instance of a class?

Select one:

Question 6

Answer saved
Marked out of 1.00
Flag question

Question text

It is the method of hiding certain elements of the implementation of a certain class?
Select one:

Question 7

Answer saved
Marked out of 1.00
Flag question

Question text

What is the result if we execute this: “a” instanceof String; ?
Select one:

Question 8

Answer saved
Marked out of 1.00
Flag question

Question text

What do you call a variable that belong to the whole class?
Select one:

Question 9

Answer saved
Marked out of 1.00
Flag question

Question text

Which of the following will do implicit cast? 

Select one:

Question 10

Answer saved
Marked out of 1.00
Flag question

Question text

What will be the value of x if we execute this: String s = "25"; int x = Integer.parseInt(s); ?

Select one:

Question 1
Answer saved 
Marked out of 1.00
Flag question

Question text

It is the ability of an object to have many forms?
Select one:

Question 2

Answer saved
Marked out of 1.00
Flag question

Question text

Which of the following is the correct way to call the constructor of the parent class?
Select one:

Question 3

Answer saved
Marked out of 1.00
Flag question

Question text

Which of the following method is allowed to be overriden?

Select one:

Question 4

Answer saved
Marked out of 1.00
Flag question

Question text

Which of the following is the correct way to use an interface?

Select one:

Question 5

Answer saved
Marked out of 1.00
Flag question

Question text

Which of the following class declaration is not allowed to be inherited?

Select one:

Question 6

Answer saved
Marked out of 1.00
Flag question

Question text

Which of the following is the correct way to define an interface?

Select one:

Question 7

Answer saved
Marked out of 1.00
Flag question

Question text

What do you call a class that inherits a class?
Select one:

Question 8

Answer saved
Marked out of 1.00
Flag question

Question text

Which of the following is true about Interface?
Select one:

Question 9

Answer saved
Marked out of 1.00
Flag question

Question text

What keyword is used to perform class inheritance?
Select one:

Question 10

Answer saved
Marked out of 1.00
Flag question

Question text

Which of the following class declaration is not allowed to be instantiated?

Select one: