When the subject is implicit, and you want to inquire about it. Such as when you inquire about how a friend is doing. You can also say "How did the exam go?". Simply add "Exam" just before 怎么样 (zěnmeyàng)
Check out these groups of Chinese phrases too. You might find more useful Mandarin phrases. The current Chinese phrase "How is it going?" appears in these as well
Learn how to say the Chinese phrase for How is it going? with standard Mandarin pronunciation. Free Mandarin phrases with pinyin and literal translation