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

cs508 Assignment Solution

Uploaded by

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

cs508 Assignment Solution

Uploaded by

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

CS508 – Modern Programming Languages

Total Marks: 15
Assignment No. 01
Semester: Fall 2024 Due Date: 8-11-2024

Vu ID: BC20041678
Muhammad Umar

Question No. 1: [10 Marks]


Write a program in LISP to print your Student ID (e.g. BC12345) and your name.
Ans:
(defun print-student-info ()
(let ((student-id "bc20041678")
(student-name "Muhammad Umar"))
(format t "Student ID: ~a~%Name: ~a~%" student-id student-name)))

(print-student-info)

Question No. 2: [5 Marks]

Can indentation issues be solved using the Ada programming language? Answer in "yes" or "no." If
answer is “yes” then write the keywords (at least 2) that can clearly define the structure, reducing the
risk of errors due to indentation.
Ans

Yes.
The keywords that can clearly define the structure and reduce the risk of errors due to indentation in Ada are
"begin" and "end." These are the only keywords.

Good Luck!

You might also like