Ethical Hacking Quiz Chapter 7
Which of the following logical operators in the C programming language is evaluated as true if both sides of the operator are true? -= -&& -|| ---
&&
IN HTML, each tag has a matching closing tag that is written with which of the following characters? -/ -\ -! -&
/
Which of the following takes you from one area of a program (a function) to another area? -Branching -Looping -Testing -Dividing
Branching
Bugs are worse than syntax errors because a program can run successfully with a bug, but the output might be incorrect or inconsistent (T/F)
True
When a compiler finds errors, it usually indicates what they are so you can correct the code and compile the program again. (T/F)
True
Which of the following special characters is used with the printf() function in the C programming language to indicate a new line? \t \0 \n \l
\n
In the C programming language, which statement tells the compiler to keep doing what is in the brackets over and over and over? -loop($) -continue -do(forever) -for(;;)
for(;;)
In object-oriented programming, a function contained in a class is called which of the following? -variable function -label function -test function -member function
member function
The print command for Perl is almost identical to the print command used in which of the following programming languages? -Java -C -PHP -Smalltalk
C
In the Perl programming language, which of the following keywords is used in front of function names? -func -declare -sub -proc
sub