Swiss Army knife depth learning -pytorch entry

first part

1, multiple choice:
the parameters of a function known as 35.8, the execution result is 35, may be the following function ().
Options:
A: Floor
B: ABS
C: round
D: int
answer: [floor; int]

2, multiple choice:
in the following expression, () operation result is False.
Options:
A:! 32 24 =
B: (10 IS. 11) == 0
C:. 3 <. 4. 7 and <. 5. 9 or> 10
D: 'abc' < 'ABC'
Answer: [ 'abc' < 'ABC' ]

3, multiple choice:
in the following cycle Python, for I in Range (l, 3): for I in Range (2,5): Print (I J) statement Print (I J) were performed () times.
Options:
A: 6
B:. 3
C: 2
D:. 5
Answer: [6]

4, multiple choice:
in Python, for understanding the function return statement, the error is ().
Options:
A: can have multiple return statements, but only to perform a
B: there must be a return statement
C: return can bring return parameter
D: return parameters may not return with
the answer: there must be a return statement []

5. True or False:
a call to directly or indirectly own algorithm is called recursively, it has two conditions, one is to call itself directly or indirectly, the other must be exported.
Options:
A: wrong
B: to
answer: [for]

6, multiple choice:
a description of a recursive function, the following options are correct ().
Options:
A: comprises a loop structure
B: it contains internal function call to this function again
C: more complex function
D: function name as a return value
answer: call to this function [again] internal functions comprising

7, multiple choice:
a description of the formal and actual parameters, the following options are correct ().
Options:
A: in the call, the argument is copied to the shape function parameters
B: parameter list to be passed within the parameters of the given function, such parameters called formal parameters, referred to as parameter
C: function definition parameters inside is a list of parameters actual parameters, referred to arguments
D: in the call, the copy parameter to the function arguments
answer: [in the call, the argument is copied to the function parameter]

8, multiple choice:
on return statement, the following options are correct is ().
Options:
A: no return statement can function
B: function must have a return statement
C: return can only return a value
D: function return statement can only have one
answer: [function] can not return statement

9, multiple choice:
Run of the following code is ().
FUNC DEF (NUM):
NUM +. 1 =
A 10 =
FUNC (A)
Print (A)
Options:
A:. 11
B: 10
C: int
D: Error
A: [10]

10, multiple choice:
the output of the following code is ().
deffunc (A, B):
A = B *
return A
S = FUNC (5,2) Print (S)
Options:
A:. 1
B: 12 is
C: 20 is
D: 10
A: [10]

the second part

1, True or False:
ndarray.shape returns tuples, each represents a length in the array direction of the
options:
A: error
. B:
A: [on]

2. True or False:
empty () function to generate a completely random array of
options:
A: wrong
B: to
answer: [for]

3, True or False:
B [. 1] [. 1] is an element index value of the first row and first column group of
options:
A: for
B: wrong
answers: [wrong]

4, multiple choice:
numpy Providing the rand () function for generating an element () array uniformly distributed on the interval
options:
A: (0,1)
B: [0,1]
C: None of the above
D: [0 1)
answer: [[0,1)]

5, multiple choice:
data type Python include
options:
A: Integer
B: Float
C: Boolean
D: Character
Answer: [Integer; Float; Boolean;} char

6, determine the problem:
a list with () identity.
Options:
A: wrong
. B:
Answer: [wrong]

7. True or False:
python2, python3 by default supports default support Chinese.
Options:
A: wrong
. B:
Answer: [wrong]

8, True or False:
B = np.arange (0,20,2) Find the index number 2, the data elements in the array taken 4.
Options:
A: to
B: wrong
answer: [for]

9, True or False:
B [. 1:. 8: 2] =. 1, the array output 0,1,4,1,8,1,12,1,16,18
options:
A: error
. B:
A: [on]

10, determine the problem:
Flatten () method to put converted into a one-dimensional array X returns a one-dimensional array, the object may be a list of the role.
Options:
A: to
B: wrong
answer: [for]

Published 150 original articles · won praise 155 · views 10000 +

Guess you like

Origin blog.csdn.net/qq_43133192/article/details/105339656