# Create commands each of the text aligned horizontally?

I am using exam document class as my guide in creating my own documentclass but i have encountered a problem.How will i create a command for each of the four texts in a line. here is a sample image:

.

the command names that will be created would include commands for each: time, ExamCategory, MaximumMarks, and PassingScore. these when used, will be displayed in one line or horizontally aligned as what was indicated in the image.

-

Text will align itself to the current baseline by default so you don't need to do anything.

\def\time#1{\def\xtime{#1}}
\def\ExamCategory#1{\def\xExamCategory{#1}}
\def\MaximumMarks#1{\def\xMaximumMarks{#1}}
\def\PassingScore#1{\def\xPassingScore{#1}}

\time{1 hour}
\ExamCategory{Humanities prelim}
\MaximumMarks{50}
\PassingScore{30}

\noindent\makebox[\textwidth]{Time: \xtime%