Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6175455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:55:40+00:00 2026-05-23T23:55:40+00:00

I have a Text file which contains data (4 to 5 paragraph) and then

  • 0

I have a Text file which contains data (4 to 5 paragraph) and then contain 100 question along with each containing four option (a,b,c,d). Later it contain answer for above question (1.a,2.b and so on). My problem is I want to read each time a single question and options to display. Here when the user selects the option I want to check whether he choose the right one or not. Similarly I want to do this for all questions. And at last I want to display how many question are correct and how many are false.

My question is, how can I get each question and option separately? Similarly the answer. How to get information present in text file separately when required?

my file

Section I – General Questions 



Instructions: choose the most correct answer. 

1. The International Labour Organization’s first Maternity Protection Convention was issued in: 

A.) 1952. 
B.) 2000. 
C.) 1919. 
D.) 1997. 

2. Beyond the 5th month of pregnancy, noise in excess of _______________________ may cause 
hearing loss in the fetus: 

A.) 90 dBA TWA per OSHA requirements 
B.) 155 dBC peak and 115 dBC TWA per ACGIH® TLV® Booklet notes 
C.) 75 dBA TWA per American Academy of Pediatrics guidelines 
D.) 65 dBC peak per EPA studies 


ANSWERS – Section I General Questions 

1. C 
2. B 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:55:41+00:00Added an answer on May 23, 2026 at 11:55 pm

    I wouldn’t worry about the format of the file at this point too much. Design your objects (presumably things like Question, Answer, Student etc etc). Get that all working with some test data and then worry about parsing the file. Your program objects don’t need to know what the file will look like.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a text file with 50k+- lines and each line contains data which
I have a text file which contains data seperated by '|'. I need to
I have a text data file which contains text like this: [category.type.group.subgroup] - 2934:10,4388:20,3949:30
I have a text file which contains columns of data that are either integer,
I have a text file which contains the text DATA collate UNKNOWN null, or
I have a text file which contains data I need to preload into a
I have a text file input which contains data as below. How can I
Hi I have a text file which contains some numerical data. Of that text
I have a .rc file which is used to include some text data in
I have an XML file which contains some data as given. <?xml version=1.0 encoding=UTF-8

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.