PyTorch Certified Associate PTCA
100 real Linux Foundation / CNCF PTCA questions with answers checked by certified engineers. Start free, upgrade when you are ready.
- Questions
- 100
- Exam code
- PTCA
- Last updated
- Oct 17, 2026
- Language
- English
- Certification
- PyTorch Certified Associate
Try PTCA free
Open a PDF shared by candidates who sat the exam, or answer questions in the online test engine.
- PTCA practice questions (PDF)10questionsOpen and downloadu/Misty-Sparrow-3232
- PTCA practice questions (PDF)10questionsOpen and downloadu/Cozy-Pixel-4078
Free files are partial. Full access has all 100 questions.
Free online test engine
Practise PTCA questions in your browser and see how the real exam is set out.
Start the free testPTCA sample questions
2 questions from the PTCA practice set, with the answer and explanation.
- Question 1What is the default dtype of a tensor created from Python float values with torch.tensor?
- A.torch.float32
- B.torch.int64, because Python numbers are stored as integers by default and need no conversion step
- C.torch.float64, because Python floats are double precision values in the underlying C++ backend
- D.torch.uint8, which is the smallest type that can hold a floating point literal without loss
Show answerHide answer
Correct answer:
- A.torch.float32
Explanation
torch.tensor infers float32 from Python floats, which is the default floating point dtype that torch.get_default_dtype() reports. The float64 option is the most tempting because Python floats are double precision, but PyTorch does not keep that precision unless the dtype is set explicitly. The int64 and uint8 choices misread how Python numbers are converted into tensors. - A.
- Question 2An nn.Module subclass defines its computation in the forward method, and calling the module instance, as in model(x), runs that method through __call__.
- A.True
- B.False
Show answerHide answer
Correct answer:
- A.True
Explanation
True. nn.Module.__call__ handles registered hooks and then invokes forward, which is why training code calls model(x) rather than model.forward(x). Defining the computation anywhere else would not be picked up by the module's call machinery. - A.
About Linux Foundation / CNCF PTCA
Related Practice Questions
PTCA FAQ
What is the Linux Foundation / CNCF PTCA exam?
PTCA is the PyTorch Certified Associate exam from Linux Foundation / CNCF. The exam runs for 120 minutes.
How many questions are in the PTCA practice set?
The full PTCA practice set has 100 questions with answers.
Can I try PTCA practice questions for free?
Yes. This page has 2 free PTCA PDF files shared by other candidates, and a free online test engine where you can answer PTCA questions in your browser. No account is needed.
What formats are the PTCA practice questions available in?
PTCA practice questions are available in these formats: PDF and Online Practice Exam. You can also get them together in a bundle.
How much does PTCA practice material cost?
PTCA practice material starts from $49 USD.
Are these the actual PTCA exam questions?
No. They are exam-style practice questions written from the official PTCA exam objectives, not actual exam content.
Reviews and Discussion
Loading comments