Deck 7: Programming for Security Professionals

Full screen (f)
exit full mode
Question
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?

A) reverse port
B) back shell
C) reverse shell
D) reverse door
Use Space or
up arrow
down arrow
to flip the card.
Question
UNIX was first written in assembly language.However,it was soon rewritten in what programming language?

A) Smalltalk
B) Perl
C) Python
D) C
Question
In the C programming language,which variable type holds the value of a single letter?

A) Char
B) Float
C) String
D) Const
Question
When a compiler finds errors,it usually indicates what they are so you can correct the code and compile the program again.
Question
Which of the following special characters is used with the printf()function in the C programming language to indicate a new line?

A) \t
B) \0
C) \n
D) \l
Question
Security professionals often need to examine Web pages and recognize when something looks suspicious.
Question
Which of the following takes you from one area of a program (a function)to another area?

A) Branching
B) Looping
C) Testing
D) Dividing
Question
Bugs are worse than syntax errors because a program can run successfully with a bug,but the output might be incorrect or inconsistent.
Question
You must always add "//" at the end of comment text when using C language.
Question
Most programming languages have a way to branch,loop,and test.
Question
Which of the following is the act of performing a task over and over?

A) Branching
B) Looping
C) Testing
D) Remembering
Question
Which of the following is a mini-program within a main program that carries out a task?

A) function
B) script
C) branch
D) loop
Question
Which of the following mathematical operators in the C programming language increments the unary value by 1?

A) +
B) %
C) ++
D) &
Question
Carelessly reviewing your program's code might result in having which of the following in your program code?

A) branch
B) virus
C) bug
D) variable
Question
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?

A) #include
B) package
C) use
D) #import
Question
Which of the following logical operators in the C programming language is evaluated as true if both sides of the operator are true?

A) =
B) &&
C) ||
D) ==
Question
You can use the syntax /* and */ to accomplish what function when working with large portions of text?

A) run
B) erase
C) execute
D) comment
Question
In the C programming language,which of the following show where a block of code begins and ends?

A) braces
B) parenthesis
C) brackets
D) dashes
Question
In object-oriented programming,a function contained in a class is called which of the following?

A) variable function
B) label function
C) test function
D) member function
Question
Which of the following logical operators in the C programming language is used to compare the equality of two variables?

A) =
B) &&
C) ||
D) ==
Question
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
Takes you from one area of a program (a function)to another area
Question
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?

A) variable
B) keyword
C) name
D) comment
Question
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
An object-oriented programming structure that holds pieces of data and functions
Question
In the Perl programming language,comment lines begin with the which of the following character(s)?

A) %
B) //
C) #
D) $
Question
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
Tells the compiler how to convert the value in a function
Question
Which of the following is a markup language rather than a programming language?

A) C
B) HTML
C) Perl
D) PHP
Question
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
An English-like language you can use to help create the structure of your program
Question
In the Perl programming language,which of the following keywords is used in front of function names?

A) func
B) declare
C) sub
D) proc
Question
In the Perl programming language,variables begin with which of the following characters?

A) %
B) !
C) *
D) $
Question
In the C programming language,which statement tells the compiler to keep doing what is in the brackets over and over and over?

A) loop($)
B) continue
C) do(forever)
D) for(;;)
Question
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
An error that causes unpredictable results
Question
The print command for Perl is almost identical to the print command used in which of the following programming languages?

A) Java
B) C
C) PHP
D) Smalltalk
Question
In HTML,each tag has a matching closing tag that is written with which of the following characters?

A) forward slash (/)
B) backward slash (\)
C) bang (!)
D) ampersand (&)
Question
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
A way of having your program repeat an action a certain number of times
Question
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
Program that converts a text-based program called source code,into executable or binary code
Question
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
Represents a numeric or string value
Question
If you want to know what the Perl print command does,you can use which of the following commands?

A) perl -h
B) perldoc -f print
C) perl -h print
D) man perl print
Question
​In object-oriented programming,which of the following are structures that hold pieces of data and functions?

A) ​classes
B) ​variables
C) ​keywords
D) ​objects
Question
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
Performs an action first and then tests to see whether the action should continue to occur
Question
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
Writing programs in this language is easier than in machine language
Question
What is the relationship between algorithms,pseudocode,and a programming language?
Question
Why is documenting computer programs essential?
Question
In programming,what are variables used for?
Question
How does C's for loop work?
Question
The Win32 class contains many functions you can call from your Perl script.How can attackers use these functions,and should security professionals become proficient at using them in a program?
Question
What is a dangerous thing about programming in the C language?
Question
How is branching performed in Perl? Give an example.
Question
List and briefly describe the variable types used in
C.
Question
What is the difference between the = and = = operators in C?
Question
Mention three C compilers and on which operating systems they are available.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 7: Programming for Security Professionals
1
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?

A) reverse port
B) back shell
C) reverse shell
D) reverse door
C
2
UNIX was first written in assembly language.However,it was soon rewritten in what programming language?

A) Smalltalk
B) Perl
C) Python
D) C
D
3
In the C programming language,which variable type holds the value of a single letter?

A) Char
B) Float
C) String
D) Const
A
4
When a compiler finds errors,it usually indicates what they are so you can correct the code and compile the program again.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
Which of the following special characters is used with the printf()function in the C programming language to indicate a new line?

A) \t
B) \0
C) \n
D) \l
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
Security professionals often need to examine Web pages and recognize when something looks suspicious.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following takes you from one area of a program (a function)to another area?

A) Branching
B) Looping
C) Testing
D) Dividing
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
Bugs are worse than syntax errors because a program can run successfully with a bug,but the output might be incorrect or inconsistent.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
You must always add "//" at the end of comment text when using C language.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
Most programming languages have a way to branch,loop,and test.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following is the act of performing a task over and over?

A) Branching
B) Looping
C) Testing
D) Remembering
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following is a mini-program within a main program that carries out a task?

A) function
B) script
C) branch
D) loop
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following mathematical operators in the C programming language increments the unary value by 1?

A) +
B) %
C) ++
D) &
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
Carelessly reviewing your program's code might result in having which of the following in your program code?

A) branch
B) virus
C) bug
D) variable
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
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?

A) #include
B) package
C) use
D) #import
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following logical operators in the C programming language is evaluated as true if both sides of the operator are true?

A) =
B) &&
C) ||
D) ==
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
You can use the syntax /* and */ to accomplish what function when working with large portions of text?

A) run
B) erase
C) execute
D) comment
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
In the C programming language,which of the following show where a block of code begins and ends?

A) braces
B) parenthesis
C) brackets
D) dashes
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
In object-oriented programming,a function contained in a class is called which of the following?

A) variable function
B) label function
C) test function
D) member function
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
Which of the following logical operators in the C programming language is used to compare the equality of two variables?

A) =
B) &&
C) ||
D) ==
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
Takes you from one area of a program (a function)to another area
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
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?

A) variable
B) keyword
C) name
D) comment
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
An object-oriented programming structure that holds pieces of data and functions
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
In the Perl programming language,comment lines begin with the which of the following character(s)?

A) %
B) //
C) #
D) $
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
Tells the compiler how to convert the value in a function
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
Which of the following is a markup language rather than a programming language?

A) C
B) HTML
C) Perl
D) PHP
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
An English-like language you can use to help create the structure of your program
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
In the Perl programming language,which of the following keywords is used in front of function names?

A) func
B) declare
C) sub
D) proc
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
In the Perl programming language,variables begin with which of the following characters?

A) %
B) !
C) *
D) $
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
In the C programming language,which statement tells the compiler to keep doing what is in the brackets over and over and over?

A) loop($)
B) continue
C) do(forever)
D) for(;;)
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
An error that causes unpredictable results
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
The print command for Perl is almost identical to the print command used in which of the following programming languages?

A) Java
B) C
C) PHP
D) Smalltalk
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
In HTML,each tag has a matching closing tag that is written with which of the following characters?

A) forward slash (/)
B) backward slash (\)
C) bang (!)
D) ampersand (&)
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
A way of having your program repeat an action a certain number of times
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
Program that converts a text-based program called source code,into executable or binary code
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
Represents a numeric or string value
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
If you want to know what the Perl print command does,you can use which of the following commands?

A) perl -h
B) perldoc -f print
C) perl -h print
D) man perl print
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
​In object-oriented programming,which of the following are structures that hold pieces of data and functions?

A) ​classes
B) ​variables
C) ​keywords
D) ​objects
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
Performs an action first and then tests to see whether the action should continue to occur
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
Match each item with a statement below.a.pseudocode
b.conversion specifier
c.class
d.bug
e.variable
f.do loop
g.compiler
h.while loop
i.branching
j.assembly language
Writing programs in this language is easier than in machine language
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
What is the relationship between algorithms,pseudocode,and a programming language?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
Why is documenting computer programs essential?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
In programming,what are variables used for?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
How does C's for loop work?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
The Win32 class contains many functions you can call from your Perl script.How can attackers use these functions,and should security professionals become proficient at using them in a program?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
What is a dangerous thing about programming in the C language?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
How is branching performed in Perl? Give an example.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
List and briefly describe the variable types used in
C.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
What is the difference between the = and = = operators in C?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
Mention three C compilers and on which operating systems they are available.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.