🌍 All Study Guides📊 Dashboard📰 Blog💡 About
IBM Cybersecurity Analyst Professional Certificate • STUDY MODE

PRACTICE QUIZ

QUESTION 1 OF 36

Which organization is credited with creating the first scripting language?

A
Digital Computer Corporation
B
NIST
C
University of California at Berkley
D
IBM CorporationCorrect Answer
QUESTION 2 OF 36

Which concept of a scripting language helps with repetitive tasks?

A
Variables
B
IF statements
C
Arguments
D
LoopsCorrect Answer
QUESTION 3 OF 36

Which three (3) of the following are scripting language? (Select 3)

A
PowerShellCorrect Answer
B
JCLCorrect Answer
C
FORTRAN
D
JavaScriptCorrect Answer
QUESTION 4 OF 36

True or False. JavaScript greatly improved the functionality of webpages.

A
TrueCorrect Answer
B
False
QUESTION 5 OF 36

Which Scripting language uses 1s and 0s in a two symbol system? PYTHON SCRIPTING KNOWLEDGE CHECK

A
TRAC
B
Logical
C
BinaryCorrect Answer
D
base2
QUESTION 6 OF 36

Python can be best described as what?

A
A high-level scripting language.Correct Answer
B
A low-level compiled programming language.
C
The hottest new scripting language introduced in 2012.
D
A structured programming language.
QUESTION 7 OF 36

True or False. Extensive free resources are available on the web to make it relatively easy to learn Python.

A
TrueCorrect Answer
B
False
QUESTION 8 OF 36

Indentations are used in Python code for which reason?

A
To indicate a library function is being called.
B
To define a block of code and are required.Correct Answer
C
For readability and are optional.
D
To define loop nesting and are required.
QUESTION 9 OF 36

What file type is commonly used to store Python code?

A
.txt
B
.python
C
Any extension is allowed as long as the file only contains ASCII text characters.
D
.pyCorrect Answer
QUESTION 10 OF 36

In the Python statement pi=3 What is the data type of the variable pi?

A
string
B
float
C
bool
D
intCorrect Answer
QUESTION 11 OF 36

True or False. In the Python statements below Example1=)A) Example2="B" Example1 is a character variable type while Example2 is a string variable type.

A
True
B
FalseCorrect Answer
QUESTION 12 OF 36

What will be printed by this Python code block? pi=3 pi3=3*pi print(pi3)

A
pi3
B
333
C
9Correct Answer
D
3
QUESTION 13 OF 36

True or False. A tuple in Python is similar to a list but it is an immutable data type so its values cannot be changed after they are first set.

A
TrueCorrect Answer
B
False
QUESTION 14 OF 36

How many times will a while loop execute in Python?

A
As long as the specified condition is true.Correct Answer
B
Until the end while statement is encountered.
C
As many times as are specified in the loop counter.
D
Until the first exit statement is encountered.
QUESTION 15 OF 36

True or False. Python functions must be purchased or downloaded in libraries from Python development companies. You must have Python SDK in order to develop your own functions.

A
True
B
FalseCorrect Answer
QUESTION 16 OF 36

Which two (2) of these Python libraries provides useful scientific computing functions? (Select 2) INTRODUCTION TO SCRIPTING ASSESSMENT

A
NumPyCorrect Answer
B
StatsModels
C
Matplotlib
D
PandasCorrect Answer
E
Seaborn
F
Scikit-learn
QUESTION 17 OF 36

What was considered to be the first scripting language?

A
Perl
B
Bash
C
TRAC
D
JCLCorrect Answer
QUESTION 18 OF 36

Which concept of a scripting language is a memory address paired with a symbolic name (or identifier) which contains a value?

A
Arguments
B
IF statements
C
Loops
D
VariablesCorrect Answer
QUESTION 19 OF 36

Which three (3) of the following are scripting languages? (Select 3)

A
BashCorrect Answer
B
PerlCorrect Answer
C
C++
D
HexCorrect Answer
QUESTION 20 OF 36

Which Scripting language is a task automation and configuration management framework from Microsoft?

A
JCL
B
JavaScript
C
Perl
D
PowerShellCorrect Answer
QUESTION 21 OF 36

Which is an example of how scripts are commonly used today?

A
Autocorrection
B
Word processing
C
Task automationCorrect Answer
D
Transcription
QUESTION 22 OF 36

What scripting concept is widely used across different languages to process a set of instructions over and over again until a specified condition is met?

A
Arguments
B
If-then
C
LoopsCorrect Answer
D
Variables
QUESTION 23 OF 36

Bash is a scripting language developed for use with which operating system?

A
Linux
B
UNIXCorrect Answer
C
Mac OS X
D
Windows
QUESTION 24 OF 36

Which Python command would print out "Hello World"?

A
print(Hello World)
B
print("Hello World")Correct Answer
C
type("Hello World")
D
output(0,"Hello World")
QUESTION 25 OF 36

Why does Python often takes fewer lines of code to accomplish a task than C or Java?

A
Python can utilize extensive function libraries.Correct Answer
B
In Python you can embed multiple steps within a single command.
C
Python generally takes more lines of code than C or Java to accomplish the same task.
D
Python code is more efficient than C or Java code.
QUESTION 26 OF 36

How many spaces must be used to indent a block of code in Python?

A
Any number 1 or more as long as the same indentation is used within a code block.Correct Answer
B
Multiples of 3.
C
Any number 1 or more as long as the same indentation is used throughout the program.
D
Indentation is binary, i.e. a line is either indented or it is not, so there is no restriction to how many spaces are used on any line of indented code.
QUESTION 27 OF 36

What will Python do when it encounters the hash character "#"?

A
Treat everything to the right of the hash on the current line as a comment.Correct Answer
B
Treat everything between that hash and the next hash encountered in the program as a comment.
C
Hash is used as a wildcard character in Python.
D
Call in the referenced library function the follows the hash.
QUESTION 28 OF 36

What will be printed by this Python code block? pi=3.14159 pi=int(pi) print(pi)

A
3Correct Answer
B
3.14159
C
pi=3.14159
D
pi
QUESTION 29 OF 36

True or False. In the Python statements below Example1="3" Example1 is a string variable type.

A
TrueCorrect Answer
B
False
QUESTION 30 OF 36

What will be printed by this Python code block? pi="3" pi3=3*pi print(pi3)

A
333Correct Answer
B
9
C
3
D
pi3
QUESTION 31 OF 36

How many times will the following Python for loop be executed assuming UNMembers is a list of the 193 members of the United Nations General Assembly? for country in UNMembers: print(country)

A
0
B
1
C
193Correct Answer
D
Until it reaches a specified country
QUESTION 32 OF 36

What is one good reason to write your own function in Python?

A
There is no library function already written that will do what you need.Correct Answer
B
Python only operates through the execution of functions.
C
Functions execute far faster than standard Python code.
D
There are extra Python operators that will only execute inside of a defined function.
QUESTION 33 OF 36

Which two (2) of these Python libraries provide useful graphics and visualization functions? (Select 2)

A
Pandas
B
SeabornCorrect Answer
C
Scikit-learn
D
StatsModels
E
NumPy
F
MatplotlibCorrect Answer
QUESTION 34 OF 36

Which Scripting language uses 1s and 0s in a two symbol system?

A
TRAC
B
Logical
C
BinaryCorrect Answer
D
base2
QUESTION 35 OF 36

In the Python statement 

A
string
B
float
C
bool
D
intCorrect Answer
QUESTION 36 OF 36

True or False. In the Python statements below Example1=’A’ 

Ready to test your recall?

Which organization is credited with creating the first scripting language?

A
Digital Computer Corporation
B
NIST
C
University of California at Berkley
D
IBM Corporation

How confident are you in this answer?