Answer:
a submenu
Explanation:
a menu inside a menu is called a submenu or recursive menu
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:
In the given program, a parameterized constructor declaration is wrong, which can be described as follows:
Explanation:
Code:
class TempClass //defining class TempClass
{
int i; //defining integer varaible i
TempClass(int j)//defining parameterized constructor
{
i = j; //variable holds a value
System.out.print(i); //print value
}
}
public class Main //defining class Main
{
public static void main(String[] aw) //defining main method
{
TempClass temp =new TempClass(2); //creating class Object and call parameterized constructor.
}
}
Description:
- In the given java code, two classes "TempClass and Main" is defined, inside the TempClass class an integer variable "i" and a parameterized constructor is declared, inside the constructor integer variable "i" hold constructor parameter value, the use print method to prints its value.
- Then the main class is defined, inside this main method is declared, in this method, the TempClass object "temp" is defined, that call the parameter constructor.
Answer:
INPUT "Input Length: ";LENGTH
INPUT "Input Width: ";WIDTH
AREA = WIDTH*LENGTH
IF AREA >= 250 THEN PRINT "Big room"
IF AREA < 250 THEN PRINT "Small room"
Explanation: