Deck 7: Programming for Security Professionals
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
العب
ملء الشاشة (f)
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
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
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) 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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) \t
B) \0
C) \n
D) \l
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
Security professionals often need to examine Web pages and recognize when something looks suspicious.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) Branching
B) Looping
C) Testing
D) Dividing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
You must always add "//" at the end of comment text when using C language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
Most programming languages have a way to branch,loop,and test.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) Branching
B) Looping
C) Testing
D) Remembering
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) function
B) script
C) branch
D) loop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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) &
A) +
B) %
C) ++
D) &
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) branch
B) virus
C) bug
D) variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) #include
B) package
C) use
D) #import
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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) ==
A) =
B) &&
C) ||
D) ==
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) run
B) erase
C) execute
D) comment
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) braces
B) parenthesis
C) brackets
D) dashes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) variable function
B) label function
C) test function
D) member function
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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) ==
A) =
B) &&
C) ||
D) ==
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) variable
B) keyword
C) name
D) comment
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
In the Perl programming language,comment lines begin with the which of the following character(s)?
A) %
B) //
C) #
D) $
A) %
B) //
C) #
D) $
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) C
B) HTML
C) Perl
D) PHP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) func
B) declare
C) sub
D) proc
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
In the Perl programming language,variables begin with which of the following characters?
A) %
B) !
C) *
D) $
A) %
B) !
C) *
D) $
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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(;;)
A) loop($)
B) continue
C) do(forever)
D) for(;;)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) Java
B) C
C) PHP
D) Smalltalk
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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 (&)
A) forward slash (/)
B) backward slash (\)
C) bang (!)
D) ampersand (&)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) perl -h
B) perldoc -f print
C) perl -h print
D) man perl print
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
A) classes
B) variables
C) keywords
D) objects
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
What is the relationship between algorithms,pseudocode,and a programming language?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
Why is documenting computer programs essential?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
In programming,what are variables used for?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
How does C's for loop work?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
What is a dangerous thing about programming in the C language?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
How is branching performed in Perl? Give an example.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
List and briefly describe the variable types used in
C.
C.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
What is the difference between the = and = = operators in C?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
Mention three C compilers and on which operating systems they are available.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck