Is the following in NP or not:
Is the following in NP or not:

Input: CFG G and input w
Question: Does there exist an input x of the length of w that x is created by G?

Is the question decidable?
Is it in NP?
Is the following in NP or not:
===

Is the following in NP or not:

Input: CFG G and input w
Question: Does there exist an input x of the length of w that x is created by G?

Is the question decidable?
Is it in NP?