Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


Question # 1                                                                                                                              Marks 5     

 

Identify and correct the errors in the following SNOBOL code lines. If the code is correct just mention that code is correct.

 

  1. var  = 28 * 13+2
  2. This.is.null.string = NULL
  3. MONTH = ‘MAY’
  4. RE-PLACE(STRING, ST1, ST2)
  5. SEAT   = ROWNO + 6 /2

Question # 2                                                                                                                              Marks 10     

 

I) Write down a SNOBOL Program that will display your Name and VU Student ID  [4 Marks]

 

II) Go through the tutorial given at http://vulms.vu.edu.pk/Courses/CS508/Downloads/How%20To%20Run%20A%2... and run your code written in Question # 2 Part I. Then send the screen shot of the output. As shown below [6 Marks]

To produce the above screen shot save code which you have written in question file in a text file, save it as A2.NSO, and then you will run it as mentioned in the tutorial in above link and take its screenshot. After that paste that screen shot in the assignment solution file.

 

Note:-

You will send your solution in word file No need to send .SNO file.

Views: 2715

Attachments:

Replies to This Discussion

Qudsia plz help me 

nahi ho raha kuch b aisa, sub kuch rakh lia ha, thak gya ho kr kr k

frnds sb ne file download kr li desktop par or usme apna name and id likh liya k nai...............tell me fast ab me sb ko to screen shot send nai kr skti na its very easy sb log kren jaldi se me age btaun apko ass...........

frnds 2 minute lgen ge ass bnane me so plz don't give up....sb nepehli file kr li ab is file ko desktop par extract kren....

Attachments:

 Qudsia r u there plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz help me i have a teamviwer also plz screen shot lay do i don't know how i did....plz hep me

Question 1

Identify and correct the errors in the following SNOBOL code lines. If the code is correct just mention that code is correct.

  1. var  = 28 * 13+2
  2. This.is.null.string = NULL
  3. MONTH = ‘MAY’
  4. RE-PLACE(STRING, ST1, ST2)
  5. SEAT   = ROWNO + 6 /2

 

Answer

1. var  = 28 * 13 + 2

2. Second code is correct

3. Third code is correct

4. REPLACE(STRING, ST1, ST2)

5. SEAT = ROW NO + 6 / 2

Question 2

1.Write down a SNOBOL Program that will display your Name and VU Student ID

Answer

            OUTPUT = 'NAME: NAINA'

            OUTPUT = 'ID:   BC12345678'

END

2.Run your code written in Question # 2 Part I. Then send the screen shot of the output.

Answer

Complete_solution_CS508_1

Attachments:

frnds jin students ko code run krne me difficulty ho rai hai wo ye instructions follow kren.......

Open the command prompt 

Enter the command 

D: Press Enter 

Then Etere command CD Users\vu\Desktop\New folder  Press Enter 

(mean the path where u have placed the snobol4.exe file)

Now run the compiler.

Question 1

Identify and correct the errors in the following SNOBOL code lines. If the code is correct just mention that code is correct.

  1. var  = 28 * 13+2
  2. This.is.null.string = NULL
  3. MONTH = ‘MAY’
  4. RE-PLACE(STRING, ST1, ST2)
  5. SEAT  = ROWNO + 6 /2

 

Answer

1. var  = 28 * 13 + 2

2. Second code is correct

3. Third code is correct

4. REPLACE(STRING, ST1, ST2)

5. SEAT = ROW NO + 6 / 2

Question 2

1.Write down a SNOBOL Program that will display your Name and VU Student ID

Answer

            OUTPUT = 'NAME: FAISAL'

            OUTPUT = 'ID:   BC12345678'

END

2.Run your code written in Question # 2 Part I. Then send the screen shot of the output.

Answer

frnds ye output hai

file ko desktop par rkh kr ye steps follow kren

cd desktop    press enter

snobol4        press enter

A2 /q       press enter

out put show ho jaye gi uska screenshot le kr word me paste kren....jaldi........fast guyssssssssss

Desktop

Attachments:

RSS

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

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