Similar Collections


This study list contains the basic programs of Swift programming language like printing text, reading values, programs based on the basic operators, conditional-bases programs, etc.

Practice these Swift basic programs to learn the basic programming concepts of Swift, these programs contain the solved code, outputs, and the detailed explanation of the statements, functions used in the Swift basic programs.

questions

Title
Swift program to print \'Hello World\'
Swift program to create different types of variables
Swift program to create variables with specifying data type
Swift program to demonstrate the escape sequences
Swift program to demonstrate the \'\\()\' to embed the value of the variable within the string
Swift program to create a constant
Swift program to create a constant with binary value and print it in decimal number
Swift program to create a constant with hexadecimal value and print it in decimal number
Swift program to create an alias of basic types
Swift program to print the line number of source code using the #line directive
Swift program to print the size of variables
Swift program to read an integer number from the user
Swift program to read a float number from the user
Swift program to demonstrate the Int() function with Invalid value
Swift program to print the character corresponding ASCII value
Swift program to demonstrate the arithmetic operators
Swift program to demonstrate the assignment operators
Swift program to assign multiple variables in a single statement
Swift program to demonstrate the unary minus \'-\' and unary plus \'+\' operators
Swift program to demonstrate the comparison operators
total questions: 36

Questions

36

Views

370

Best Answers

299

Points

5