Datasets in PyTorch QUIZ (MCQ QUESTIONS AND ANSWERS)

Total Correct: 0

Time:20:00

Question: 1

Which method can be used to download a specific built-in dataset in PyTorch if it is not already available locally?

Question: 2

What is the recommended approach for handling missing data in a custom PyTorch dataset?

Question: 3

How can you ensure reproducibility when working with PyTorch datasets and DataLoader?

Question: 4

In PyTorch, what does the term "epoch" refer to during model training?

Question: 5

What is the role of the torch.utils.data.ConcatDataset class in PyTorch?

Question: 6

Which method can be used to visualize samples from a PyTorch DataLoader during debugging or exploration?

Question: 7

What does the drop_last parameter in a PyTorch DataLoader control?

Question: 8

What is the purpose of the torch.utils.data.random_split function in PyTorch?

Question: 9

In PyTorch, how can you handle imbalanced classes in a custom dataset during training?

Question: 10

What is the primary purpose of the torchvision.transforms module when working with image datasets in PyTorch?

Question: 11

When should you consider creating a custom dataset instead of using built-in datasets in PyTorch?

Question: 12

Which of the following is a disadvantage of using a large batch_size in a DataLoader?

Question: 13

What is the role of the num_workers parameter in a PyTorch DataLoader?

Question: 14

Which PyTorch module is commonly used for computer vision tasks and includes various pre-trained models?

Question: 15

What is the primary advantage of using a DataLoader in PyTorch during model training?

Question: 16

Why does PyTorch provide built-in datasets?

Question: 17

What is the primary use case for the CIFAR-100 dataset in PyTorch?

Question: 18

Which of the following is NOT a built-in dataset available in PyTorch?

Question: 19

In PyTorch, what is a common technique used for data normalization during preprocessing?

Question: 20

What is the purpose of setting the transform parameter in a PyTorch DataLoader?

Question: 21

When creating a custom PyTorch dataset, what should be used to load and process the data within the __getitem__ method?

Question: 22

What does data shuffling in a DataLoader help prevent during training?

Question: 23

In PyTorch, what is the role of a DataLoader when working with datasets?

Question: 24

What is the purpose of the __len__ method in a custom PyTorch dataset?

Question: 25

What method must be implemented when creating a custom dataset in PyTorch?

Question: 26

Which class should you inherit from when creating a custom dataset in PyTorch?

Question: 27

What is a key advantage of creating custom datasets in PyTorch?

Question: 28

How can you check the size of a specific built-in dataset in PyTorch?

Question: 29

What is the advantage of using built-in datasets in PyTorch?

Question: 30

Which module in PyTorch is commonly used for handling built-in datasets?