السلام عليكم
This word, هذا, can be used without the ال particle, but it carries a different meaning. When you want to say, "This x" you use ال. When you want to say, "This IS a(n) x", you do not use ال. For example:
This book
هذا الكتاب
This is a book
هذا كتاب
In your examples, you would only need the prior. I hope this helps.