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
Some Quiz Questions
We've got some questions on our web site that used formerly form part of our quizzes; these days, 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, Perl, Java and MySQL.

Page 1 - Page 2 - Page 3 - Page 4
Here are some sample questions from our quizzes

Subject: PHP Programming, Level: Basics

Q. To start a new line on the browser, you might

Q. Who do you need to contact to obtain a license if you want to use PHP?

Q. As of summer 2001, how many internet web sites were PHP enabled?

Q. Comments in your PHP

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

Subject: PHP Programming, Level: Advanced

Q. PHP is "Y2K" compliant. When might it have date problems?

Q. A static variable is

Q. If you try to print out the contents of a variable that hasn't had a value assigned to it ...

Q. To configure PHP to send emails on a Windows server, you need to:

Subject: PHP Programming, Level: Intermediate

Q. The latest verstion of PHP is 4.0.5

Q. You can set a cookie (if the user is accepting them)

Q. If you want to change every occurrence of "Mary" to "Maria" in a variable, you would:

Q. What colour cables should you use to connect a server running PHP to your network?

Q. When would you use double quotes rather than single quotes to define a string of text?

Subject: MySQL, Level: Basics

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: Advanced

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: MySQL, Level: Intermediate

Q. MySQL stores its data in

Q. Commands passed to the MySQL daemon are written in

Q. MySQL comes with as standard with client libraries for:

Q. Which of these commands will delete a table called XXX if you have appropriate authority:

Q. One of the early proponents of relational database who laid down many of the principles we use to this day was:

Subject: Perl Programming, Level: Basics

Q. If your perl program reports an error at line 16, what should you do?

Q. What does this program print out if you type in END when prompted?
print "What is this? "
$in = <STDIN>;
if ($in eq "end")
{
print "small ending\n";
}
if ($in eq "END")
{
print "big ending\n";
}

Q. If you run Perl with the "-w" option ...

Q. Perl is commonly used on the web for

Q. Perl is available for free with Linux

Q. Which of these is a good source of Perl modules?

Q. The program

print 7 x 8

would output

Q. What character is used to separate statements in Perl?

Q. The "%" operator returns:

Subject: Perl Programming, Level: Advanced

Q. The hash called %INC:

Q. Tieing allows you to:

Q. To find out the name of the subroutine that called you, use

Q. If I start my perl program with

use Getopt::std;
getopts('vhf:') || die "You don't know how to run this command\n";

then:

Q. mod-perl is:

Q. You're writing a CGI program that you want to access via a link from an HTML page without the user having to complete a form. What must you ensure for your CGI program?

Q. What's the maximum number of characters that can be uploaded using the GET method?

Q. The statement
open (FH,">","abc,txt");

Q. The kill function in Perl: 1. Sends a signal to another process 2. Kills another process 3. Deletes all child processes of the process that calls the function 4. Causes the Perl program to exit immediately without flushing any buffers 5. Iconises the current window

Q. The ~ operator

Subject: Perl Programming, Level: Intermediate

Q. The maximum number of characters that can be held in a scalar is

Q. In your program, if you include the line use English;

Q. What statement do you use to load a Perl module?

Q. print "matched" if ($xyz =~ /end/);

Q. Perl is best described as:

Q. In order to create an object, you would use:

Q. You would use a program that calls the Tk module to:

Q. The exists operator is used to check if an element exists in a hash

Q. What would happen if you ran the following Perl statment:

$phone[7187511770] = "New York Office";

Q. "POD" provides

Subject: Java Programming, Level: Basics

Q. A jar is used:

Q. Java claims to be three of the following. Please select the false claim.

Q. An applet is

Q. Which of the following is a Java primitive variable type?

Subject: Java Programming, Level: Advanced

Q. Which of the following is a valid name for a method if you are writing a bean?

Q. In the Abstract Windowing Toolkit, the origin of a frame is always at:

Q. If you write an interactive applet that uses "MouseMoved" rather than "MouseMove", how do you restrict your audience?

Q. Resource bundles are a convenient way to:

Q. Which of the following is NOT a correct statement

Q. The java.nio package is

Subject: Java Programming, Level: Intermediate

Q. If you try to access beyond the end of an array, Java always:

Q. How many interfaces can you implement in a new class at one time?

Q. The statement int [] counts = new int [26];

Q. What would I use a StringBuffer for?

Q. What value is left in the variable ttimes after running this code?
String Quiz = "Some test text";
int ttimes = 0;
for (int stepper=0; stepper<Quiz.length()-1; stepper++)
  if (Quiz.charAt(stepper) == 't') ;
   &bsp;++ttimes;

Subject: Tcl Programming, Level: Basics

Q. Tcl is:

Q. To output a message to the screen, you might use which command:

Q. To print out a line of text, but not a new line on the end, you would:

Q. Which of these is not a command in Tcl?

Subject: Tcl Programming, Level: Advanced

Q. To create a button widget, you would use the command

Q. Graphics on a Tk canavas are:

Q. To use Tcl within your C program, you would:

Q. To sort a list, you would use the command

Subject: Tcl Programming, Level: Intermediate

Q. Using glob matching, under* would match

Q. The global scope applies to variables:

Q. In Tcl, blocks of code which can be called like your own command are called

Q. When developing an expect application, all the dialogue between your process and the process you have spawned is echoed onto the screen. In order to turn this off when the application goes live, you would:

Q. The wish program provides:


© 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