Answer:
D. placeholder
Placeholder are like the field you enter your username and passwords and etc. They can be easily understood my the name itself!
Hope this is the correct answer!
Bye!
Answer:
Following are the complete code to this question:
import os #import package
def parent_directory():#defining a method parent_directory
dir = os.getcwd()#defining dir that stores the getcwd method value
relative_parent = os.path.join(dir) #defining relative_parent variable that uses join method to adds directory
return os.path.dirname(relative_parent)#use return keyword to return directory name
print(parent_directory())#use print method to call parent_directory method
Output:
/
Note:
This program is run the online compiler that's why it will return "/"
Explanation:
In the given Python code, we import the "os" package, after that a method "parent_directory" is defined, which uses the dir with the "getcwd" method that stores the current working directory.
- After that "relative_parent" variable is declared, which uses the join method to store the directory value and use the return keyword to returns its value.
- In the next step, the print method is used, which calls the method.
Answer:
The right answer is "Hardware crash".
Explanation:
- According to the runtime error message, this same RAM on your machine was problematic. This excludes file interoperability or compliance problems as well as program error possibilities.
- Assuming implementation performance problems exist, the timeframe that would save the information would be typically longer, but there's still a lower possibility that the adequacy and effectiveness color will become blue but instead demonstrate warning would appear.
Thus the above is the right solution.
import java.util.Scanner;
public class JavaApplication60 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter a number in the twenties");
int num = scan.nextInt();
if(num >= 30 || num <= 19){
System.out.println("That's not in the twenties!");
num = 25;
}
System.out.println("Your number is " + num);
}
}
This is the complete code including the main class and main method. I hope this helps!
No it’s not and yolo who cares