[go: up one dir, main page]

0% found this document useful (0 votes)
88 views1 page

Dart Programs

The document contains a list of 25 practice questions for writing Dart programs. These exercises cover various programming concepts such as conditionals, loops, user input, data structures, and basic arithmetic operations. Each question aims to enhance the understanding and application of Dart programming language features.

Uploaded by

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

Dart Programs

The document contains a list of 25 practice questions for writing Dart programs. These exercises cover various programming concepts such as conditionals, loops, user input, data structures, and basic arithmetic operations. Each question aims to enhance the understanding and application of Dart programming language features.

Uploaded by

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

dart programs

Question For Practice


1.Write a dart program to check if the number is odd or even.
2.Write a dart program to check whether a character is a vowel or consonant.
3.Write a dart program to check whether a number is positive, negative, or zero.
4.Write a dart program to print your name 100 times.
5.Write a dart program to calculate the sum of natural numbers.
6.Write a dart program to generate multiplication tables of 5.
7.Write a dart program to generate multiplication tables of 1-9.
8.Write a dart program to create a simple calculator that performs addition,
subtraction, multiplication, and division.
9.Write a dart program to print 1 to 100 but not 41.
10.Write a program to print your name in Dart.
11.Write a program to print Hello I am “John Doe” and Hello I’am “John Doe” with
single and double quotes.
12.Declare constant type of int set value 7.
13.Write a program in Dart that finds simple interest. Formula= (p * t * r) / 100
14.Write a program to print a square of a number using user input.
15.Write a program to print full name of a from first name and last name using user
input.
16.Write a program to find quotient and remainder of two integers.
17.Write a program to swap two numbers.
18.Write a program in Dart to remove all whitespaces from String.
19.Write a Dart program to convert String to int.
20.Create a list of names and print all names using list.
21.Create a set of fruits and print all fruits using loop.
22.Create a program thats reads list of expenses amount using user input and print
total.
23.Create an empty list of type string called days. Use the add method to add names
of 7 days and print all days.
Add your 7 friend names to the list. Use where to find a name that starts with
alphabet a.
24.Create a map with name, address, age, country keys and store values to it.
Update country name to other country and print all keys and values.
25.Create a map with name, phone keys and store some values to it. Use where to
find all keys that have length 4.

You might also like