Professional Documents
Culture Documents
Faculty of Computing
Artificial Intelligence Lab
Marks 30 Time allowed: 180mins Dated: 16-04-20201
Q1: Initialize the variable a and b and print the output of the following programmed.
Q2: Write a program which iterates from 1 to 100. For multiples of three print
"Multiple of three" instead of the number and for the multiples of five print
"Multiply of 5". For numbers which are multiples of both three and five print
"Wow, it’s amazing" and print the number for the default case.
Q4: Perform the depth first Search for the following graph and find the
possible paths for the graph. Start and destination points are given against
each student.
Abubakkar, Muhammad Start Point Destination Point
Ahmad, Uzair 0 4
Ahsan Kamal, Muhammad
Good luck