Posts

Showing posts with the label quiz app in Sketchware

Create a simple quiz app using Json in Sketchware

Image
To create a simple quiz app using Json String in Sketchware, follow the steps given below. 1. Create a json array containing all the questions and options. Each object in the array should contain a question with key ' ques ', four options for the question with keys ' a ', ' b ', ' c ' and ' d ', and the correct answer with key ' ans '. [ { "ques" : "The larynx in adults lies in front of hypopharynx opposite the...", "a" : "second to fifth cervical vertebrae", "b" : "fifth to seventh cervical vertebrae", "c" : "third to sixth cervical vertebrae", "d" : "first two cervical vertebrae", "ans" : "c" }, { "ques" : "Which of the following is the largest cartilage of larynx?", "a" : "thyroid cartilage", "b" : "cricoid cartilage", "c" : ...

Creating a Quiz Android App

Image
This is a tutorial on creating a quiz in Android. After this tutorial you will be able to create your own Android App with your own quiz. Follow the instructions given below to learn how to create a quiz app in Android. 1. Download Sketchware App for Android devices. 2. Open Sketchware and start a new project. Enter the app name and other details as per your wishes and click save. 3. Now in the View area (main.xml), insert a Scroll(V) and inside that a Linear(V) . Set the width of both the Layouts to match parent and set the padding of Scroll(V) to 0. Also set the background color of Linear(V) to green or a color of your choice, and gravity of Linear(V) to center_horizontal, center_vertical. 4. Now insert 4 button widgets (depends on your requirement), one each for each of the quiz. Each quiz can have several questions. Rename the buttons as Quiz1, Quiz2, Quiz3 and Quiz4 respectively. Now for each of the buttons: increase font size to 18, set margin of each to 8,...