Giter Site home page Giter Site logo

valentinfunk / brainphaser Goto Github PK

View Code? Open in Web Editor NEW
120.0 28.0 68.0 12 MB

Android Quiz App (Spaced Repetition) made with Material Design; features categories, statistics and different question modes

License: GNU General Public License v3.0

Java 100.00%
android-quiz android material-design app material

brainphaser's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

brainphaser's Issues

NulPointer in CompletionDataSource aus DueChallenge bei spielen der Activity

Bekomme ab und zu Error:

java.lang.RuntimeException: Unable to start activity ComponentInfo{de.fhdw.ergoholics.brainphaser/de.fhdw.ergoholics.brainphaser.activities.main.MainActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class fragment

Caused by: java.lang.NullPointerException
at de.fhdw.ergoholics.brainphaser.database.CompletionDataSource.findByUserAndStage(CompletionDataSource.java:63)
at de.fhdw.ergoholics.brainphaser.logic.DueChallengeLogic.addDueChallengesByCategory(DueChallengeLogic.java:87)
at de.fhdw.ergoholics.brainphaser.logic.DueChallengeLogic.getDueChallenges(DueChallengeLogic.java:62)
at de.fhdw.ergoholics.brainphaser.logic.DueChallengeLogic.getDueChallengeCounts(DueChallengeLogic.java:43)
at de.fhdw.ergoholics.brainphaser.activities.CategorySelect.SelectCategoryPage.refreshChallengeCounts(SelectCategoryPage.java:86)
at de.fhdw.ergoholics.brainphaser.activities.CategorySelect.SelectCategoryPage.sortCategories(SelectCategoryPage.java:94)
at de.fhdw.ergoholics.brainphaser.activities.CategorySelect.SelectCategoryPage.onCreate(SelectCategoryPage.java:58)
at android.support.v4.app.Fragment.performCreate(Fragment.java:1939)

Farben in Kuchen

Die Farben im Kuchen "Am häufigsten richtig/beantwortet/falsch" sollte jeweils die Farbe der Challenge haben (zB "Wie lautet das Ohmsche Gesetz?" in Klasse 4 am öftesten falsch, dann Kuchenstück mit Farbe von Klasse 4)

FloatingButton not visible

Der FloatingButton ist nicht sichtbar bei TextChallenge und Self-Check-Challenge (bzw. der RecyclerView nimmt den ganzen platz ein)
SelfTestChallenge ist nun implementiert

F-Droid

Hi @kamshak

Since Brain Phaser is licensed under GNU GPL v3, can you consider adding this app to the F-Droid repository?
I can give you documentation and links if you need it ;)

UserSelection stürzt ab

Beim Auswählen eines User in der UserSelection wird die Aktivität der ChallengeAuswahl nicht gestart und der User nicht gewechselt. Die App stürzt ab.
Exception TDL

Bug on delete current user

  • If the current user is deleted you can go back to the category screen
  • If the last user is deleted the user creation activity should be run

Your values/strings.xml is not in English

Hey there, I stumbled upon your repo after browsing @ordago's (cloned) repositories. I am opening this issue for a couple of reasons, but I will attempt to fix them while I write this issue.

Leaving your original strings.xml file in German can have a very negative impact on the user experience of your application (see this article about it).

Also, not to bash on @ordago, but some of the translations in strings-en.xml are too generic or should use other words when you read them. I'm guessing he is Spanish since he translated my app to it, so it's not a big deal.

You can see a pull request with my name on it within the next few minutes.

Issues with Build

@cytodev @ordago could you give me some info on troubles you were having with the build? Would like to fix these to allow easy adaption/customization of the app. I know documentation is very sparse at the moment - would love to improve.

Keine Challenges fällig wird nicht behandelt

                                                                            Process: de.fhdw.ergoholics.brainphaser, PID: 31878
                                                                            java.lang.RuntimeException: Unable to start activity ComponentInfo{de.fhdw.ergoholics.brainphaser/de.fhdw.ergoholics.brainphaser.activities.Challenge.ChallengeActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
                                                                                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2658)
                                                                                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2723)
                                                                                at android.app.ActivityThread.access$900(ActivityThread.java:172)
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422)
                                                                                at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                at android.os.Looper.loop(Looper.java:145)
                                                                                at android.app.ActivityThread.main(ActivityThread.java:5832)
                                                                                at java.lang.reflect.Method.invoke(Native Method)
                                                                                at java.lang.reflect.Method.invoke(Method.java:372)
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
                                                                             Caused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
                                                                                at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
                                                                                at java.util.ArrayList.get(ArrayList.java:308)
                                                                                at de.fhdw.ergoholics.brainphaser.activities.Challenge.ChallengeActivity.onCreate(ChallengeActivity.java:62)
                                                                                at android.app.Activity.performCreate(Activity.java:6221)
                                                                                at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
                                                                                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2611)
                                                                                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2723) 
                                                                                at android.app.ActivityThread.access$900(ActivityThread.java:172) 
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422) 
                                                                                at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                                at android.os.Looper.loop(Looper.java:145) 
                                                                                at android.app.ActivityThread.main(ActivityThread.java:5832) 
                                                                                at java.lang.reflect.Method.invoke(Native Method) 
                                                                                at java.lang.reflect.Method.invoke(Method.java:372) 
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) 
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194) 

Adding images to challenges

Hi! I am very new to Android development and I was wondering how I could add images to the challenges? So something like "What is the object in the image below?", followed by an image and then followed by 4 multiple choice options. I understand that I would need to add an ImageView but would appreciate some guidance!

Would really appreciate your help!

Index out of bounds

Cursor wird versucht zu lesen bei leerem Eintrag in UserDB

02-20 12:47:38.742 15394-15394/de.fhdw.ergoholics.brainphaser E/AndroidRuntime: FATAL EXCEPTION: main
                                                                                Process: de.fhdw.ergoholics.brainphaser, PID: 15394
                                                                                android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 0
                                                                                    at android.database.AbstractCursor.checkPosition(AbstractCursor.java:460)
                                                                                    at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
                                                                                    at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:50)
                                                                                    at de.fhdw.ergoholics.brainphaser.database.UserDataSource.cursorToUser(UserDataSource.java:136)
                                                                                    at de.fhdw.ergoholics.brainphaser.database.UserDataSource.getUser(UserDataSource.java:76)
                                                                                    at de.fhdw.ergoholics.brainphaser.activities.UserCreation.CreateUserActivity.validateUsernameDuplicate(CreateUserActivity.java:91)
                                                                                    at de.fhdw.ergoholics.brainphaser.activities.UserCreation.CreateUserActivity.access$000(CreateUserActivity.java:27)
                                                                                    at de.fhdw.ergoholics.brainphaser.activities.UserCreation.CreateUserActivity$1.afterTextChanged(CreateUserActivity.java:56)
                                                                                    at android.widget.TextView.sendAfterTextChanged(TextView.java:8007)
                                                                                    at android.widget.TextView$ChangeWatcher.afterTextChanged(TextView.java:10168)
                                                                                    at android.text.SpannableStringBuilder.sendAfterTextChanged(SpannableStringBuilder.java:1043)
                                                                                    at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:560)
                                                                                    at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:492)
                                                                                    at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:491)
                                                                                    at android.view.inputmethod.BaseInputConnection.replaceText(BaseInputConnection.java:685)
                                                                                    at android.view.inputmethod.BaseInputConnection.setComposingText(BaseInputConnection.java:445)
                                                                                    at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:340)
                                                                                    at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
                                                                                    at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                    at android.os.Looper.loop(Looper.java:148)
                                                                                    at android.app.ActivityThread.main(ActivityThread.java:5417)
                                                                                    at java.lang.reflect.Method.invoke(Native Method)
                                                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

@CruOzer

Statistik stürzt ab

Beim öffnen einer Statistik scrollt man nach ganz unten. Scrollt man wieder hoch und wieder herunter, sieht die Chart komisch aus und beim drauf klicken auf eine Pie stürzt die App ab.

Adding new Questions

When adding new questions to the challenges.bpc and submitting an update to the play store, it does not show the new questions for the user. I had to go into my app settings and clear the data. Only then did it show the new questions. Is there someway to show the new questions without having to do this? Also for some reason Import doesn't show in the production version of the app in the play store but when I run it in the emulator it does

App Is Not Open

Hello
BrainPhaser Is Nice App But when i Insert Question , App is Stop Working.Here Is my BPC File
It Has Any Limit for Question?

<?xml version="1.0" encoding="utf-8"?>
<categories>
    <category description="Solve CPU QUIZ SEM 1" image="@drawable/cpu" title="CPU">
        <challenge question="Which is not a font style in MS-Word"
            type="1">
            <answer correct="false" text="Bold" />
            <answer correct="true" text="Superscript" />
            <answer correct="false" text="italic" />
            <answer correct="false" text="Regular" />
        </challenge>
        <challenge question="In Microsoft Excel you can use the horizontal and vertical scroll bar to?" type="1">
            <answer correct="false" text="Split a worksheet to two panes" />
            <answer correct="false" text="Edit the contents of a cell" />
            <answer correct="true" text="View different rows and columns" />
            <answer correct="false" text="View different worksheet" />
        </challenge>
        <challenge question="With which of the following all formulas in excel starts?" type="1">
            <answer correct="false" text="/" />
            <answer correct="false" text="$" />
            <answer correct="false" text="#" />
            <answer correct="true" text="=" />
        </challenge>
        <challenge question="Which of the following is not one of PowerPoint view?" type="1">
            <answer correct="false" text="Slide show view" />
            <answer correct="false" text="Slide view" />
            <answer correct="true" text="Presentation view" />
            <answer correct="false" text="Outline view" />
        </challenge>
        <challenge question="Recycle bin is used for"
            type="1">
            <answer correct="false" text="To store backup file" />
            <answer correct="true" text="To restore deleted file / folder" />
            <answer correct="false" text="To store most frequently" />
            <answer correct="false" text="All the above" />

        </challenge>
        <challenge question="The process a user goes through to begin a computer system" type="1">
            <answer correct="false" text="Log out" />
            <answer correct="true" text="Log in" />
            <answer correct="false" text="Log off" />
            <answer correct="false" text="Non of above" />
        </challenge>
        <challenge question="characteristics should be considered except?" type="1">
            <answer correct="false" text="Application oriented features" />
            <answer correct="false" text="efficiency" />
            <answer correct="false" text="readability" />
            <answer correct="true" text="hardware maintenance costs" />
        </challenge>
        <challenge question="To Learn Computer, without going to classroom what will be other way"
            type="1">
            <answer correct="false" text="Distance Learning" />
            <answer correct="false" text="I-Learning" />
            <answer correct="false" text="Digital Learning" />
            <answer correct="true" text="E-Learning" />
</challenge>
        <challenge question="Which of the following is smallest Network?" type="1">
                    <answer correct="false" text="MAN" />
                    <answer correct="false" text="WAN" />
                    <answer correct="false" text="Not of above" />
                    <answer correct="true" text="LAN" />
                </challenge>
                <challenge question="What is Computer Virus" type="1">
                            <answer correct="true" text="Software" />
                            <answer correct="false" text="Hardware" />
                            <answer correct="false" text="Hardware and software both" />
                            <answer correct="true" text="Not of above" />
                        </challenge>
                        <challenge question="Software required to run the hardware is known as?" type="1">
                                    <answer correct="false" text="Task Manager" />
                                    <answer correct="false" text="Task Bar" />
                                    <answer correct="false" text="Program Manager" />
                                    <answer correct="true" text="Device Driver" />
                                </challenge>
                                <challenge question="Which the following is application software" type="1">
                                            <answer correct="false" text="Compiler" />
                                            <answer correct="false" text="Interpreater" />
                                            <answer correct="true" text="Power Point" />
                                            <answer correct="false" text="Debugger" />
                                        </challenge>
                                        <challenge question="Which of the programming language is said to be machine independent language?Which of the programming language is said to be machine independent language?" type="1">
                                                    <answer correct="false" text="High Level Language" />
                                                    <answer correct="true" text="Machine Level Language" />
                                                    <answer correct="false" text="Assembly Language" />
                                                    <answer correct="false" text="non of Above" />
                                                </challenge>
                                                <challenge question="Which one of the following is known as the ‘language of the computer’?" type="1">
                                                            <answer correct="false" text="Programming language" />
                                                            <answer correct="false" text="High-level language" />
                                                            <answer correct="true" text="Machine language" />
                                                            <answer correct="false" text="Assembly language" />
                                                        </challenge>
                                                        <challenge question="C is a __________ language" type="1">
                                                                    <answer correct="false" text="High level" />
                                                                    <answer correct="false" text="Middle level" />
                                                                    <answer correct="false" text="Machine level" />
                                                                    <answer correct="true" text="Low level" />
                                                                </challenge>
    <challenge question="What do you call the translator which takes assembly language program as input
                         and produce machine language code as output?" type="1">
                                                                        <answer correct="false" text="Compiler" />
                                                                        <answer correct="false" text="Interpreter" />
                                                                        <answer correct="false" text="Debugger" />
                                                                        <answer correct="true" text="Assembler" />
                                                                    </challenge>
        <challenge question="Why is it important to keep Windows updated using the Windows update website or
                             automatic updates?" type="1">
                           <answer correct="true" text="To keep your system secure and to install critical updates." />
                           <answer correct="false" text="To keep your system fast." />
                           <answer correct="false" text="To keep your system optimized for the new game." />
                           <answer correct="false" text="To keep your system over heating" />
                       </challenge>
                        <challenge question="In the evaluation of a computer language, all of the following characteristics should be considered except?" type="1">
                                           <answer correct="false" text="application oriented features" />
                                           <answer correct="false" text="readability" />
                                           <answer correct="false" text="efficiency" />
                                           <answer correct="true" text="hardware maintenance costs" />
                                       </challenge>
      <challenge question="How to write E_mail Address ?" type="1">
                                <answer correct="true" text="[email protected]" />
                                <answer correct="false" text="xyz@website@info" />
                                <answer correct="false" text="xyz.website.info" />
                                <answer correct="false" text="xyzwebsite.info" />
                            </challenge>
                             <challenge question="With regards to Email Addresses:" type="1">
                                                <answer correct="false" text="They are not case sensitive" />
                                                <answer correct="false" text="They can never contain  space" />
                                                <answer correct="false" text="They must always contain an @ symbol" />
                                                <answer correct="true" text="All of above" />
                                            </challenge>
        <challenge question="The system unit of a personal Computers typically contains all of the following except:" type="1">
                                  <answer correct="false" text="Microprocessors" />
                                  <answer correct="false" text="Disk controller" />
                                  <answer correct="false" text="Serial interface" />
                                  <answer correct="true" text="Modem" />
                              </challenge>

     </category>
     <category description="Solve CPU Part 2 question" image="@drawable/cpu" title="CPU 2">
                               <challenge question="Which one is input device?" type="1">
                                                  <answer correct="false" text="Monitor" />
                                                  <answer correct="false" text="CPU" />
                                                  <answer correct="true" text="Keyboard" />
                                                  <answer correct="false" text="Printer" />
                                              </challenge>
        <challenge question="Keyboard is the type of device ?" type="1">
                                  <answer correct="true" text="Input" />
                                  <answer correct="false" text="Pointing" />
                                  <answer correct="false" text="Output" />
                                  <answer correct="false" text="Sound" />
                              </challenge>
                               <challenge question="A document or image can be scanned in to digital form by using" type="1">
                                                  <answer correct="false" text="Marker" />
                                                  <answer correct="false" text="Printer" />
                                                  <answer correct="false" text="Light pen" />
                                                  <answer correct="true" text="Scanner" />
                                              </challenge>
        <challenge question="Which of the following will you find on an inkjet printer ?" type="1">
                                          <answer correct="false" text="It has an ink ribbon" />
                                          <answer correct="true" text="It has an ink cartridge" />
                                          <answer correct="false" text="It has high voltage power supply" />
                                          <answer correct="false" text="It uses toner powder" />
                                      </challenge>
                                       <challenge question="What will be a meaning of 1KB of memory" type="1">
                                                          <answer correct="false" text="1 Kit Bit" />
                                                          <answer correct="true" text="1 Kilo Byte" />
                                                          <answer correct="false" text="1 Kernel Boot" />
                                                          <answer correct="false" text="1 Key Block" />
                                                      </challenge>
<challenge question="The memory capacity of a computer is represented in" type="1">
<answer correct="false" text="Kilobits" />
<answer correct="false" text="Memory chips" />
<answer correct="true" text="Kilobytes" />
<answer correct="false" text="None of the above" />
</challenge>
<challenge question="What type of memory is volatile" type="1">
<answer correct="false" text="Cache" />
<answer correct="false" text="ROM" />
<answer correct="true" text="RAM" />
<answer correct="false" text="Hard Drive" />
</challenge>
<challenge question="Which of the following is a part of primary memory of computer" type="1">
<answer correct="false" text="PROM" />
<answer correct="false" text="CD-ROM" />
<answer correct="true" text="Pen-drive" />
<answer correct="false" text="Floppy Disk" />
</challenge>
<challenge question="Full Form of RAM?" type="1">
<answer correct="true" text="Random Access Memory" />
<answer correct="false" text="Ready Application Module" />
<answer correct="false" text="Remote Access Machine" />
<answer correct="false" text="Read Access Memory" />
</challenge>
<challenge question="RAM stands for" type="1">
<answer correct="true" text="Random Access Memory" />
<answer correct="false" text="Read Access Memory" />
<answer correct="false" text="Random Automatic Memory" />
<answer correct="false" text="Read Automatic Memory" />
</challenge>
<challenge question="Microprocessor of computer system is a part of :-" type="1">
<answer correct="false" text="Memory" />
<answer correct="false" text="Input Device" />
<answer correct="false" text="Output Device" />
<answer correct="true" text="Processing Unit" />
</challenge>
<challenge question="Operating system is installed on" type="1">
<answer correct="true" text="Hard Disk" />
<answer correct="false" text="Cache memory" />
<answer correct="false" text="Mother Board" />
<answer correct="false" text="None of these" />
</challenge>
<challenge question="Which of the following is a read only memory storage device?" type="1">
<answer correct="false" text="Floppy Disc" />
<answer correct="true" text="CD-ROM" />
<answer correct="false" text="Hard Disk" />
<answer correct="false" text="None of these" />
</challenge>
<challenge question="ALU is" type="1">
<answer correct="false" text="Array Logic Unit" />
<answer correct="false" text="Application Logic Unit" />
<answer correct="true" text="Arithmetic Logic Unit" />
<answer correct="false" text="None of these" />
</challenge>
<challenge question="Full form of IP ?" type="1">
<answer correct="false" text="Internet Principle" />
<answer correct="false" text="Intercom Protocol" />
<answer correct="false" text="Intranet Protocol" />
<answer correct="true" text="Internet Protocol" />
</challenge>
<challenge question="FTP stands for" type="1">
<answer correct="false" text="File Transport Protocol" />
<answer correct="true" text="File Transfer Protocol" />
<answer correct="false" text="Folder Transfer Protocol" />
<answer correct="false" text="non From Above" />
</challenge>
<challenge question="HTML stands for" type="1">
<answer correct="false" text="Hyper Text Makeup Language" />
<answer correct="true" text="Hyper Text Markup Language" />
<answer correct="false" text="Hyper Tech Markup Language" />
<answer correct="false" text="None of these" />
</challenge>
<challenge question="Which protocol is used to transfer files on internet" type="1">
<answer correct="false" text="HTTP" />
<answer correct="true" text="FTP" />
<answer correct="false" text="SMTP" />
<answer correct="false" text="HTTPS" />
</challenge>
<challenge question="Which protocol used to display web pages?" type="1">
<answer correct="false" text="SNTP" />
<answer correct="false" text="SMPT" />
<answer correct="false" text="Telnet" />
<answer correct="true" text="HTTP" />
</challenge>
<challenge question="What will be extension of Web Page’s file ?" type="1">
<answer correct="false" text=".3gp" />
<answer correct="false" text=".ppt" />
<answer correct="true" text=".html" />
<answer correct="false" text=".docx" />
</challenge>

</category>
<category description="CPU Question third Part" image="@drawable/cpu" title="CPU PART 3">

<challenge question="HTML is used to design" type="1">
<answer correct="true" text="Webpage" />
<answer correct="false" text="Multimedia Objects" />
<answer correct="false" text="Website" />
<answer correct="false" text="Tables and frames" />
</challenge>

<challenge question="BIOS is an abbreviation of" type="1">
<answer correct="true" text="Basic Input Output System" />
<answer correct="false" text="Best Input Output System" />
<answer correct="false" text="Basic Input Output Symbol" />
<answer correct="false" text="Base Input Output System" />
</challenge>

<challenge question="When a key is pressed on keyboard, which standard is used for converting the keystroke into the corresponding bits" type="1">
<answer correct="false" text="ANSI" />
<answer correct="true" text="ASCII" />
<answer correct="false" text="EBCDIC" />
<answer correct="false" text="ISO" />
</challenge>
 <challenge question="ASCII value of ‘a’ is" type="1">
        <answer correct="true" text="97" />
        <answer correct="false" text="65" />
        <answer correct="false" text="47" />
        <answer correct="false" text="64" />
        </challenge>
        <challenge question="Which part of CPU perform calculations and make decision" type="1">
        <answer correct="false" text="Alternate Logic Unit" />
        <answer correct="false" text="Arithmetic Local Unit" />
        <answer correct="true" text="Arithmetic Logic Unit" />
        <answer correct="false" text="Alternate Local Unit" />
        </challenge>
        <challenge question="In flowchart for what purpose diamond symbol is used?" type="1">
        <answer correct="false" text="Processing." />
        <answer correct="true" text="Condition" />
        <answer correct="false" text="dataflow" />
        <answer correct="false" text="input/output" />
        </challenge>
        <challenge question="What are the different types of real data types in C?" type="1">
        <answer correct="true" text="float, double" />
        <answer correct="false" text="short int, double, long int" />
        <answer correct="false" text="double, long int, float" />
        <answer correct="false" text="float, double, long double" />
        </challenge>
        <challenge question="HTML is used to design" type="1">
        <answer correct="true" text="Webpage" />
        <answer correct="false" text="Multimedia Objects" />
        <answer correct="false" text="Website" />
        <answer correct="false" text="Tables and frames" />
        </challenge>


        <challenge question="A declaration float a,b; occupies ______of memory ?" type="1">
        <answer correct="false" text="1 byte" />
        <answer correct="false" text="4 byte" />
        <answer correct="true" text="8 byte" />
        <answer correct="false" text="16 byte" />
        </challenge>

        <challenge question="A float requires ______bytes in memory" type="1">
        <answer correct="false" text="1 bytes" />
        <answer correct="false" text="2 bytes" />
        <answer correct="true" text="4 bytes" />
        <answer correct="false" text="8 bytes" />
        </challenge>

        <challenge question="A declaration float sum, value; occupies _____ of memory?" type="1">
        <answer correct="false" text="2 byte" />
        <answer correct="false" text="6 byte" />
        <answer correct="false" text="4 byte" />
        <answer correct="true" text="8 byte" />
        </challenge>

        <challenge question="Default value of global variable is" type="1">
        <answer correct="true" text="0" />
        <answer correct="false" text="Garbage value" />
        <answer correct="false" text="1" />
        <answer correct="false" text="Depend on data type" />
        </challenge>

        <challenge question="Default value of local variable is" type="1">
        <answer correct="true" text="Garbage value" />
        <answer correct="false" text="0" />
        <answer correct="false" text="1" />
        <answer correct="false" text="Depend on data type" />
        </challenge>

<challenge question="Which of the following is a correct statement?" type="1">
<answer correct="false" text="Variable name must start with underscore" />
<answer correct="false" text="Variable name must have digit" />
<answer correct="false" text="Variable name must have white space character" />
<answer correct="true" text="Keyword cannot be a variable name" />
</challenge>


<challenge question="If we want to increment the value of sum by 1. Which of following should be used?" type="1">
<answer correct="false" text="sum++;" />
<answer correct="false" text="sum = sum+1;" />
<answer correct="false" text="sum+ = 1;" />
<answer correct="true" text="all of above" />
</challenge>

<challenge question="Which header file is essential for using scanf() function?" type="1">
<answer correct="false" text="ctype.h" />
<answer correct="false" text="conio.h" />
<answer correct="false" text="string.h" />
<answer correct="true" text="stdio.h" />
</challenge>

<challenge question="Which of following loop is executed at least once?" type="1">
<answer correct="true" text="do-while" />
<answer correct="false" text="for" />
<answer correct="false" text="if" />
<answer correct="false" text="while" />
</challenge>

<challenge question="In which of the following the loop is executed at least once?" type="1">
<answer correct="false" text="do" />
<answer correct="true" text="do...while" />
<answer correct="false" text="while" />
<answer correct="false" text="for" />
</challenge>

<challenge question="Continue statement" type="1">
<answer correct="false" text="Breaks loop and goes to next statement after loop." />
<answer correct="true" text="does not break loop but starts new iteration." />
<answer correct="false" text="exits the program" />
<answer correct="false" text="Starts from beginning of program" />
</challenge>

<challenge question="What will be printed if we type the statement printf(“%d\n”,’d’);" type="1">
<answer correct="false" text="0" />
<answer correct="false" text="100" />
<answer correct="false" text="new line" />
<answer correct="true" text="error" />
</challenge>
</category>
<category description="CPU Question Forth Part" image="@drawable/cpu" title="CPU PART 4">

<challenge question="Array index start at" type="1">
<answer correct="true" text="0" />
<answer correct="false" text="1" />
<answer correct="false" text="User Definded" />
<answer correct="false" text="3" />
</challenge>
<challenge question="Which of following is not a valid assignment expression?" type="1">
<answer correct="false" text="y = 22 ;" />
<answer correct="false" text="s = x;" />
<answer correct="false" text="y % = 6;" />
<answer correct="true" text="z = 5 = 3;" />
</challenge>
<challenge question="HTML is used to design" type="1">
<answer correct="true" text="Webpage" />
<answer correct="false" text="Multimedia Objects" />
<answer correct="false" text="Website" />
<answer correct="false" text="Tables and frames" />
</challenge>
<challenge question="Which of the following is ternary operator?" type="1">
<answer correct="false" text="??" />
<answer correct="false" text=":?" />
<answer correct="true" text="?:" />
<answer correct="false" text="::" />
</challenge>
<challenge question="Which header file is essential for using printf() function ?" type="1">
<answer correct="false" text="text.h" />
<answer correct="true" text="stdio.h" />
<answer correct="false" text="conio.h" />
<answer correct="false" text="strcmp.h" />
</challenge>
<challenge question="Any C program" type="1">
<answer correct="true" text="Must contain at least one function." />
<answer correct="false" text="Need not contain any function" />
<answer correct="false" text="Needs input data." />
<answer correct="false" text="not from above" />
</challenge>
<challenge question="Which of the following is used as a string termination character?" type="1">
<answer correct="false" text="00" />
<answer correct="false" text="0" />
<answer correct="false" text="/0" />
<answer correct="true" text="\0" />
</challenge>
<challenge question="What should be written in the program to get newline on the screen?" type="1">
<answer correct="true" text="printf(“\n”);" />
<answer correct="false" text="echo “\\n”;" />
<answer correct="false" text="printf(‘\n’);" />
<answer correct="false" text="printf(“ \\n “);" />
</challenge>
<challenge question="Which is a correct ‘C’ expression?" type="1">
<answer correct="true" text="z = (x+y);" />
<answer correct="false" text="z = [x+y];" />
<answer correct="false" text="z = {x+y};" />
<answer correct="false" text="z = {(x+y)};" />
</challenge>
    </category>


<category description="ES Questions" image="@drawable/cpu" title="Environment Study">

<challenge question="The study of interrelationship between living organisms and their physical and biological environment is called" type="1">
<answer correct="false" text="EcoSystem" />
<answer correct="false" text="food web" />
<answer correct="true" text="Ecology" />
<answer correct="false" text="BioLogy" />
 </challenge>
 <challenge question="Which of the following is not layer of atmospheare?" type="1">
 <answer correct="false" text="Tropospheare" />
 <answer correct="false" text="Mesospheare" />
 <answer correct="false" text="Thermospheare" />
 <answer correct="true" text="Biospheare" />
  </challenge>
<challenge question="The biggest Pollutant receptor or sink of the earth is " type="1">
 <answer correct="false" text="Biosphere" />
 <answer correct="false" text="Lithosphere" />
 <answer correct="false" text="Hydrosphere" />
 <answer correct="true" text="Atmosphere" />
  </challenge>
 <challenge question="Earth day is celebrated on " type="1">
 <answer correct="false" text="5th June" />
 <answer correct="false" text="12th May" />
 <answer correct="false" text="22nd April" />
 <answer correct="true" text="22nd May" />
  </challenge>
 <challenge question="Stratosphere contains an important spices which protect life on earth is" type="1">
 <answer correct="false" text="Oxygen" />
 <answer correct="true" text="Ozone" />
 <answer correct="false" text="Nitrogen" />
 <answer correct="false" text="Hydrogen" />
  </challenge>
<challenge question="A zone consisting of land ,water and air which supports life on earth is" type="1">
 <answer correct="true" text="Biosphere" />
 <answer correct="false" text="Atmosphere" />
 <answer correct="false" text="Lithosphere" />
 <answer correct="false" text="Hydrosphere" />
  </challenge>
  <challenge question="Which one of the following is not included in P3 Model Of environment degradtion used for developing countries?" type="1">
 <answer correct="false" text="Population" />
 <answer correct="false" text="Poverty" />
 <answer correct="true" text="Population explosion" />
 <answer correct="false" text="Polluction" />
  </challenge>
 <challenge question="Short term propeties of the atmosphere at a given place and time is reffered as " type="1">
 <answer correct="false" text="Climate" />
 <answer correct="false" text="Microclimate" />
 <answer correct="false" text="season" />
 <answer correct="true" text="Weather" />
  </challenge>
 <challenge question="Ambient lapese rate is " type="1">
 <answer correct="false" text="minus 5.2 C per km" />
 <answer correct="false" text="minus 2.2 C per km" />
 <answer correct="true" text="minus 6.5 C per km" />
 <answer correct="false" text="5.2 C per km" />
  </challenge>
  <challenge question="Environmental pollution is due to " type="1">
   <answer correct="false" text="Rapid Indrustrialzation" />
   <answer correct="false" text="Population Growth" />
   <answer correct="false" text="Unplanned urbanization" />
   <answer correct="true" text="All od above" />
    </challenge>
   <challenge question="The component of the environment which is of utmost importance for study of environment" type="1">
   <answer correct="false" text="Atmosphere" />
   <answer correct="false" text="Hydrosphere" />
   <answer correct="true" text="Biosphere" />
   <answer correct="false" text="Lithosphere" />
    </challenge>
    <challenge question="The outer soil of the earth is known as" type="1">
       <answer correct="false" text="Hydrospheare" />
       <answer correct="true" text="Lithospheare" />
       <answer correct="false" text="Exospheare" />
       <answer correct="false" text="Mesospheare" />
        </challenge>
       <challenge question="Ozone layer is located in which part of atmosphear" type="1">
       <answer correct="false" text="Mesospheare" />
       <answer correct="false" text="Tropospheare" />
       <answer correct="true" text="Stratospheare" />
       <answer correct="false" text="Thermospheare" />
        </challenge>
       <challenge question="The world environment Day Is celebrated on" type="1">
       <answer correct="false" text="15th June" />
       <answer correct="true" text="5th June" />
       <answer correct="false" text="5th January" />
       <answer correct="false" text="15th Fabruary" />
        </challenge>

      <challenge question="Which of the following is not layer of atmospheare?" type="1">
      <answer correct="false" text="Tropospheare" />
      <answer correct="false" text="Mesospheare" />
      <answer correct="false" text="Thermospheare" />
      <answer correct="true" text="Biospheare" />
       </challenge>
      <challenge question="The outer soil of the earth is known as" type="1">
      <answer correct="false" text="Hydrospheare" />
      <answer correct="true" text="Lithospheare" />
      <answer correct="false" text="Exospheare" />
      <answer correct="false" text="Mesospheare" />
       </challenge>
      <challenge question="Ozone layer is located in which part of atmosphear" type="1">
      <answer correct="false" text="Mesospheare" />
      <answer correct="false" text="Tropospheare" />
      <answer correct="true" text="Stratospheare" />
      <answer correct="false" text="Thermospheare" />
       </challenge>
      <challenge question="The world environment Day Is celebrated on" type="1">
      <answer correct="false" text="15th June" />
      <answer correct="true" text="5th June" />
      <answer correct="false" text="5th January" />
      <answer correct="false" text="15th Fabruary" />
       </challenge>


    <challenge question="Which one of the following is not included in P3 Model Of environment degradtion used for developing countries?" type="1">
    <answer correct="false" text="Population" />
    <answer correct="false" text="Poverty" />
    <answer correct="true" text="Population explosion" />
    <answer correct="false" text="Polluction" />
     </challenge>
    <challenge question="Short term propeties of the atmosphere at a given place and time is reffered as " type="1">
    <answer correct="false" text="Climate" />
    <answer correct="false" text="Microclimate" />
    <answer correct="false" text="season" />
    <answer correct="true" text="Weather" />
     </challenge>

  </category>
</categories>

Thanks

Language change

How do i change the language of App from spanish to English?

Fällige Challenges

Nach dem Import einer CHallenge werden die neuen Kategorien angezeigt, aber "Es sind keine CHallenges fällig". Nach Reload des Screens sind diese erst wieder da

FinishScreen kann nicht geladen werden

FATAL EXCEPTION: main
java.lang.IllegalStateException: Could not find CoordinatorLayout descendant view with id de.fhdw.ergoholics.brainphaser:id/challenge_fragment to anchor view android.support.design.widget.FloatingActionButton@41d5ae28
at android.support.design.widget.CoordinatorLayout$LayoutParams.resolveAnchorView(CoordinatorLayout.java:2548)
at android.support.design.widget.CoordinatorLayout$LayoutParams.findAnchorView(CoordinatorLayout.java:2491)
at android.support.design.widget.CoordinatorLayout.prepareChildren(CoordinatorLayout.java:619)
at android.support.design.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:670)
at android.view.View.measure(View.java:15288)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4876)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
at android.view.View.measure(View.java:15288)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4876)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1396)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:681)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:574)
at android.view.View.measure(View.java:15288)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4876)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.view.View.measure(View.java:15288)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4876)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1396)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:681)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:574)
at android.view.View.measure(View.java:15288)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4876)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2397)
at android.view.View.measure(View.java:15288)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1974)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1217)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1390)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1113)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4481)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
at android.view.Choreographer.doCallbacks(Choreographer.java:555)
at android.view.Choreographer.doFrame(Choreographer.java:525)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4867)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
at dalvik.system.NativeStart.main(Native Method)

Settings

  • Collapse
  • Debug Stunden fehler

Crash bei EU

java.lang.ArrayIndexOutOfBoundsException: length=3; index=3
at de.fhdw.ergoholics.brainphaser.activities.Challenge.MultipleChoiceFragment.onCreateView(MultipleChoiceFragment.java:49)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1974)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:570)
at de.fhdw.ergoholics.brainphaser.activities.Challenge.ChallengeActivity.loadChallenge(ChallengeActivity.java:268)
at de.fhdw.ergoholics.brainphaser.activities.Challenge.ChallengeActivity.access$600(ChallengeActivity.java:42)
at de.fhdw.ergoholics.brainphaser.activities.Challenge.ChallengeActivity$1.onClick(ChallengeActivity.java:164)
at android.view.View.performClick(View.java:3511)
at android.view.View$PerformClick.run(View.java:14110)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)

@CruOzer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.