"Challenge Your Knowledge – Take the PyNum Quiz!"
Test your skills in Python, NumPy, and PyTorch with our expert-designed quiz. Get instant feedback, track your progress, and see how ready you are for real-world coding challenges.
1 / 98
How do you move a tensor to GPU?
2 / 98
What does step() do?
3 / 98
What does backward() do?
4 / 98
What does a loss function do?
5 / 98
What is an optimizer used for?
6 / 98
What does torch.load() do?
7 / 98
What does torch.save() do?
8 / 98
What does model.eval() do?
9 / 98
What does model.train() do?
10 / 98
What does torch.rand() do?
11 / 98
What does torch.ones() do?
12 / 98
What does torch.zeros() do?
13 / 98
What does torch.tensor() do?
14 / 98
What is a tensor?
15 / 98
What is PyTorch used for?
16 / 98
What does sort_values() do?
17 / 98
What does columns return?
18 / 98
What does shape return?
19 / 98
What does iloc[] do?
20 / 98
What does loc[] do
21 / 98
What does describe() return?
22 / 98
What does fillna() do?
23 / 98
Which method removes missing values
24 / 98
What does tail() return?
25 / 98
What does head() return?
26 / 98
Which function reads a CSV file?
27 / 98
How do you create a DataFrame?
28 / 98
What is a DataFrame in Pandas?
29 / 98
What is Pandas mainly used for?
30 / 98
Question
31 / 98
What does numpy.sum() do?
32 / 98
What does numpy.linspace() return?
33 / 98
What does numpy.reshape() do?
34 / 98
What does numpy.max() return?
35 / 98
What does numpy.mean() calculate?
36 / 98
What does numpy.arange() return?
37 / 98
What does numpy.zeros() do?
38 / 98
What will numpy.ones((2,3)) create?
39 / 98
. What does numpy.array() do?
40 / 98
What does NumPy stand for?
41 / 98
Which function returns the length of an object?
42 / 98
How do you concatenate strings in Python?
43 / 98
Which function is used to take input from the user?
44 / 98
Which data type is immutable?
45 / 98
What does None represent in Python?
46 / 98
What is the role of indentation in Python?
47 / 98
Which keyword is used for loops in Python?
48 / 98
Which keyword is used to define a function in Python?
49 / 98
Which symbol is used to create a list in Python?
50 / 98
Which Pandas function concatenates DataFrames vertically?
51 / 98
In Python, which keyword is used to create a class?
52 / 98
In NumPy, numpy.ones((2,3)) will create:
numpy.ones((2,3))
53 / 98
Which Pandas method returns the shape of a DataFrame?
54 / 98
Which PyTorch function loads a saved model?
55 / 98
What will be the output of type( (5,) ) in Python?
type( (5,) )
56 / 98
Which NumPy function computes the median of an array?
57 / 98
Which PyTorch function moves a tensor to GPU?
58 / 98
In Python, what does is compare?
is
59 / 98
Which NumPy function returns evenly spaced numbers over a specified interval?
60 / 98
Which Pandas method is used to change column names?
61 / 98
What is the output of len([]) in Python?
len([])
62 / 98
Which PyTorch function sets the random seed?
63 / 98
In Python, which keyword is used for exception handling?
64 / 98
Which NumPy function creates an identity matrix?
65 / 98
Which Pandas function removes missing values?
66 / 98
Which PyTorch optimizer is commonly used for deep learning?
67 / 98
What is the output of 3**2 in Python?
3**2
68 / 98
Which NumPy function returns the index of the maximum value?
69 / 98
n Python, set([1,2,2,3]) will result in
set([1,2,2,3])
70 / 98
Which Pandas function merges two DataFrames?
71 / 98
Which PyTorch method is used to save a trained mode
72 / 98
Which symbol is used for floor division in Python?
73 / 98
In NumPy, which function reshapes an array?
74 / 98
Which Pandas function returns summary statistics of a DataFrame?
75 / 98
What is the output of bool(0) in Python?
bool(0)
76 / 98
. Which PyTorch function converts a NumPy array to a tensor?
77 / 98
In Python, which keyword is used to create a function?
78 / 98
Which NumPy function creates a sequence of numbers within a range?
79 / 98
Which Pandas method is used to group data?
80 / 98
What is the output of "Hello" + "World"?
81 / 98
Which Python function returns the data type of a variable?
82 / 98
In PyTorch, which function initializes model parameters?
83 / 98
Which NumPy function is used to create an array of zeros?
84 / 98
Which operator is used for exponentiation in Python?
85 / 98
In Pandas, which function returns the first n rows of a DataFrame?
86 / 98
What will list(range(3)) return?
list(range(3))
87 / 98
Which PyTorch module is used for building neural networks?
88 / 98
In NumPy, which function is used to compute the standard deviation?
89 / 98
Which Python data type is immutable?
90 / 98
What is the output of len("Python")?
len("Python")
91 / 98
Which Pandas function is used to read CSV files?
92 / 98
Which NumPy function is used to horizontally stack two arrays?
93 / 98
What will be the result of print(0.3 == 0.1 + 0.2) in Python?
print(0.3 == 0.1 + 0.2)
94 / 98
Which type of operation in Pandas is used to filter rows based on a condition?
95 / 98
In NumPy, which function is used to compute the mean of an array?
96 / 98
Which PyTorch function checks if a GPU is available?
97 / 98
In Python, what will be the output of the expression [10, 20] * 3?
[10, 20] * 3
98 / 98
Which NumPy function is used to find the maximum value in an array?
Your score is
The average score is 75%
Restart quiz