FREE! Click here to Join FunTrivia. Thousands of games, quizzes, and lots more!
Quiz about Webscripts
Quiz about Webscripts

Webscripts Trivia Quiz


All kinds of interactive web sites can be made with script languages. Do you know a bit about them, and can you tell them apart?

A multiple-choice quiz by woordenboer. Estimated time: 4 mins.
  1. Home
  2. »
  3. Quizzes
  4. »
  5. Science Trivia
  6. »
  7. Computers
  8. »
  9. The Internet

Author
woordenboer
Time
4 mins
Type
Multiple Choice
Quiz #
137,181
Updated
Dec 03 21
# Qns
10
Difficulty
Average
Avg Score
6 / 10
Plays
1864
Last 3 plays: PurpleComet (7/10), ZWOZZE (3/10), LaurineL (8/10).
- -
Question 1 of 10
1. Which of these is a client-side script, executed in the user's browser? Hint


Question 2 of 10
2. C++, a general programming language also used as a webscript, is based on C. Its name includes the increment operator, which adds 1 to an integer variable.


Question 3 of 10
3. In 2000, the 'grandchild' of C was released, a language designed for Microsoft's .NET framework. Its name is... Hint


Question 4 of 10
4. Some of the most popular webscripts are server-side scripts embedded in HTML pages. Which of the following is 'open source', i.e. free of charge for any use, including modifying the source code? Hint


Question 5 of 10
5. What was the original name of PHP, as created by Rasmus Lerdorf? Hint


Question 6 of 10
6. Each of the following questions shows a line of code from a programming language used for web applications. Which language is the following code written in:

document.bgColor = "FF0000";
Hint


Question 7 of 10
7. Which language is the following code written in:

open (IN, "Input.csv") || die "Cannot open input file: $!";
Hint


Question 8 of 10
8. Which of these languages is the following code written in (there are some others in which this code would be valid, but they're not listed here)?

shuffle($quotes);
Hint


Question 9 of 10
9. Which language is the following code written in:

Response.Write Item & " = " & Request.QueryString(Item)(iCount)
Hint


Question 10 of 10
10. Which language is the following code written in:

int i, &x = i;
Hint



(Optional) Create a Free FunTrivia ID to save the points you are about to earn:

arrow Select a User ID:
arrow Choose a Password:
arrow Your Email:




Most Recent Scores
Apr 17 2024 : PurpleComet: 7/10
Apr 14 2024 : ZWOZZE: 3/10
Apr 13 2024 : LaurineL: 8/10
Mar 16 2024 : rainbowriver: 10/10
Mar 03 2024 : Guest 75: 4/10

Score Distribution

quiz
Quiz Answer Key and Fun Facts
1. Which of these is a client-side script, executed in the user's browser?

Answer: JavaScript

There is also a server-side version.
2. C++, a general programming language also used as a webscript, is based on C. Its name includes the increment operator, which adds 1 to an integer variable.

Answer: True

C is a powerful 'low-level' language, relatively close to machine code. C++ is more abstract and designed for object-oriented programming.
3. In 2000, the 'grandchild' of C was released, a language designed for Microsoft's .NET framework. Its name is...

Answer: C# (see sharp)

C# is meant to be portable across all kinds of systems, including embedded systems, and developing C# code should be easier and safer than developing C++ code. In many respects, C# resembles Java more than C or C++.
4. Some of the most popular webscripts are server-side scripts embedded in HTML pages. Which of the following is 'open source', i.e. free of charge for any use, including modifying the source code?

Answer: PHP

Although Perl is open source software as well, it is not embedded in HTML pages but rather executed through the Common Gateway Interface (CGI). This makes it a bit more powerful, but also a bit slower.
5. What was the original name of PHP, as created by Rasmus Lerdorf?

Answer: Personal Home Page Tools

Since it has outgrown personal home page tools, it's usually just called PHP now. But the official name has become PHP: Hypertext Preprocessor, a so-called recursive abbreviation - if you think that's funny, you're a real nerd!
6. Each of the following questions shows a line of code from a programming language used for web applications. Which language is the following code written in: document.bgColor = "FF0000";

Answer: JavaScript

This line sets the background color of a web page to red. Since it is implemented in the browser, JavaScript is suited for changing the appearance of a web page.
7. Which language is the following code written in: open (IN, "Input.csv") || die "Cannot open input file: $!";

Answer: Perl

This line tries to open the file Input.csv. If it isn't found, a message will be displayed - $! will be replaced with a specific error message.
8. Which of these languages is the following code written in (there are some others in which this code would be valid, but they're not listed here)? shuffle($quotes);

Answer: PHP

Shuffle() is a convenient PHP function which randomly changes the order of elements in an array, together with their keys. If the function "shuffle" is defined (by the user), this code is also perfectly good in Perl.
9. Which language is the following code written in: Response.Write Item & " = " & Request.QueryString(Item)(iCount)

Answer: VBScript

This line is used to display some text. VBScript has been derived from Microsoft's VisualBasic programming language and is the default script for Active Server Pages (ASP).
10. Which language is the following code written in: int i, &x = i;

Answer: C++

Variable x is a reference variable, since it is defined as &x; in effect it's another name for variable i.
Source: Author woordenboer

This quiz was reviewed by FunTrivia editor crisw before going online.
Any errors found in FunTrivia content are routinely corrected through our feedback system.
4/18/2024, Copyright 2024 FunTrivia, Inc. - Report an Error / Contact Us