Answer the following statements true (T) or false (F)

1) Object-oriented programming languages do not use functions to perform actions.
2) The parameter self must be the first item in a method’s argument list.
3) The class constructor returns an object of the class.
4) Programmer-defined and built-in modules are imported in the same way.
5) Constructors may specify keyword arguments and default arguments.


1) F
2) F
3) F
4) T
5) T

Computer Science & Information Technology

You might also like to view...

Which of the following are Office 365 subscriptions for small and medium businesses?

A) Office 365 Business B) Office 365 All In One C) Office 365 Business Essentials D) Office 365 Business Premium E) All of the above F) A, C, and D

Computer Science & Information Technology

A call to a C++ function is

a. The name of the function followed by empty parentheses. b. The name of the function followed by any number of arguments, regardless of the number of parameters in the definition. c. The name of the function followed by a number of arguments not greater than the number of parameters in the definition. d. The name of the function followed by exactly the number of arguments as there are parameters in the definition. e. The name of the function only.

Computer Science & Information Technology

What is output by the following Java code segment? int temp = 180;

``` while (temp != 80) { if (temp > 90) { System.out.print("This porridge is too hot! "); // cool down temp = temp – (temp > 150 ? 100 : 20); } else { if (temp < 70) { System.out.print("This porridge is too cold! "); // warm up temp = temp + (temp < 50 ? 30 : 20); } } } if (temp == 80) { System.out.println("This porridge is just right!"); } ``` a. This porridge is too cold! This porridge is just right! b. This porridge is too hot! This porridge is just right! c. This porridge is just right! d. None of the above.

Computer Science & Information Technology

After the Finish and Merge step is completed when creating a group of envelopes, each individual is separated by ________ section breaks

A) next page B) same page C) new page D) continuous

Computer Science & Information Technology