Answer:
It matters what programming language you are using. It would be something like this:
print("I love to program");
print("I love to program");
(written in modified javascript)
Answer:
cp /path/to/source.txt .
is the general format of copying a file to the current directory
cp ~/UnixCourse/fileAsst/TweedleDee/hatter.txt .
You can refer to the current directory with a dot (.)
Explanation:
First, we would like to delete all files in our current directory (commandsAsst directory). To delete the files inside the directory, we would run the following command:
rm -r commandsAsst/*
This command delete the files recursively. Usually, the command for deleting is rm -r. The operator * run rm -r on every file or directory within commandsAsst.
Answer:
int x;
String s;
if ((x%3) == 0) {
s = "Divisible by 3";
} else {
s = "Not divisible by 3";
}
System.out.println(s);
Explanation:
A : B ? C generally translates to if (A) { B } else { C }.
Note the == to compare to 0. The single = in the original expression is a mistake.
Answer:
The correct answer is:
"joining a Python developer forum and posting a question to the forum to solicit feedback"
Explanation:
Learning a new skill involves a lot of research and study especially learning a new programming language.
The syntax and commands have to be understood first.
Now if Sam has to implement a particular feature, the easiest and less time-consuming way is that he post his query on a Python language forum as there might be better and expert programmer that might help
Hence,
The correct answer is:
"joining a Python developer forum and posting a question to the forum to solicit feedback"