Project

General

Profile

Actions

Bug #4005

closed

Question separator function logic fails while parsing Exam2.pdf

Added by Sandeep Namilikonda over 15 years ago. Updated over 15 years ago.

Status:
Resolved
Priority:
Normal
Category:
client
Target version:
Start date:
04/21/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4005

Description

While parsing the following question, the current logic deems the text "12 S" of choice B, second line, as a part of an Answer Key and hence, deletes all the subsequent questions!

37) Some bacteria can undertake a type of
photosynthesis that uses H2S in place of
H2O. Assuming that the process is
otherwise similar to green plant
photosynthesis, which of the following
could represent the overall reaction?
A) 6 CO2 + 12 H2S > C6H12S6 + 6 H2S + 6
O2
B) 6 C02 + 12 H2S > C6H12O6 + 6 H2O +
12 S
C) 6 CO2 + 12 H2S > C6H12O6 + 6 H2S +
6 O2
D) 6 CO2 + 12 H2S > C6H12S6 + 6 H20 + 6
S02

Here is an excerpt from the Debug Console:

Question Num Read 36
%%%%%%%%FOUND NUMBER IN SEQUENCE%%%%%%%%%%%%
36
Question Num Read 37
%%%%%%%%FOUND NUMBER IN SEQUENCE%%%%%%%%%%%%
37
Question Num Read 12
++++++ADDED BECAUSE OF NEW PAGE+++++++++
Block deleted: #41
Block deleted: #41
Block deleted: #41
Block deleted: #41

and so on!

Later, when the user tries to save the assessment, a NullPointerException is thrown in recognizeQuestions() function.

Actions

Also available in: Atom PDF