Benha National University
Faculty of Computer Science
2nd Term (March 2025) Midterm no. 1
Program: Software and Application Development
Course Name: Mobile Application Course Code: SAD307 Level: 3rd
Development level
Date: 26/03/2025 Time: 60 Minutes
Total Marks: 15 Marks
Student’s Name: ……………………………… Student’s ID: …………………………
Answer all the Following Questions [ 3 questions in 2 pages]:
Question No. 1 [ILOs: A1,A3,A16,B1,B7,D1, D9] [5 Marks]
- Put your choices in this table
1. 2. 3. 4. 5.
6. 7. 8. 9. 10.
1- Which of the following best explains the flutter?
a- It is an open-source database management b- This is an open-source UI toolkit
system
c- This is an open-source backend toolkit d- None of the above
2- Which of the following are the advantages of Flutter?
a- Minimal code b- Faster Development
c- Cross-platform Development d- All of them
3- A widget can change appearance in response to events triggered by user interactions
a- Stateful widget a- Stateless widget
b- Map c- None of them.
4- When you want to create a Flutter app, you need to configure a lot of widgets and change
their format. You don't need to create everything from scratch. You can easily add the
Scaffold class or widget to your app. This class implements the basic material design visual
layout structure for your app.
a- True b- False
5- ………….. is used to show a line or a paragraph with multiple styles
a- TextField widget b- Text widget
c- RichText widget d- Buttons Widget.
6- What is the purpose of the runApp() function in Flutter?
a- To define the layout of the user interface b- To handle user input
c- To start the Flutter application d- Managing the state of the application
7- What property is placed at the bottom right corner by default?
a- title. b- appBar.
c- FloatingActionButton. d- header.
Page 1 of 4
8- [Link] file does not contain?
a- Project general settings b- Project language
c- Project assets d- Project dependencies
9- Which of the following is used to load images from the flutter project’s assets?
a- Image c- [Link]
b- [Link] d- [Link]
10- Which command is used to check that everything is installed successfully?
a- Flutter console b- Flutter doctor
c- Flutter run d- None of them
Question No. 2 [ILOs: A1,A3,A16,B4,B6,D1, D9] [4 Marks]
2-a What are widgets in Flutter, and what are the different types of widgets available?
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
2-b Explain BuildContext.
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
Page 2 of 4
Question No. 3 [ILOs: A3,A16,B7,C1,C2,C9,C13,D2,D4] [6 Marks]
3-a Write a Dart program to find the most frequent number in a list?
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
Page 3 of 4
3-b Write a program to show the interface design of the following flutter application? Verify
your answer by drawing a widget tree of the interface.
Flutter Program: -
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
------------------------------------------------------------------- Imagine this as an image.
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
------------------------------------------------------------------- Flutter widget tree breakdown (Draw)
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
End of Exam
GOOD LUCK
Dr. Amr M. Nagy
Page 4 of 4