After having heard the information, and unless the court grants him time to answer, the defendant shall immediately make his plea, or he may file a motion to dismiss or to grant appropriate relief. If a motion should be filed without having entered any plea, and said motion is withdrawn or dismissed, the defendant shall then answer by making his plea.