Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Pass the GIAC Security Certification: GPYC GPYC Questions and answers with ValidTests

Exam GPYC All Questions
Exam GPYC Premium Access

View all detail and faqs for the GPYC exam

Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions
Questions # 11:

What is the output of the following line of code typed into a Python interactive session?

>>>print (8 <<1)

Options:

A.

False

B.

16

C.

SyntaxError: invalid syntax

D.

True

Expert Solution
Questions # 12:

What will the contents of the "__name__" variable be if the program "gpyc.py" is run as a standalone program?

Options:

A.

The name of the Python version used to create the module

B.

__main__

C.

The name of the GCC compiler used to compile the module

D.

gpyc

Expert Solution
Questions # 13:

What is the output when the following commands are typed in Python interactive mode?

Question # 13

Options:

A.

['tag to go tag', 'to sans tag']

B.

['tag to go tag', "tag to sans tag']

C.

['tag to go tag']

D.

['tag to go tag to sans tag']

Expert Solution
Questions # 14:

What is the output of the following when executed in a Python shell?

Question # 14

Options:

A.

[[1, 2, 2.5], [3, 4], [5, 6]]

B.

[[1,2], [3, 4], [5, 6]]

C.

[[1,2], [3, 4]]

D.

[[1,2,2.5], [3,4]]

Expert Solution
Questions # 15:

What is the output of the following program when executed with the Python Interpreter?

Question # 15

Options:

A.

SyntaxError: invalid syntax

B.

25

C.

20

D.

15

Expert Solution
Questions # 16:

Which of the following import statements will add the ability to parse data with regular expressions to your script?

Options:

A.

from regex import re

B.

import re

C.

from re import regex

D.

import regex

Expert Solution
Questions # 17:

Which of the lambda definitions of the function some_code is equivalent to the following function definition?

Question # 17

Which of the lambda definitions of the function some_code is equivalent to the following function definition?

Options:

A.

some_code = lambda outvalue:invalue*2

B.

some_code = lambda invalue:outvalue*2

C.

some code = lambda invalue:invalue*2

Expert Solution
Questions # 18:

Review the following code, written in Python. What are the contents of variable a?

Question # 18

Options:

A.

'cat'/dog'/bird'/violet'

B.

'dandelion', 'rose', 'cat', 'violet', 'bird', 'dog'

C.

'violet'/rose'/dandelion'

D.

'cat'/dog'/bird'

Expert Solution
Questions # 19:

Examine the code snippet below. What will be the contents of the variable T during the loops first iteration?

Question # 19

Options:

A.

is

B.

1

C.

0

D.

Python

Expert Solution
Questions # 20:

Review the following code:

Question # 20

What is the output of this code?

Options:

A.

blue

B.

red blue

C.

red blue yellow

D.

red

Expert Solution
Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions