1.
Briefly describe the difference between POST and GET methods of HTML form.
2.
Briefly describe the difference between TCP and UDP.
3.
A simple TCP client.Write a code of a simple TCP client. This client needs to establish connection to the server and send a message "Hello.".The code does not have to run, can be written in language of your choice. What we are after are the socket calls necessary to establish TCP connection and send the message.
4.
If you needed to implement a TCP server serving multiple clients without blocking them. How would you do it?We are not necessarily looking for code. Just briefly discuss the paradigm you would use.
5.
Briefly describe the difference between a symbolic link and a "hard" link in Unix/Linux file system.
6.
White a python function toNum, which takes as its (one an only) argument a list of numbers and returns a list of string representations of those numbers.For example toNum([1, 2, 3, 4]) returns ["1", "2", "3", "4"].
7.
Please read!
This simple test is a quick evaluation of
your skills relevant to the position you are applying for. This is not
"pass or fail" test, it is an interview starter more than anything else.
The
test is written in English, to test your language comprehension. Some
answer are complete sentences. If you do not feel like
answering in English, answer in Czech or Slovak. We will take that into
account, though.
Please, try to answer all questions. It is better to have an incomplete answer than none at all.You have 1 hour and 23 minutes to finish the entire test (and the time is ticking already!). Do not waste any time,
Good luck!!
Are you ready?
Correct Answer
A. Yes
Explanation
The explanation for the given correct answer is that the test-taker is ready to begin the evaluation.
8.
To insert image called pic1.gif into an HTML document, you will use the following HTML code:<___________/>
Correct Answer
img src="pic1.gif"
Explanation
The correct answer is "img src="pic1.gif"". This HTML code is used to insert an image called "pic1.gif" into an HTML document. The "img" tag is used to define an image in HTML, and the "src" attribute specifies the source file (in this case, "pic1.gif") of the image to be displayed.
9.
Pick all the answers that apply.HTML form method POST ...
Correct Answer(s)
A. Should always be used for large data sets.
E. Encodes the the form data in the request header.
Explanation
The first statement, "should always be used for large data sets," is incorrect. The form method POST can be used for both small and large data sets, depending on the specific requirements of the application.
The second statement, "encodes the form data in the request header," is correct. When using the form method POST, the form data is encoded and sent in the request header, rather than being included in the URL.
10.
DNS is used to
Correct Answer(s)
C. Translate host names to IP addresses.
D. Translate IP addresses to host names.
Explanation
DNS, or Domain Name System, is a protocol used to translate host names to IP addresses and vice versa. When a user enters a website URL, the DNS server translates the domain name into an IP address, allowing the user's device to connect to the correct server. Similarly, DNS can also translate IP addresses back to host names, which can be useful in certain situations, such as identifying the domain name associated with a particular IP address.
11.
Which Unix/Linux command can you use to copy a file.
Correct Answer(s)
cp
Explanation
The Unix/Linux command "cp" is used to copy a file.
12.
Which Unix/Linux command can you use to rename a file.
Correct Answer(s)
mv
Explanation
The "mv" command in Unix/Linux can be used to rename a file. It stands for "move" and can be used to move or rename files and directories. By using the "mv" command followed by the current file name and the desired new file name, you can easily rename a file.
13.
Which Unix/Linux command shows the current working directory.
Correct Answer(s)
pwd
Explanation
The Unix/Linux command "pwd" stands for "print working directory". When this command is executed, it displays the absolute path of the current working directory on the command line interface. This helps the user to know their current location within the file system hierarchy.
14.
Which Unix/Linux command changes your current working directory to its parent directory?
Correct Answer(s)
cd ..
Explanation
The Unix/Linux command "cd .." is used to change the current working directory to its parent directory. The ".." represents the parent directory, so when this command is executed, the current directory is moved up one level in the directory hierarchy. This allows the user to navigate through the file system and access files or directories in the parent directory.
15.
Which Unix/Linux command displays the disk space usage report for mounted file systems.
Correct Answer(s)
df
Explanation
The command "df" in Unix/Linux displays the disk space usage report for mounted file systems. It provides information such as the total size of the file system, the amount of used and available space, and the percentage of disk space used. This command is useful for monitoring disk usage and determining if there is enough space available on the file systems.
16.
What Unix/Linux command can you use to display the file space usage summary of the current directory (including its subdirectories)
Correct Answer(s)
du -s
du -sk
du -ks
du -s .
du -sk .
Explanation
The correct answer is du -s, du -sk, du -ks, du -s ., du -sk . These are all valid Unix/Linux commands that can be used to display the file space usage summary of the current directory (including its subdirectories). The "du" command stands for "disk usage" and the "-s" option is used to display only the total size of each specified file or directory. The "-k" option is used to display the sizes in kilobytes, while the "-s" and "-k" options can be combined as "-ks". The "." represents the current directory.
17.
On a Linux system we have a directory containing file name like this:...2007-07-222007-07-282007-07-292007-07-302007-08-03...2008-04-272008-06-262008-06-292008-07-242008-07-26...(file names represent calendar dates).Create a regular expression such that commandls | grep '_______'returns all files for May, June, July and August 2008.
Correct Answer(s)
20008-0[5-8]
Explanation
The regular expression '20008-0[5-8]' matches the pattern of the file names for the months of May, June, July, and August in 2008. The '20008' part of the expression ensures that the year is 2008, while the '0[5-8]' part matches any digit from 5 to 8 after the hyphen, representing the months from May to August. This regular expression can be used with the 'ls | grep' command to filter and display only the files for those specific months and year.