Git Questions
Git Questions
1. What is Git?
a) A programming language
b) A version control system
c) A text editor
d) An operating system
10. How can you undo the last commit (but keep the changes) in Git?
a) git undo
b) git revert
c) git reset
d) git remove
12. Which command is used to fetch changes from a remote repository in Git?
a) git fetch
b) git pull
c) git update
d) git clone
**Answer: b) To merge changes from a remote repository into the current branch**
18. How can you revert a commit that has been pushed to a remote repository?
a) git revert
b) git reset
c) git undo
d) git remove
3. Which file is used to define app metadata and dependencies in a Flutter project?
a) pubspec.yaml
b) main.dart
c) config.xml
d) app.json
Answer: a) pubspec.yaml
Answer: c) Column
9. How do you apply custom styles (e.g., fonts, colors) to widgets in Flutter?
a) Using the style property
b) Using the applyStyle() method
c) Using the TextTheme class
d) Using the color property
**Answer: d) Text**
**Answer: c) RaisedButton**
13. Which widget is used to create a layout with rows and columns in Flutter?
a) GridLayout
b) LinearLayout
c) ColumnLayout
d) Row and Column
**Answer: d) Image**
**Answer: c) ListView**
17. What is the purpose of the `TextField` widget in Flutter?
a) To display text only
b) To create a text input field
c) To display a clickable link
d) To display images
**Answer: d) Card**
**Answer: b) CircularProgressIndicator**
21. What is the purpose of the `DropdownButton` widget in Flutter?
a) To display a list of options as a dropdown menu
b) To create clickable buttons
c) To display images
d) To show a progress indicator
**Answer: d) Slider**
24. Which widget is used to display a date and time picker in Flutter?
a) DateTimePicker
b) DatePicker
c) TimePicker
d) DateTimeWidget
**Answer: a) DateTimePicker**
25. What is the primary purpose of the `SnackBar` widget in Flutter?
a) To display images
b) To show a temporary message at the bottom of the screen
c) To create a clickable button
d) To show a progress indicator
**Answer: d) TabBar**
**Answer: d) RadioListTile**
29. What is the purpose of the `FloatingActionButton` widget in Flutter?
a) To display images
b) To create a card-like interface
c) To show a progress indicator
d) To create a circular action button
**Answer: a) BottomNavigationBar**
**Answer: d) SingleChildScrollView**
33. What is the primary purpose of the `PopupMenuButton` widget in Flutter?
a) To display images
b) To create a dropdown menu triggered by a button
c) To create a card-like interface
d) To show a progress indicator
**Answer: d) CircleAvatar**
36. Which widget is used to create a search input field with an associated button?
a) SearchField
b) SearchBar
c) SearchWidget
d) TextField with IconButton
**Answer: c) CircularProgressIndicator**
40. Which widget is used to create a grid of items with a fixed number of columns?
a) GridView
b) GridList
c) GridLayout
d) ColumnGrid
**Answer: a) GridView**