logo

Crowdly

Browser

Add to Chrome

Mobile Device Programming (CS326/CSE5333/CS326n)

Looking for Mobile Device Programming (CS326/CSE5333/CS326n) test answers and solutions? Browse our comprehensive collection of verified answers for Mobile Device Programming (CS326/CSE5333/CS326n) at e-learning.msa.edu.eg.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Design and implement a  UI interface that displays a vertical list of text items in Flutter with each item having padding of 8.0 and a different background color? Provide the code and explain each widget used.

View this question

Explain the following code, analyzing each line for its functionality.

void main() {

  List<String> fruits = ['Apple', 'Banana', 'Cherry'];

  for (var fruit in fruits) {

    print(fruit);

  }

}

View this question

Analyze the following  code snippet and determine its output. Explain each line.

void main() {

  List<int> values = [5, 10, 15, 20];

  var doubledValues = values.map((val) {return val * 2;});

  print('Doubled Values: ${doubledValues.toList()}');

}

View this question

Explain the role of MaterialApp and Scaffold in Flutter. Write a sample app layout using these.

View this question

Explain the role of the setState method in a Flutter StatefulWidget. Provide a code example where setState is used to change the state of a variable.

View this question

Write a  program that checks if a number is even or odd and prints the result.

View this question

Write a Flutter program to take a user’s age as input in a TextField and display a message when the user presses "Check" if they are an adult or not (age > 21).

View this question

Evaluate the output of the following program and explain why it produces this output.

void main() {

  String str1 = "";

  String str2 = "Programming";

  print('Concatenated: ${str1 + ' ' + str2}');

  print('Length of str1: ${str1.length}');

  print('str1 contains "ar": ${str1.contains('ar')}');

}

View this question

Given the following  list, write code to find and print the maximum number in the list.

void main() {

  List<int> numbers = [12, 3, 45, 7, 19];

  int maxNumber = numbers.reduce((a, b) => a > b ? a : b);

  print('Maximum number: $maxNumber');

}

View this question
In Flutter, which widget determines the complete app environment including theme?
View this question

Want instant access to all verified answers on e-learning.msa.edu.eg?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome