Module 7 Quiz Flashcards
Using the following Perl code, how many times will "This is easy..." be displayed onscreen? for ($count=1; $count <= 5; $count++) { print "This is easy…"; }
5, none, 6, or 4?
5
Which of the following tags enables an HTML programmer to create a loop?
HTML doesn’t have a looping function or tag.
Perl and C are the most widely used programming languages among security professionals. True or False?
True
A missing parenthesis or brace might cause a C compiler to return which of the following?
Syntax error
Which of the following is the Win32 API function for verifying the file system on a Windows computer?
FsType()
Which of the following C statements has the highest risk of creating an infinite loop?
for (;;)
Which of the following HTML tags is used to create a hyperlink to a remote Web site?
<a></a>
HTML files must be compiled before users can see the resulting Web pages. True or False?
False
A C program must contain which of the following?
A main() function
To add comments to a Perl script, you use which of the following symbols?
#
An algorithm is defined as which of the following?
A set of instructions for solving a specific problem
Before writing a program, many programmers outline it first by using which of the following?
Pseudocode
In object-oriented programming, classes are defined as the structures that hold data and functions. True or False?
True
What is the result of running the following C program? main() { int a = 2; if (a = 1) printf("I made a mistake!"); else printf("I did it correctly!"); }
“I made a mistake!”
In C, which looping function performs an action first and then tests to see whether the action should continue to occur?
do loop
Which of the following is the act of performing a task over and over?
Looping
Which of the following statements in the C programming language is used to load libraries that hold the commands and functions used in your program?
include
The print command for Perl is almost identical to the print command used in which of the following programming languages?
C