Monday, 9 October 2017

UGC Net Computer Science December 13 Paper 3 Page 5 Solved



40.  Pumping lemma for context-free languages states : Let L be an infinite context free language. Then there exists some positive integer m such that any w ∈ L with |w| ≥ m can be decomposed as
w = uv xy Z with |vxy| _________ and |vy| _________ such that 
Z ∈ L for all .z = 0, 1, 2, ....... .
(A) ≤ m, ≤ 1
 (B) ≤ m, ≥ 1
(C) ≥ m, ≤ 1
(D) ≥ m, ≥ 1

Saturday, 7 October 2017

C Language Model Question Set2


C Language

Name : ______________________                                                                                                        Time :________________
Part 1


Objective
Q 1. Which one of the following translate or convert high level language program line by line.
A) Translator  
 B)Compiler   
 C)Both  
D) None

Friday, 6 October 2017

Javascript Random Number


Math.random function is use to generate random number. It generates a long series of number less than one or zero. To get random number from a range you need to extract numbers as your requirement by round-off.



Following code demonstrate to generate number from 1 to 100.

<html>
<head>
     <title>Girfa Student Help : Random Number</title>
     <script>
          function getRandom()
          {
              alert(Math.random());

Thursday, 5 October 2017

Timer Java Script


Timer Java Script Banner

A timer like simulation can be creating using setTimeOut function which takes two arguments. code and timer interval in Millisecond. Code run after given time span and if you will call these function in recursive fashion then you can make a watch. 



Timer function Function 



<script>
          var s=0,m=0,h=0;
          function getTimer()
          {
              s++;
              if(s==5) //Minute complete
              {