
Building a fluid mechanics multiple-choice test program for smartphones with android operating system
- Faculty of Civil Engineering, Ho Chi Minh City University of Technology (HCMUT), 268 Ly Thuong Kiet Street, District 10, Ho Chi Minh City, Viet Nam
Abstract
On the basis of a set of Fluid Mechanics Multiple-Choice Tests (FMMCT) in the form of MS Word files, the author used the programming languages and open source programs Android Studio, PHP, Java Script, HTML, and Hot Potatoes 6 to proceed developing an FMMCT program FluidMCT, operating on smartphones with the Android operating system, to create favorable conditions for learning fluid mechanics better. The program consists of two parts: (1) The program to be installed on the smartphone created through the Android Studio Bumblebee Software │2021.1.1 Patch 2 [1]; (2) The programs and databases are installed on the server. Hot Potatoes 6 software helps to create FMMCT lessons with results as HTML files containing JavaScript language to perform operations and scoring. Based on this sample test, 160 FMMCT lessons are conducted on the basis of separating the test content, the selected evaluation content and the JavaScript operating files in the form of *.js to optimize the saving process. storage and programming for big data. On the server, programs written in PHP, HTML, JavaScript and MySQL databases help to manage the data system containing FMMCT, the table user in the MySQL database along with PHP programs support account security management through the login process. These two program systems (1) and (2) are linked together. Using smartphones, users can freely run 20 FMMCT lessons; however, to continue running the remaining 140 lessons, students must provide resource system logins. In addition, a system program is created and installed on the server, and another result is the FluidMCT.apk file, allowing it to be installed on Android smartphones for use. Through the results of this program development, a multiple-choice test program of any other subject can be built conveniently and quickly.
INTRODUCTION
Fluid mechanics is a basic subject for students of many universities of engineering and technology in various disciplines, such as water resources and management, road construction, aviation, and mechanical engineering, in the country as well as in the world. Therefore, many students in the early years have to study fluid mechanics. Understanding this subject is not easy because it requires much mathematical knowledge and deep physical nature about both water and gas. Therefore, students have a great need to study well to pass exams with high efficiency in fluid mechanics exams and tests. Various methods have been proposed to improve efficiency in disseminating knowledge of fluid mechanics. One of these methods is the fluid mechanics multiple-choice test (FMMCT). FMMCT is the application of multiple-choice test techniques to the field of fluid mechanics. It helps students re-examine their knowledge of both theoretical and computational aspects. Depending on how the set of questions is built, FMMCT can cover most of the basic knowledge and apply it to every detail. Therefore, to perform well in FMMCT, students must not only master theoretical knowledge (THEO) but also deal well with applied computational (COMP) problems.

FMMCT questions in Fluid Mechanics MCQs
There are many scientists and researchers who create online multiple-choice test programs to help students study more effectively in some areas of basic science. However, the application of network programming techniques for the field of fluid mechanics, especially the application of 4.0 technology on Android phones, is still quite limited. A multiple-choice test program on smartphones, if created, will help students have better learning conditions because it is a very popular tool for most students today due to its convenience, especially limiting contact with the source of COVID-19 pandemic transmission.
Today, with technology 4.0, the development and use of smart mobile phones are very widespread and popular due to the technical development of hardware and software, making prices cheaper and cheaper to meet demand for public use around the world. With this development, there is a great need to bring the FMMCT technique to smart mobile phones.
On Google Play, there is a program called 2. This program is written in English, and each theoretical question has four answers, one correct answer, and is indicated below the question. For the computational questions, there are 5 answers, one of which is correct and is also indicated below the question (Figure 1). This program is the basic form for creating the FMMCT program.

Fluid Mechanics Exam Questions Practice Test application
The second program is the Fluid Mechanics Exam Questions Practice Test application3. This application created by (Figure 2) includes 300 fluid mechanics multiple-choice test questions. The authors have tried to use all sorts of teaching techniques like virtual whiteboards, animations, graphs, etc., to be able to bring out the best content for students.
For the cost to own this application, users have to pay 420,000 VND/1 account (promotion period is 199,000 VND/1 account).
The above references have shown that creating applications for learning fluid mechanics, especially FMMCT, is an urgent need to meet the conditions of fast and effective learning on mobile phones of students.
This is the reason why this article presents the building of the FluidMCT program to exploit the effectiveness of 4.0 technology in using Android smartphones to help students study FMMCT well.
Android Studio4 is the official Integrated Development Environment (IDE) for Android app development. Based on the powerful code editor and developer tools from IntelliJ IDEA , Android Studio offers even more features that enhance productivity when building Android apps, such as a flexible Gradle-based build system, a fast and feature-rich emulator, and a unified environment where users can develop for all Android devices. and many other properties to make the programmer convenient in programming the app using all Android devices. This is the reason why the author uses the Android studio to program the FMMCT program.
PHP language5 started out as a small open source project that evolved as an increasing number of people determined how useful it was. Rasmus Lerdorf 6 unleashed the first version of PHP way back in 1994. It has some properties:
Since we have a large data to store the contents of fluid mechanics multiple-choice tests and need to create the links and the security using the Database MySQL, an open sources code, in this program the PHP is used in joint with HTML, and Java script language.
JavaScript language7 is a multiparadigm, dynamic language with types and operators, standard built-in objects, and methods. Its syntax is based on the Java and C languages — many structures from those languages apply to JavaScript as well. JavaScript supports object-oriented programming with object prototypes and classes. It also supports functional programming since functions are first-class that can be easily created via expressions and passed around like any other object. Therefore, in this program, Javascript language could be used in conjunction with HTML to show the questions, answers and operations concerning the tests, the evaluation of selections, etc., conveniently.
HTML8 is the standard markup language for creating web pages. HTML stands for Hyper Text Markup Language. It describes the structure of a Web page. HTML consists of a series of elements. HTML elements tell the browser how to display the content. HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", . Therefore, in this program, it is convenient to join with other PHP and JavaScript languages to create an online test for fluid mechanics with the MySQL database on the host.
THE STRUCTURE OF FMMCT
Here, the FluidMCT program is not aimed at testing for students but aims to help students learn to understand fluid mechanics (FM), so the content of the FM course and the structure of the FMMCT have some characteristics as follows:
- Contents of FM subject include the following chapters: Fluid properties; Fluid statics; Flow kinetics and dynamics; Uniform flow in pipe; Uniform flow in open channel; Potential flow & Drag and Lift forces.
- In one FMMCT lesson, there are 4 COMP questions and 6 THEO questions. For each COMP question, there are 5 answers, one of which is correct. For each THEO question, there are 4 answers, just one of which is correct. See the sentence structure of the THEO and COMP questions in the form of MS Word in LINK.
- The FluidMCT program contains 160 FMMCT lessons in MS Word format that have been processed into HTML format. An FMMCT lesson in the form of HTML was created using Hot Potatoes 6 software9. Then, text processing software was used to separate the format code into a separate fixed file and the fixed Java script source code into a separate file , common use to all FMMCT lessons. The Java script source code changes from each FMMCT lesson were collected and put into a separate file (). These three files are linked in the HTML file, namely, . Thus, FluidMCT software contains one file, one file and 160 files of format and 160 files in the form of Bai_x.js, where x stands for 1, 1a, 1b, 1c; 2, 2a, 2b, 2c, …40, 40a, 40b and 40c. Thus, we will significantly reduce the file size if the number of FMMCT lessons is large, and at the same time, it makes the program-creation process more convenient and faster, see LINK.
SYSTEM STRUCTURE OF FLUIDMCT PROGRAM

Connecting data in the FluidMCT.
The FluidMCT program system consists of two parts: (1) Part 1, stored on the Interserver.net server10. The files *.html and *.php are contained on the website with the name mctest.datechengvn.com, and the user table is contained in the MySQL Database; (2) Part 2, stored inside the FluidMCT program on the Android operating system mobile phone. Figure 3 shows the linkage of the FluidMCT Program.
FluidMCT system and structure on Android Studio software
Android Studio Bumblebee software │2021.1.1 Patch 2 (in short, ) is used to program the FluidMCT program for Android operating system smartphones, and some files and folders are described as follows:
- The main files of the program include ; ; (click here for reference to these files):
- The folder contains the folder, which contains 160 folders with the following form:
, where x = 1, 1a, 1b, 1c; 2, 2a, 2b, 2c...40, 40a, 40b và 40c.
These folders contain image files, *.GIF, *.gif, *.JPG, *.jpg and files (see Appendix 3), which link to 20 respective HTML files contained in www directory in the following form:
, where x = 1, 1a, 1b, 1c; 2, 2a, 2b, 2c...5, 5a, 5b và 5c
- The folder , contained in the www folder, contains 140 files of the form:
, where x = 6, 6a, 6b, 6c; 7, 7a, 7b, 7c...40, 40a, 40b và 40c.
- The directory still contains 160 Java Script files of the following form:
, linked to the file , where x = 1, 1a, 1b, 1c; 2, 2a, 2b, 2c...40, 40a, 40b and 40c
- In addition, in the directory, there are other files as follows:
: Java Script files, links to files
: File format for files
: HTML file introducing the FluidMCT program and buttons.
: The HTML file gives a general introduction to the FluidMCT program.
: Java Script file, check email validity.
: JavaScript file, providing bank account information for users to create accounts.
- The folder contains 4 folders: and
- The folder contains the file with the parameters and images shown in Figure 4.

The Layout file of FluidMCT.
- The folder contains the following files: and files (click here for reference to these files).
System and structure of FluidMCT software on the server
All program source code and the database of FluidMCT Software are stored on the server using the MySQL database. The file storage address is , on the server with the address .
The server contains a system of account creation programs and a system of login management programs. The login program will be activated when the user using FluidMCT software on an Android smartphone wants to study all 160 FMMCT lessons. In this case, the user must be provided with a login account including the username and password. Information about Username and Password is contained in a table in the MySQL database , named . The structure of the is shown in
The structure of Table
Field Name |
Data Type |
Notes |
---|---|---|
ID |
bigint (20) |
AUTO_INCREMENT |
userid |
varchar (60) | |
password |
varchar (255) | |
fullname |
varchar (50) | |
|
varchar (100) | |
finnancode |
varchar (20) | |
usertype |
varchar (20) | |
notes |
text |
Account creation management
To assist in creating an account and checking the data provided, the FluidMCT program on the website has the following programs:
- : Program to display account creation information
- : Check all information provided such as checking email format; SPAM test, financial check; check the length of the lines of information. If during the running of the program, all the information provided matches, the program will generate an account supply notice sending to the user's email, instructions and the LINK to login to the website.
- : File format.
- : show an error message
- : provide confidential information about: Server address; database name, username and password.

The program is running on virtual phone in the AVD system.
Login management
To manage logins to the system, FluidMCT has program. Users must provide an account including their username and password. It contains the command lines to check the information. After checking for correctness and matching, the program opens a session via the command line.
and generate session-related information before moving to the file. This file checks the login status of the user. If the user is not logged in, the program will lead the user back to the login page to proceed with the login procedure. In addition, the file contains the associated functions such as change password (), forget password (), studying complete FMMCT lessons, and log out system ().
TESTING THE FluidMCT PROGRAM
Tested on Android operating system smartphones
Figure 5 shows the image of the program programmed in Android Studio 2021.1.1 Patch 2, executing the Build function in preparation for display. There are two display solutions: (1) display on the virtual phone system on the computer, through the Device Manager function and selecting Virtual, where the virtual phone is Pixel 2 API 30, Android 11.0 Google Play, active dynamic in the Android Virtual Device (AVD) system; (2) display on real phone SAMSUNG Galaxy 7 via USB.

Create APK file of FluidMCT program to install on a Android smartphone.
Create the installation file on the mobile phone
After running the test on the AVD system, we proceed to the Build menu, select Build Bundle(s)/APK(s), and then click the Build APK(s) function (Figure 6). Android Studio will create an file. We can rename the file FluidMCT.apk. This is the file used to install the FluidMCT program on Android smartphones.
Tested on a desktop with an internet connection
There are two approaches to log in to the system: (1) log in to study all the FMMCT lessons and (2) log in to the 2nd level member area.
To view instructions and register an account, users can follow the LINK: https://datechengvn.com/Service/PayProcedure.html
After paying the fee, the user receives an account including the username and password via email. The email contains instructions for logging into the website system. Users follow the following LINK to log in to the system: https://datechengvn.com/SignInMenu/SigninMenu.php
A window as shown in Figure 7 will appear: the user can choose (1) REGISTER ACCOUNT or (2) LOG IN TO 2nd LEVEL MEMBERS AREA. User clicks on the function (2), a window asks to provide Email will appear as Figure 8, after providing Email, click Submit, a window asking for OTP code appears, the user logs in to his Email to receive the code and enter it into the OTP window as shown in Figure 9. After clicking Submit, a login window appears, as shown in Figure 10.
Then, the user clicks on content 5: , enters the provided account, and then clicks the sign in - login button to study all the FMMCT lessons. Figure 11 shows the FluidMCT program running on the desktop.

System communication window.

Email request window.

The window asks for the OTP.

Login window to do all FMMCT lessons.

FluidMCT program running on desktop.

Log in to the Web Site for account management.
To log in to the website, users follow LINK: https://mctest.datechengvn.com/index.php.
The login window will appear as Figure 12. After providing the correct account, click the Login command button, and the system's web page will appear as Figure 13. Here, the user can perform various operations.

Web page within web site with login management functions.
Install Program FluidMCT.apk
As described in section 4.2, from the Android Studio software, we obtain the installation file. To install the FluidMCT program on a smartphone, we can do the following:
Run a browser on a smartphone or on a desktop computer: click on the following address to download the file to your smartphone or computer. If downloaded to a computer, the installation file can be transferred to a smartphone via the USB port.
https://mctest.datechengvn.com/PublicApp/FluidMCT.apk.
On the smartphone, proceed with the installation by manually typing in this file and answering the appropriate questions during the installation process. After the installation is complete, a new icon appears on the smartphone with the name TracNghiem_CLC_V.2.0. Just click on this icon to run the FluidMCT software.
CONCLUSION
Through the presentation of the article, we can see that the creation of the FMMCT program on smartphones with the Android operating system has been completed, installed, and applied. This is a favorable condition to help students learn fluid mechanics better. The more and more the content of the questions is added, the more complete the student's learning results will be.
The creation is separated into stages, by file type, by function such as HTML file, Java Script file and format file. Therefore, based on this creation system, test programs of other subjects can also be created conveniently, just providing the test set in basic MS Word form.
With the development of 4.0 technology and the increasing popularity of smartphones, multiple-choice learning of subjects on smartphones is an inevitable development trend, not only in the country but also in the world. In the future, the implementation of the FluidMCT program, if English is added, will widen the program's popularity and applicability.
Some remarks for future works
Continuous addition of technical contents and rearrangement of the structure of the contents of the program in groups of theoretical questions, computational questions, and classification by chapter are necessary to help students more easily study. In addition, using the English language for the program and the technical content for publication to other foreign students is another consideration.
Finally, the improvement of the program interface will be considered to become more attractive to increase the problem-solving and awareness ability of the students.
LIST OF ABBREVIATIONS AND EXPLANATIONS
AVD: Android Virtual Device, a tool for Android Emulator Architecture in Android Studio software to show the result of programming directly on the desktop instead of the mobile phone.
COMP: Applied Computational
FluidMCT: Fluid Mechanics Multiple-choice Test program run on Android smartphones.
FMMCT: Fluid Mechanics Multiple-choice Test.
FMMCT Question: Here, it includes one question with several answers, 4 for the theoretical question and 5 for the computational question, in which there is just one correct answer.
FMMCT Lesson: Here, it includes 10 questions, 6 theoretical ones and 4 computational ones.
THEO: Theoretical
ACKNOWLEDGEMENTS
The author sincerely thanks Vietnam National University HCMC for providing funding for the project, code C2021-20-44, enabling this article to be carried out.
Competing interests
The author declares that they have no competing interests.