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.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ 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

Instructions

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

Objective

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.

 

Note:

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

Deadline

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.

 

 

=====================================Ended=======================================

 

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

 

GOOD LUCK

 

 

 


+ 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
END

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.

RSS

Latest Activity

+!!! ❤️ Shadow Girl❤️!!! liked zohaib iftikhar's blog post !!!!SACH KAHN TO YEH ANWAN BURA LAGTA HAI!!!!*
6 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS501 Assignment 01 Fall 2020 Solution / Discussion Due Date: 30-11-2020 in the group CS501 Advance Computer Architecture
11 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS501 Assignment 01 Fall 2020 Solution / Discussion Due Date: 30-11-2020 in the group CS501 Advance Computer Architecture
12 minutes ago
+M.Tariq Malik liked +M.Tariq Malik's discussion CS501 Assignment 01 Fall 2020 Solution / Discussion Due Date: 30-11-2020
12 minutes ago
+M.Tariq Malik added a discussion to the group CS501 Advance Computer Architecture
13 minutes ago
+ " J i y a " ♥ posted photos
21 minutes ago
Profile IconAshraf Butt, sara khan, jawad ali and 14 more joined Virtual University of Pakistan
31 minutes ago
Mani Siddiqui Ex replied to +M.Tariq Malik's discussion CS508 Assignment 01 Fall 2020 Solution / Discussion in the group CS508 Modern Programming Languages
33 minutes ago
+!!! ❤️ Shadow Girl❤️!!! replied to jawad's discussion Tum Se pahle woh Jo shaks takat nashin tha || Habib jalib poetry|| Urdu poetry
34 minutes ago
+!!! ❤️ Shadow Girl❤️!!! liked jawad's discussion Tum Se pahle woh Jo shaks takat nashin tha || Habib jalib poetry|| Urdu poetry
34 minutes ago
مخلص posted a discussion
36 minutes ago
+!!! ❤️ Shadow Girl❤️!!! liked ++!!Zuni Khan(Am Cyco)'s discussion تم سمندر کی بات کرتے ہو...لوگ آنکھوں میں ڈوب جاتے ہیں
44 minutes ago

Looking For Something? Search Here

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

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

.