Questions for Practice 1

Create Free Backend With Appwrite

Basic Dart Practice Questions

  1. Write a program to print your name in Dart.
  2. Write a program to print Hello I am “John Doe” and Hello I’am “John Doe” with single and double quotes.
  3. Declare constant type of int set value 7.
  4. Write a program in Dart that finds simple interest. Formula= (p * t * r) / 100
  5. Write a program to print a square of a number using user input.
  6. Write a program to print full name of a from first name and last name using user input.
  7. Write a program to find quotient and remainder of two integers.
  8. Write a program to swap two numbers.
  9. Write a program in Dart to remove all whitespaces from String.
  10. Write a Dart program to convert String to int.
  11. Suppose, you often go to restaurant with friends and you have to split amount of bill. Write a program to calculate split amount of bill. Formula= (total bill amount) / number of people
  12. Suppose, your distance to office from home is 25 km and you travel 40 km per hour. Write a program to calculate time taken to reach office in minutes. Formula= (distance) / (speed)