Penetration testing Week 4

.docx

School

Grand Rapids Community College *

*We aren’t endorsed by this school

Course

CYBER SECU

Subject

Computer Science

Date

Jan 9, 2024

Type

docx

Pages

5

Uploaded by ConstableWildcatMaster401

Congratulations! You passed! Grade received 100% Latest Submission Grade 100% To pass 80% or higher Go to next item 1. Question 1 What was considered to be the first scripting language? 1 / 1 point JCL TRAC Bash Perl Correct Correct! 2. Question 2 Which concept of a scripting language is a memory address paired with a symbolic name (or identifier) which contains a value? 1 / 1 point Variables IF statements Arguments Loops Correct Correct! 3. Question 3 Which three (3) of the following are scripting languages? (Select 3) 1 / 1 point Hex Correct Partially correct! C++ Perl Correct Partially correct! Bash Correct Partially correct! 4. Question 4 Which Scripting language is a task automation and configuration management framework from Microsoft? 1 / 1 point JCL PowerShell Perl JavaScript Correct Correct!
5. Question 5 Which is an example of how scripts are commonly used today? 1 / 1 point Autocorrection Transcription Task automation Word processing Correct Correct! 6. Question 6 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? 1 / 1 point If-then Arguments Loops Variables Correct Correct! 7. Question 7 Bash is a scripting language developed for use with which operating system? 1 / 1 point Mac OS X UNIX Linux Windows Correct Correct! 8. Question 8 Which Python command would print out "Hello World"? 1 / 1 point print(Hello World) output(0,"Hello World") print("Hello World") type("Hello World") Correct Correct! 9. Question 9 Why does Python often takes fewer lines of code to accomplish a task than C or Java? 1 / 1 point Python code is more efficient than C or Java code. In Python you can embed multiple steps within a single command. Python generally takes more lines of code than C or Java to accomplish the same task. Python can utilize extensive function libraries. Correct Correct!
10. Question 10 How many spaces must be used to indent a block of code in Python? 1 / 1 point 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. Multiples of 3. Any number 1 or more as long as the same indentation is used within a code block. Any number 1 or more as long as the same indentation is used throughout the program. Correct Correct! 11. Question 11 What will Python do when it encounters the hash character "#"? 1 / 1 point Treat everything between that hash and the next hash encountered in the program as a comment. Hash is used as a wildcard character in Python. Call in the referenced library function the follows the hash. Treat everything to the right of the hash on the current line as a comment. Correct Correct! 12. Question 12 What will be printed by this Python code block? pi=3.14159 pi=int(pi) print(pi) 1 / 1 point 3 pi=3.14159 3.14159 pi Correct 13. Question 13 True or False. In the Python statements below Example1="3" Example1 is a string variable type. 1 / 1 point True False Correct Correct 14.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help