0% found this document useful (0 votes)
13 views3 pages

Dart Basic Program List

The document outlines a series of basic Dart programming exercises categorized into six levels. Level 1 focuses on fundamental operations like printing and basic arithmetic, while Level 2 introduces conditional statements. Levels 3 to 6 cover loops, lists, string manipulations, and basic object-oriented programming concepts in Dart.

Uploaded by

bullshrek01
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Dart Basic Program List

The document outlines a series of basic Dart programming exercises categorized into six levels. Level 1 focuses on fundamental operations like printing and basic arithmetic, while Level 2 introduces conditional statements. Levels 3 to 6 cover loops, lists, string manipulations, and basic object-oriented programming concepts in Dart.

Uploaded by

bullshrek01
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Level 1: Very Basic Dart Programs

1. Print Hello World

2. Print your name, ID, department

3. Declare and print different data types (int, double, String, bool)

4. Take two numbers and print their sum

5. Perform addition, subtraction, multiplication, division

6. Convert Celsius to Fahrenheit

7. Swap two numbers

8. Find square and cube of a number

9. Calculate area of circle

10. Convert minutes to hours and minutes

Level 2: If–Else Problems

11. Check whether a number is even or odd

12. Find the largest of two numbers

13. Find the largest of three numbers

14. Check whether a year is leap year

15. Check whether a number is positive, negative, or zero

16. Grade calculator (A, B, C, Fail)

17. Check whether a character is vowel or consonant

18. Check whether a number is divisible by 5 and 11

19. Check whether a number is prime

20. Check whether a number is palindrome

Level 3: Loop Problems (for / while)

21. Print numbers from 1 to 100

22. Print even numbers from 1 to 100

23. Print multiplication table of a number


24. Calculate factorial of a number

25. Sum of first N natural numbers

26. Reverse a number

27. Count digits in a number

28. Find sum of digits

29. Print Fibonacci series

30. Print pattern:

**

***

****

Level 4: List (Array) Problems

31. Create a List and print all elements

32. Find largest element in list

33. Find smallest element in list

34. Calculate sum and average of list

35. Count even and odd numbers

36. Reverse a list

37. Search an element in list

38. Sort list (ascending order)

39. Merge two lists

40. Remove duplicate elements

Level 5: String Problems

41. Print length of a string

42. Convert string to uppercase/lowercase

43. Reverse a string


44. Check string palindrome

45. Count vowels and consonants

46. Count words in a sentence

47. Remove spaces from string

48. Compare two strings

49. Replace a word in string

50. Check whether string contains a substring

Level 6: Function & OOP Basics in Dart

51. Create a function to calculate sum

52. Create a function to check prime number

53. Create a class Student

54. Create a class Rectangle with area method

55. Demonstrate constructor

56. Demonstrate named constructor

57. Demonstrate inheritance

58. Demonstrate method overriding

59. Demonstrate encapsulation

60. Create simple Bank Account class

You might also like