"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.

Fill in your details and begin the test. Let’s see how much you know

1 / 49

Which Pandas function concatenates DataFrames vertically?

2 / 49

In Python, which keyword is used to create a class?

3 / 49

In NumPy, numpy.ones((2,3)) will create:

4 / 49

Which Pandas method returns the shape of a DataFrame?

5 / 49

Which PyTorch function loads a saved model?

6 / 49

What will be the output of type( (5,) ) in Python?

7 / 49

Which NumPy function computes the median of an array?

8 / 49

Which PyTorch function moves a tensor to GPU?

9 / 49

In Python, what does is compare?

10 / 49

Which NumPy function returns evenly spaced numbers over a specified interval?

11 / 49

Which Pandas method is used to change column names?

12 / 49

What is the output of len([]) in Python?

13 / 49

Which PyTorch function sets the random seed?

14 / 49

In Python, which keyword is used for exception handling?

15 / 49


Which NumPy function creates an identity matrix?

16 / 49

Which Pandas function removes missing values?

17 / 49

Which PyTorch optimizer is commonly used for deep learning?

18 / 49

What is the output of 3**2 in Python?

19 / 49

Which NumPy function returns the index of the maximum value?

20 / 49

n Python, set([1,2,2,3]) will result in

21 / 49

Which Pandas function merges two DataFrames?

22 / 49

Which PyTorch method is used to save a trained mode

23 / 49

Which symbol is used for floor division in Python?

24 / 49

In NumPy, which function reshapes an array?

25 / 49

Which Pandas function returns summary statistics of a DataFrame?

26 / 49

What is the output of bool(0) in Python?

27 / 49

. Which PyTorch function converts a NumPy array to a tensor?

28 / 49

In Python, which keyword is used to create a function?

29 / 49

Which NumPy function creates a sequence of numbers within a range?

30 / 49

Which Pandas method is used to group data?

31 / 49

What is the output of "Hello" + "World"?

32 / 49


Which Python function returns the data type of a variable?

33 / 49

In PyTorch, which function initializes model parameters?

34 / 49

Which NumPy function is used to create an array of zeros?

35 / 49

Which operator is used for exponentiation in Python?

36 / 49

In Pandas, which function returns the first n rows of a DataFrame?

37 / 49

What will list(range(3)) return?

38 / 49

Which PyTorch module is used for building neural networks?

39 / 49

In NumPy, which function is used to compute the standard deviation?

40 / 49

Which Python data type is immutable?

41 / 49

What is the output of len("Python")?

42 / 49

Which Pandas function is used to read CSV files?

43 / 49

Which NumPy function is used to horizontally stack two arrays?

44 / 49

What will be the result of print(0.3 == 0.1 + 0.2) in Python?

45 / 49

Which type of operation in Pandas is used to filter rows based on a condition?

46 / 49

In NumPy, which function is used to compute the mean of an array?

47 / 49

Which PyTorch function checks if a GPU is available?

48 / 49

In Python, what will be the output of the expression [10, 20] * 3?

49 / 49

Which NumPy function is used to find the maximum value in an array?

Your score is

The average score is 71%

0%