Training, Open Source computer languages

PerlPythonMySQLTclRubyC & C++LuaJavaTomcatPHPhttpdLinux

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Another set of Quiz questions
We've got questions on our web site that used formerly form part of our quizzes. Now, we publish each question along with the answers, so you can look up any of the questions below and find what the answer should be. After all - we're a company that prides iteslf in answering techincal questions in the open source arena! Link also to our general quiz index and to our directories of short articles on PHP, Lua, Perl, MySQL, Python and Latest items.

Page 1 - Page 2 - Page 3 - Page 4

Subject: PHP Programming, Level: Basics

Q. PHP statements are usually teminated by

Q. How does PHP interface to the web server

Q. The PHP Reference manual is

Q. what's the result of

1 + 2 * 3 + 4

Q. In PHP, the word "and" is used as

Subject: PHP Programming, Level: Advanced

Q. What's the best way to copy a file from within a piece of PHP?

Q. To get the age of a dog held in the object $ourdog, you might write:

Q. The -q option on the PHP command line means

Q. If you get a true value back from the mail function it means:

Subject: PHP Programming, Level: Intermediate

Q. An array has five elements. The elements are called:

Q. Are there regular expressions in PHP?

Q. Which of these statements is true?

Q. If you want to process a string one character at a time, you can simply treat the string as an array of single characters

Q. How would you add 1 to the variable $count?

Q. The last block of a switch statement should be labelled

Subject: MySQL, Level: Basics

Q. MySQL runs on which operating systems?

Q. Which of the following can add a row to a table?

Q. Internally information is held in tables. Which of these is NOT a valid format:

Q. In a LIKE clause, you can could ask for any value ending in "ton" by writing

Subject: MySQL, Level: Advanced

Q. MySQL is

Q. To use MySQL on your computer, you'll need

Q. MySQL supports the complete SQL99 standard

Q. MySQL Access security is controlled through

Q. In a LIKE clause, you can ask for any 6 letter value by writing:

Subject: MySQL, Level: Intermediate

Q. MySQL is available

Q. The main MySQL program that does all the data handling is called

Q. A SELECT command without a WHERE clause returns

Q. Which of these is not a valid name for a column

Q. The USE command

Subject: Perl Programming, Level: Basics

Q. Which of the following is a valid Perl variable name?

Q. What does this program print out?
$x = 1;
while ($x < 20) {
$x = $x * 2; }
print $x,"\n";

Q. Which of these is NOT available for Perl:

Q. When you create a variable, you may assume it starts off containing:

Q. The most recent version of Perl is 5.6.2

Q. Perlscript is

Q. Which brackets do you use to change the order of precedence of operations?

Q. The "-c" option to Perl

Q. Which of these is a NOT an operator or keyword in Perl:

Subject: Perl Programming, Level: Advanced

Q. A class of objects in Perl 5 is:

Q. To allow a constructor to be inherited, you should

Q. The "multiline mode" modifier effects:

Q. When developing a module, you'll often use "die" to flag errors, but when you release your module for others to use, you'll want the error message to reflect where abouts in *their* code the failing call was made. You should replace die with:

Q. If you declare a subroutine specifying

sub demo () {

(etc)

}

then:

Q. Which of these is true about a UDP client you write?

Q. When writing a CGI script and generating an HTML page, how must you start your response?

Q. Which of these is not a suitable use of Perl?

Q. If you're looking to transfer to another computer using FTP from within your Perl program, the best way to do it is:

Q. The assignment statement

$j = 80.101.114.108;
sets the variable $j to contain:

Subject: Perl Programming, Level: Intermediate

Q. What type of variable is INPUT?

Q. The program line @vvv=<XYZ>;

Q. Which of the following means "1 or more white spaces" in a regular expression match?

Q. s/(\w)/\u$1/g;

Q. Which of these is NOT a standard output command:

Q. Which of these is a valid regular expression meaning "contains any digit"?

Q. Which of these is a way of declaring a variable of limited scope:

Q. The function to delete a file in Perl is

Q. Which of these operators uses regular expressions?

Q. For a time in the month of March, the localtime function will return a month of:

Subject: Java Programming, Level: Basics

Q. Which of these products always produces pure Java output?

Q. If you extend a class, you are

Q. Threads are used:

Q. If you write a piece of Java ...

Q. JavaScript is

Subject: Java Programming, Level: Advanced

Q. In order to use a bean, you need access to:

Q. Which of these is a predefined colour?

Q. How many methods does the MouseMotionListener interface define?

Q. WebSphere is:

Q. The lookingAt method (run on a java.util.regex.Matcher object)

Subject: Java Programming, Level: Intermediate

Q. Which Utility class would you use if you want to have an array which can be extended dynamically while your Java program runs?

Q. From how many classes can you inherit methods directly into a subclass?

Q. Which of these statements is wrong?

Q. If I want to compare the two strings in the variables "one" and "two" to see if the contents of the strings are identical, which do I write?

Q. If X and Y are objects, and you write
X = Y;
in your code, it means:

Q. A JVM is ...

Subject: Tcl Programming, Level: Basics

Q. Which of these statements is a Tcl comment?

Q. Tcl statements are usually teminated by

Q. Expect is:

Q. The Tk extension to Tcl provides:

Subject: Tcl Programming, Level: Advanced

Q. To strech a widget to fill a cell in a grid, you would use

Q. To open a client socket to "finger", you might write

Q. Which option to send is best used to mimic a user's input?

Q. To find the width the screen, you would use

Subject: Tcl Programming, Level: Intermediate

Q. To join multiple lists into a single list you would use

Q. To ensure that a prompt appears before you read in an answer, you should use

Q. To read an entire file at one go, you would use:

Q. The latest verstion of Tcl is 8.1


© WELL HOUSE CONSULTANTS LTD., 2008: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho