Dart MCQ Questions & Answers
Dart MCQs : This section focuses on "Basics" of Dart. These Multiple Choice Questions (MCQ) should be practiced to improve the Dart skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. Dart is an?
A. open-source
B. general-purpose
C. programming language
D. All of the above
View Answer
Ans : D
Explanation: Dart is an open-source general-purpose programming language.
2. Dart is originally developed by?
A. Microsoft
B. Google
C. IBM
D. Facebook
View Answer
Ans : B
Explanation: It is originally developed by Google and later approved as a standard by ECMA. Dart is a new programming language meant for the server as well as the browser.
3. Dart has multiple interfaces.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Dart has multiple interfaces.
4. The _______ function is a predefined method in Dart.
A. declare()
B. list()
C. main()
D. return()
View Answer
Ans : C
Explanation: The main() function is a predefined method in Dart. This method acts as the entry point to the application. A Dart script needs the main() method for execution. print() is a predefined function that prints the specified string or value to the standard output.
5. --version command is used to ?
A. Enables assertions
B. Displays VM version information
C. Specifies the path
D. Specifies where to find imported libraries
View Answer
Ans : B
Explanation: Displays VM version information
6. Which of the following command specifies where to find imported libraries.
A. -c
B. -p
C. -h
D. All of the above
View Answer
Ans : B
Explanation: It specifies where to find imported libraries. This option cannot be used with --packages.
7. Dart programs run in _______ modes.
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : A
Explanation: Dart programs run in two modes namely : Checked Mode and Production Mode (Default)
8. Dart is an Object-Oriented language.
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, Dart is an Object-Oriented language. Object Orientation is a software development paradigm that follows real-world modelling. Object Orientation considers a program as a collection of objects that communicate with each other via mechanism called methods.
9. An ________ is a real-time representation of any entity.
A. class
B. method
C. object
D. None of the above
View Answer
Ans : C
Explanation: Object : An object is a real-time representation of any entity.
10. As per Grady Brooch, every object must have ________ features.
A. 0
B. 1
C. 2
D. 3
View Answer
Ans : D
Explanation: As per Grady Brooch, every object must have three features : State, Behavior and Identity.
Discussion
Ayaw Abdul Ganiu
thanks for the questions