Chapter 7 - Programming for Security Professionals
Which of the following takes you from one area of a program (a function) to another area?
Branching
In the Perl programming language, variables begin with which of the following characters?
$
Which of the following special characters is used with the printf() function in the C programming language to indicate a new line?
\n
If you want to know what the Perl print command does, you can use which of the following commands?
perldoc -f print
In the Perl programming language, which of the following keywords is used in front of function names?
sub
In the C programming language, which of the following show where a block of code begins and ends?
Braces
Carelessly reviewing your program's code might result in having which of the following in your program code?
Bug
You can use the syntax /* and */ to accomplish what function when working with large portions of text?
Comment
Which of the following is a markup language rather than a programming language?
HTML
In the Perl programming language, comment lines begin with the which of the following character(s)?
#
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
Which of the following logical operators in the C programming language is evaluated as true if both sides of the operator are true?
&&
Which of the following logical operators in the C programming language is used to compare the equality of two variables?
= =
The print command for Perl is almost identical to the print command used in which of the following programming languages?
C
In the C programming language, which variable type holds the value of a single letter?
Char
In HTML, each tag has a matching closing tag that is written with which of the following characters?
Forward slash (/)
Which of the following is a mini-program within a main program that carries out a task?
Function
In object-oriented programming, a function contained in a class is called which of the following?
Member function
In a Perl program, to go from one function to another, you simply call the function by entering which of the following in your source code?
Name
In the C programming language, which statement tells the compiler to keep doing what is in the brackets over and over and over?
for(;;)
UNIX was first written in assembly language. However, it was soon rewritten in what programming language?
C
Which of the following is the act of performing a task over and over?
Looping
Which of the following is a backdoor initiated from inside the target's network that makes it possible to take control of the target even when it's behind a firewall?
Reverse Shell
Which of the following mathematical operators in the C programming language increments the unary value by 1?
++