Ethical Hacking - Chapter 7

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

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 did it correctly!" is displayed.

To add comments to a Perl script, you use which of the following symbols?

# <!--

Using the following Perl code, how many times will "This is easy..." be displayed on screen? For ($count=1; $count <=5; $count++) { Print "This is easy..."; }

5

Which of the following HTML tags is used to create a hyperlink to a remote Web site?

< A HREF=http://URL>

List three logical operators used in C programming.

== != &&

A C Program must contain which of the following?

A main () function

An algorithm is defined as which of the following?

A set of instructions for solving a specific problem

Documentation of a program should include which of the following? (choose all that apply)

Author Date written Explanation of complex algorithms Modification to the code

Most programming languages enable programmers to perform which of the following actions? (Choose all that apply)

Branching Testing Looping

HTML files must be compiled before users can see the resulting Web pages. True or False?

FALSE

Which of the following C statements has the highest risk of creating an infinite loop?

For (;;)

What are the three looping mechanisms in C? (Choose all that apply.)

For loop While loop Do loop

Which of the following is the Win32 API function for verifying the file system on a Windows computer?

FsType()

Which of the following tags enables an HTML programmer to create a loop?

HTML doesn't have a looping function or tag.

Before writing a program, many programmers outline it first by using which of the following?

Pseudocode

A missing parenthesis or brace might cause a C compiler to return which of the following?

Syntax error

In object-oriented programming, classes are defined as the structures that hold data and functions. True or False?

True

Perl and C are the most widely used programming languages among security professionals. True or False?

True

In C, which looping function performs an action first and then tests to see whether the action should continue to occur?

do loop

Name two looping mechanisms used in Perl.

while for


Set pelajaran terkait

Peptic Ulcers and GERD Chapter 37

View Set

Exam 4 Scientific Endeavor Questions

View Set

SWO 351-Human Behavior & The Social Environment II-Part III-"Young & Middle Adulthood"-Chapter 13-"Sexual Orientation & Gender Identity"

View Set