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

Looking For Something at Site? Search Below

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

+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH202 Assignment 01 Fall 2020 Solution / Discussion Due Date: 07-12-2020 in the group MTH202 Discrete Mathematics
56 seconds ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH643 Introduction to MATLAB Assignment 01 Fall 2020 Solution / Discussion Due Date: 07-12-2020 in the group MTH643 Introduction to MATLAB
2 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH643 Introduction to MATLAB Assignment 01 Fall 2020 Solution / Discussion Due Date: 07-12-2020 in the group MTH643 Introduction to MATLAB
2 minutes ago
+M.Tariq Malik liked +M.Tariq Malik's discussion MTH643 Introduction to MATLAB Assignment 01 Fall 2020 Solution / Discussion Due Date: 07-12-2020
2 minutes ago
+M.Tariq Malik added a discussion to the group MTH643 Introduction to MATLAB
3 minutes ago
lishay updated their profile
7 minutes ago
+++U updated their profile
10 minutes ago
Profile Iconlishay, Natasha shahdeen, Ali Shan and 17 more joined Virtual University of Pakistan
10 minutes ago
+محمد فرقان جالب replied to ++!!Zuni Khan(Am Cyco)'s discussion cs504 assignment No .1 fall 2020 in the group CS504 Software Engineering - I
10 minutes ago
Miss. Churhail replied to Miss. Churhail's discussion ENG506 GDB SOLUTION ????
21 minutes ago
faraz replied to +M.Tariq Malik's discussion STA630 Online Quiz No 01 Fall 2020 Solution / Discussion in the group STA630 Research Methods
31 minutes ago
faraz liked +M.Tariq Malik's discussion STA630 Online Quiz No 01 Fall 2020 Solution / Discussion
35 minutes ago
Honey Bun updated their profile
35 minutes ago
+M.Tariq Malik replied to Rose's discussion CS608 Assignment No 01 Fall 2020 Solution & Discussion Due Date: 28-11-2020 in the group CS608 Software Verification and Validation
46 minutes ago
+M.Tariq Malik replied to Rose's discussion CS608 Assignment No 01 Fall 2020 Solution & Discussion Due Date: 28-11-2020 in the group CS608 Software Verification and Validation
47 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS301 Assignment No 01 Fall 2020 Solution & Discussion Due Date: 26-11-2020 in the group CS301 Data Structures
52 minutes ago

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

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

.