Dragon Ball Super ending 9 https://www.youtube.com/watch?v=5lRjWkjHKDg
in a part of the song says
"waratteru ka naiteru noka"
which is translated as
were you laughing or were you crying?
Is there any reason why the first part uses the particle "ka" and the second "no ka"? is there a rule or something for doing so in a case like this?