Deck 7: Programming for Security Professionals

ملء الشاشة (f)
exit full mode
سؤال
The ____ special character is used with the printf() function in C to indicate a tab.

A)\t
B)\0
C)\n
D)\l
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
You can use /* and */ instead of ____ symbol(s) for one-line comments in C.

A)#
B)#!
C)**
D)//
سؤال
To compile the "syntax.c" program in *nix you enter the gcc -c syntax.c -o syntax.o command.
سؤال
Software engineering firms don't retain computer programmers who do not document their work because they know that 80% of the cost of software projects is ____.

A)documentation
B)debugging
C)testing
D)maintenance
سؤال
UNIX was first written in assembly language, soon rewritten in ____.

A)Smalltalk
B)Perl
C)Python
D)C
سؤال
The C programming language was developed by ____ at Bell Laboratories in 1972.

A)James Gosling
B)Larry Wall
C)Dennis Ritchie
D)Larry Tesler
سؤال
Security professionals often need to examine Web pages and recognize when something looks suspicious.
سؤال
____ is the act of performing a task over and over.

A)Branching
B)Looping
C)Testing
D)Remembering
سؤال
The ____ special character is used with the printf() function in C to indicate a new line.

A)\t
B)\0
C)\n
D)\l
سؤال
The logical operator in C that is used to compare the equality of two variables is ____.

A)=
B)&&
C)||
D)==
سؤال
The mathematical operator in C that increments the unary value by 1 is ____.

A)+
B)%
C)++
D)&
سؤال
____ takes you from one area of a program (a function) to another area.

A)Branching
B)Looping
C)Testing
D)Dividing
سؤال
The ____ statement in C is used to load libraries that hold the commands and functions used in your program.

A)#include
B)package
C)use
D)#import
سؤال
You must always add "//" at the end of comment text in C.
سؤال
Bugs are worse than syntax errors because a program can run successfully with a bug, but the output might be incorrect or inconsistent.
سؤال
HTML doesn't use branching, looping, or testing.
سؤال
The logical operator in C that is evaluated as true if both sides of the operator are true is ____.

A)=
B)&&
C)||
D)==
سؤال
A ____ is a mini program within a main program that carries out a task.

A)function
B)script
C)branch
D)loop
سؤال
In C, ____ show where a block of code begins and ends.

A)braces
B)parenthesis
C)brackets
D)dashes
سؤال
Most programming languages do not have a way to conduct testing of a variable.
سؤال
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
tells the compiler how to convert a value in a function
سؤال
In Perl, the keyword "____" is used in front of function names.

A)func
B)declare
C)sub
D)proc
سؤال
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
represents a numeric or string value
سؤال
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
converts a text-based program, called source code, into executable or binary code
سؤال
The HTML ____________________ tag formats text as a level 1 heading.
سؤال
C programs must contain a(n) ____________________ function, but you can also add your own functions to a C program.
سؤال
In HTML, each tag has a matching closing tag that's written with a(n) ____ added.

A)forward slash (/)
B)backward slash (\)
C)bang (!)
D)ampersand (&)
سؤال
The print command for Perl is almost identical to the ____ print command.

A)Java
B)C
C)PHP
D)Smalltalk
سؤال
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
error that causes unpredictable results
سؤال
If you want to know what the Perl print command does, you can use ____.

A)perl -h
B)perldoc -f print
C)perl -h print
D)man perl print
سؤال
A loop usually completes after ____________________ is conducted on a variable and returns a value of true or false.
سؤال
____ is a markup language rather than a programming language.

A)C
B)HTML
C)Perl
D)PHP
سؤال
Structures called classes can be written in many ____________________ languages (Java, Object COBOL, or Perl).
سؤال
In Perl, variables begin with the ____ character.

A)%
B)!
C)*
D)$
سؤال
Many scripts and programs for security professionals are written in ________________________________________, a powerful scripting language.
سؤال
In Perl, comment lines begin with the ____ character(s).

A)%
B)//
C)#
D)$
سؤال
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
GNU C and C++ compilers
سؤال
____________________ language uses a combination of hexadecimal numbers and expressions, such as mov, add, and sub, making it easier for humans to write programs than in binary or machine language.
سؤال
In C, the statement ____ tells the compiler to keep doing what's in the brackets over and over and over.

A)loop
B)continue
C)do(forever)
D)for(;;)
سؤال
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
English-like language you can use to help create the structure of your program
سؤال
What is an algorithm? You may use an analogy to explain the concept.
سؤال
How is branching performed in Perl?
سؤال
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
structure that holds pieces of data and functions
سؤال
List and describe the variable types used in C.
سؤال
What is the difference between the = and = = operators in C?
سؤال
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
checks whether a condition is true and then continues looping until the condition becomes false
سؤال
How does C's for loop work?
سؤال
Why is documenting computer programs essential?
سؤال
The Win32 class contains many functions you can call from your Perl script. How can attackers use these functions? Should security professionals become proficient at using them in a program?
سؤال
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
performs an action first and then tests to see whether the action should continue to occur
سؤال
What is a dangerous thing about programming in the C language?
سؤال
Mention three C compilers and on which operating systems they are available.
سؤال
In programming, what are variables used for?
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/53
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 7: Programming for Security Professionals
1
The ____ special character is used with the printf() function in C to indicate a tab.

A)\t
B)\0
C)\n
D)\l
A
2
You can use /* and */ instead of ____ symbol(s) for one-line comments in C.

A)#
B)#!
C)**
D)//
D
3
To compile the "syntax.c" program in *nix you enter the gcc -c syntax.c -o syntax.o command.
True
4
Software engineering firms don't retain computer programmers who do not document their work because they know that 80% of the cost of software projects is ____.

A)documentation
B)debugging
C)testing
D)maintenance
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
5
UNIX was first written in assembly language, soon rewritten in ____.

A)Smalltalk
B)Perl
C)Python
D)C
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
6
The C programming language was developed by ____ at Bell Laboratories in 1972.

A)James Gosling
B)Larry Wall
C)Dennis Ritchie
D)Larry Tesler
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
7
Security professionals often need to examine Web pages and recognize when something looks suspicious.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
8
____ is the act of performing a task over and over.

A)Branching
B)Looping
C)Testing
D)Remembering
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
9
The ____ special character is used with the printf() function in C to indicate a new line.

A)\t
B)\0
C)\n
D)\l
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
10
The logical operator in C that is used to compare the equality of two variables is ____.

A)=
B)&&
C)||
D)==
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
11
The mathematical operator in C that increments the unary value by 1 is ____.

A)+
B)%
C)++
D)&
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
12
____ takes you from one area of a program (a function) to another area.

A)Branching
B)Looping
C)Testing
D)Dividing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
13
The ____ statement in C is used to load libraries that hold the commands and functions used in your program.

A)#include
B)package
C)use
D)#import
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
14
You must always add "//" at the end of comment text in C.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
15
Bugs are worse than syntax errors because a program can run successfully with a bug, but the output might be incorrect or inconsistent.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
16
HTML doesn't use branching, looping, or testing.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
17
The logical operator in C that is evaluated as true if both sides of the operator are true is ____.

A)=
B)&&
C)||
D)==
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
18
A ____ is a mini program within a main program that carries out a task.

A)function
B)script
C)branch
D)loop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
19
In C, ____ show where a block of code begins and ends.

A)braces
B)parenthesis
C)brackets
D)dashes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
20
Most programming languages do not have a way to conduct testing of a variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
21
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
tells the compiler how to convert a value in a function
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
22
In Perl, the keyword "____" is used in front of function names.

A)func
B)declare
C)sub
D)proc
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
23
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
represents a numeric or string value
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
24
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
converts a text-based program, called source code, into executable or binary code
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
25
The HTML ____________________ tag formats text as a level 1 heading.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
26
C programs must contain a(n) ____________________ function, but you can also add your own functions to a C program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
27
In HTML, each tag has a matching closing tag that's written with a(n) ____ added.

A)forward slash (/)
B)backward slash (\)
C)bang (!)
D)ampersand (&)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
28
The print command for Perl is almost identical to the ____ print command.

A)Java
B)C
C)PHP
D)Smalltalk
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
29
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
error that causes unpredictable results
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
30
If you want to know what the Perl print command does, you can use ____.

A)perl -h
B)perldoc -f print
C)perl -h print
D)man perl print
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
31
A loop usually completes after ____________________ is conducted on a variable and returns a value of true or false.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
32
____ is a markup language rather than a programming language.

A)C
B)HTML
C)Perl
D)PHP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
33
Structures called classes can be written in many ____________________ languages (Java, Object COBOL, or Perl).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
34
In Perl, variables begin with the ____ character.

A)%
B)!
C)*
D)$
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
35
Many scripts and programs for security professionals are written in ________________________________________, a powerful scripting language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
36
In Perl, comment lines begin with the ____ character(s).

A)%
B)//
C)#
D)$
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
37
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
GNU C and C++ compilers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
38
____________________ language uses a combination of hexadecimal numbers and expressions, such as mov, add, and sub, making it easier for humans to write programs than in binary or machine language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
39
In C, the statement ____ tells the compiler to keep doing what's in the brackets over and over and over.

A)loop
B)continue
C)do(forever)
D)for(;;)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
40
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
English-like language you can use to help create the structure of your program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
41
What is an algorithm? You may use an analogy to explain the concept.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
42
How is branching performed in Perl?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
43
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
structure that holds pieces of data and functions
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
44
List and describe the variable types used in C.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
45
What is the difference between the = and = = operators in C?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
46
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
checks whether a condition is true and then continues looping until the condition becomes false
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
47
How does C's for loop work?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
48
Why is documenting computer programs essential?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
49
The Win32 class contains many functions you can call from your Perl script. How can attackers use these functions? Should security professionals become proficient at using them in a program?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
50
MATCHING
Match each term with the correct statement below.
a.pseudocode
f.do loop
b.conversion specifier
g.compiler
c.class
h.while loop
d.bug
i.gcc
e.variable
performs an action first and then tests to see whether the action should continue to occur
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
51
What is a dangerous thing about programming in the C language?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
52
Mention three C compilers and on which operating systems they are available.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
53
In programming, what are variables used for?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 53 في هذه المجموعة.