Answer:
Both (i) and (ii) are valid in Java
Explanation:
In (i) 'area' is a variable property of the object myCircle. It could be assigned a value. In this case it has been assigned a value equal to the product of 3.14 and the square of the read input of type double from the keyboard.
After assigning a value to area, it could be printed directly to the console using the println method.
In (ii) 'area' is a method property of the object myCircle. It could be called when the value of the radius(r) has been set using a second method 'set' of myCircle. The call to myCircle.area() probably prints the area of the circle, myCircle, to the console.
In summary, though different, both are valid ways of doing the same thing.
Hope this helps!
I think it is c if that helps x
Answer:
import sys, time
from os import walk, remove
from os.path import exists, join, getsize, getctime
file_counter = [ ]
folder_name, file_size = argv
isExist = exists( folder_name )
if folder_name == True:
for root, folder, files in walk( folder_name ):
for file in files:
if getsize( join ( root, file ) ) >= file_size:
file_log = [ ]
file_log.append( file )
file_log.append( join ( root, file) )
file_log.append( time.ctime( getctime( file ) ) )
file_counter.append( file_log )
else:
remove ( join ( root, file ) )
Explanation:
The python script above output the filename, size and file creation date of any folder passed to it.
Answer:
A. mopped his brow, exhaled sharply, and picked up his phone.
Explanation:
Predicate in a sentence talks about the actions relating to the subject of the sentence, Here, The complete predicate is option A.mopped his brow, exhaled sharply, and picked up his phone. because they were the actions performed by the subject (John) the subject in a sentence usually refers to the person, place, thing, etc (Noun).
Answer:
Language is made up of syntactic norms and semantics since it is a resource which we use to develop computer programs and solve problems. The package, on the other hand, is a type of folder since it is a collections of linked and pre-defined classes. Furthermore, a package is designed for a certain set of tasks which has a limited computational capability. So, language has a set of rules and syntax for creating data encapsulation, whereas package has a chain of conditions for building menu action programs and applications.