We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Assignment No. 01
SEMESTER Spring 2016
CS508- Modern Programming Languages


Total Marks: 20


Due Date: 18/05/2016


Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit  if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file corrupt.
  • The assignment is full or partially copied from (other student or ditto copy from handouts or internet).
  • Student ID is not mentioned in the assignment File or name of file is other than student ID.
  • The assignment is not submitted in .doc or .docx format.

Uploading instructions

Your submission must include:


  • Assignment should be in .doc or .docx format.
  • Save your assignment with your ID (e.g. bx020200786.doc).

Assignment submission through email is NOT acceptable


The objective of this assignment is

  • To give knowledge and understanding of syntax and semantic of Programming languages.
  • To be able to understand the basics of SNOBOL programming language.



Your answer must follow the below given specifications.

  •  Font style: “Times New Roman”
  •  Font color: “Black”
  •  Font size: “12”
  •  Bold for heading only.
  •  Font in Italic is not allowed at all.
  •  No formatting or bullets are allowed to use.
  • Your answer should be precise and to the point, avoid irrelevant detail.


Lectures Covered: This assignment covers Lecture # 01 - 12


Your assignment must be uploaded/submitted at or before 18/05/2016.






Question: 01           10( 2+2+2+2+2) marks     


The study of programming languages can be divided into the assessment of their syntax and semantics while different constructs are the building blocks of these languages.

You are required to differentiate between syntax and semantics in your own words and write the syntax and semantics for the following constructs.

  1. While Loop
  2. If statement
  3. GOTO statement
  4. Array


Note: Do not specific to any language; you may use any language for syntax (or use general syntax).



Question: 02           10 (05 + 05) marks


SNOBOL language is mainly designed for string manipulation and handling, therefore, it has rich string manipulation mechanism and operators.

  1. Write a program in SNOBOL which define variables for street number, City name and District name. Use string concatenation operator which combine the values of all these variables in a new variable Address and print on the console.
  2. Write a program in SNOBOL which define a variable and store the string “I am a student of MCS”. Use pattern matching operator and GOTO statement to print “Pattern found” if the pattern matched otherwise “Pattern not found” on the console.


Note:  You need to write the code in an MS word file, furthermore, you do not need to compile programs, however they should be correct syntactically.





For any query about the assignment, contact at CS508@vu.edu.pk






+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Views: 2562

Replies to This Discussion

Lets start Discussion???

Is krna kia ha

Snobole me 2 programs banane hen jin me GOTO aur loops wagera use karne hen aur condition true hojane per print karwana h as simple

plz koi solution daden

solution plz?

2 queston

Street number = '12'
City name = 'Clifton Uc-10'
District name = 'Saddar Town'
Address = Street number City name District name
OUTPUT = Address

console aur snobol me difference btaen aur visual studio per ye programs ban skte hen ya kahin aur banane hen

lms per sari information di hoi ha

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

koi assignment solution idea upload kar dy.


Latest Activity

Saqib replied to +M.Tariq Malik's discussion CS508 Assignment 01 Fall 2020 Solution / Discussion in the group CS508 Modern Programming Languages
16 minutes ago
Saqib joined +M.Tariq Malik's group
16 minutes ago
Musawar Ahmed replied to +M.Tariq Malik's discussion CS603 Assignment 01 Fall 2020 Solution / Discussion Due Date: 26-11-2020 in the group CS603 Software Architecture and Design
24 minutes ago
Musawar Ahmed joined +M.Tariq Malik's group
24 minutes ago
Pooja kumari replied to +M.Tariq Malik's discussion ENG501 Online Quiz No 01 Fall 2020 Solution / Discussion in the group ENG501 History of English Language
44 minutes ago
+!!! ❤️ Shadow Girl❤️!!! liked ++!!Zuni Khan(Am Cyco)'s discussion Kitna Mushkil Hai Aziyat Ye Gawara Karna
1 hour ago
UZMA replied to +M.Tariq Malik's discussion Don't Worry About Your Assignments, GDBs & Online Quizzes
2 hours ago
Profile IconFatima and MUHAMMAD NAJEEB joined +M.Tariq Malik's group
2 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT601 GDB No 01 Fall 2020 Solution / Discussion Last Date: 27-11-2020 in the group MGT601 SME Management
3 hours ago
+ " Şinger " and + "ραℓωαѕнα" are now friends
3 hours ago
+ " Şinger " replied to Pooja kumari's discussion quiz discussion
3 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion EDU654 Assignment 01 Fall 2020 Solution / Discussion in the group EDU654 Addressing problems of learning through technology and pedagogy
3 hours ago

Looking For Something? Search Here

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service