When you import a test from a PDF, Word file or photos, the marks the paper prints for each question, such as (5 marks) or [10], now come in with it. A question in parts where students choose adds its parts' marks together. Each card shows the marks for you to check or change, and adding the questions to an assessment puts them on the paper. A question the paper gives no marks for is left for you to fill in; nothing is worked out.
Read the help article