Wednesday 8 November 2017
Dynamic Table Java Script
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Sunday 5 November 2017
C language Paper Solution July 2011
NIELIT O Level C language Paper Solution July 2011
1. Objective
1.1 : C
1.2 : B
1.3 : D
1.4 : B
1.5 : B
1.6 : A
1.7 : A
1.8 : B
1.6 : A
1.7 : A
1.8 : B
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Saturday 4 November 2017
2D character array sorting
Q : Write a ‘C’ program to read an array of names and to sort them in alphabetical order.
Solution :
/*==============================
Girfa Student Help
Program : Sort 2D Array
================================*/
#include<stdio.h>
#include<conio.h>
#define MAX 3
void main()
{
char ar[MAX][20],ch[20];
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 2 November 2017
NIELIT O Level C Language Solve Paper
July-12
Answer Key
1. Objective
1.1 : B
1.2 : A
1.3 : A
1.4 : C
1.5 : A
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 31 October 2017
Nielit O Level C Language Practice Paper Set 3
NIELIT O Level Sample Paper
C Language
C Language
Note : Each Question
carry one marks : Time
: 45 Min
Student Name :
________________________
Q 1: which
of the following Operator is used to transfer value to another variable.
A) =
A) =
B) ==
C) &
D) int
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 24 October 2017
UGC Net Computer Science December-12 Page 7 Solved
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
UGC Net Computer Science December-12 Page 6 Solved
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
UGC Net Computer Science December-12 Page 5 Solved
UGC Net Computer Science December-12 Page 5 Solved
41. Consider a system having m resources of the same type. These resources are shared by 3 processes A, B and C which have peak demands of 3, 4 and 6 respectively. For what value of m
deadlock will not occur ?
(A) 7
(B) 9
(C) 10
(D) 13
42. The grammar ‘G1’ S -> OSO| ISI | 0|1|→ and the grammar ‘G2’ is S → as |asb| X, X → Xa | a.
Which is the correct statement ?
(A) G1 is ambiguous, G2 is unambiguous
(B) G1 is unambiguous, G2 is ambiguous
(C) Both G1 and G2 are ambiguous
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
NIELIT O Level Paper Solution July-2012 C Language
NIELIT O Level Paper Solution July-2012 C Language
1. Objective
1.1 : C
1.2 : C
1.3 : B
1.4 : D
1.5 : A
1.6 : B
1.7 : C
1.8 : B
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Sunday 22 October 2017
Even Odd Separation File Creation
Q : Write a ‘C’ Program to create a file of numbers and copy odd number into second file and even number into third file.
Solution :
#include<stdio.h>
#include<conio.h>
void main()
{
FILE *source,*even_file,*odd_file;
char ch;
clrscr();
source=fopen("test.txt","r");
even_file=fopen("even.txt","w");
odd_file=fopen("o
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Friday 20 October 2017
Function
A function is a combination of more than one statement which
execute together one by one to achieved some specific task. Function code run
while calling. There are many variety of functions some takes arguments and
return something or takes argument and doesn’t return and more.
C language is known as building block of function all the
things of programming is achieved through function. Program gets start running
with main function.
Types
No argument, No return
This type of function neither returns anything nor takes arguments. When a function doesn’t have something to return then void is used. Void indicates no return.
Example
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Constructor PHP
Constructor used in object oriented language for allocate
space while creating object. A constructor also helps initialize a variable
while declaring.
Every object oriented language built in support for
programming. PHP is also a server side script and object oriented language. So
should know how can you use constructor is elaborate in following example.
<?php
class Foo
{
private $roll, $name, $city;
function __construct($roll, $name, $city)
{
$this->roll = $roll;
class Foo
{
private $roll, $name, $city;
function __construct($roll, $name, $city)
{
$this->roll = $roll;
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 19 October 2017
Compile time vs Run time error
Compile time
1. The program need
not satisfy any invariants. In fact, it needn't be a well-formed program at
all. You could feed this HTML to the compiler and watch it barf...
2. What can go wrong
at compile time:
·
Syntax errors
·
Type checking errors
·
(Rarely) compiler crashes
3. If the compiler
succeeds, what do we know?
·
The program was well formed---a meaningful program in whatever
language.
·
It's possible to start running the program. (The program might
fail immediately, but at least we can try.)
4.
What are the inputs and outputs?
·
Input was the program being compiled, plus any header files,
interfaces, libraries, or other voodoo that it needed to import in order to get compiled.
·
Output is hopefully assembly code or relocatable object code or
even an executable program. Or if something goes wrong, output is a bunch of
error messages.
Run time
1. We know nothing
about the program's invariants---they are whatever the programmer put in.
Run-time invariants are rarely enforced by the compiler alone; it needs help
from the programmer.
2.
What can go wrong are run-time errors:
·
Division by zero
·
Dereferencing a null pointer
·
Running out of memory
Also there can be errors that are detected by the program
itself:
·
Trying to open a file that isn't there
·
Trying find a web page and discovering that an alleged URL is
not well formed
3. If run-time
succeeds, the program finishes (or keeps going) without crashing.
4.
Inputs and outputs are entirely up to the programmer. Files,
windows on the screen, network packets, jobs sent to the printer, you name it.
If the program launches missiles, that's an output, and it happens only at run
time :-)
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Wednesday 18 October 2017
Array vs Link List
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 16 October 2017
Matrix Diagonal Sum
Q : Write a ‘C’ program to find out sum of diagonal elements of a matrix using ‘C’.
Solution :
#include<stdio.h>
#include<conio.h>
#define MAX 3
void main()
{
int ar[MAX][MAX],i,j,r,c,sum=0;
clrscr();
for(r=0;r<MAX;r++)
{
for(c=0;c<MAX;c++)
{
printf("Enter
Number>> ");
scanf("%d",&ar[r][c]);
}
}
printf("\n\tOutput\n\n");
for(r=0;r<MAX;
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Saturday 14 October 2017
LATITUDE LONGITUDE Finder
<!DOCTYPE html>
<html>
<head>
<title>Girfa</title>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>
</head>
<body>
<input id="searchInput" class="input-controls" type="text" placeholder="Enter
a location">
<div class="map" id="map" style="width: 100%; height: 300px;"></div>
<div class="form_area">
<input type="text" name="location" id="location">
<input type="text" name="lat" id="lat">
<input type="text" name="lng" id="lng">
</div>
<script>
/* script */
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 9 October 2017
UGC Net Computer Science Paper 3 Dec 13 Page 7
61. Which of the following is not true with respect to a trackball and/or spaceball ?
I. A trackball is a two dimensional positioning device while as a spaceball provides six degrees of freedom.
II. Unlike the trackball a spaceball does not actually move.
III. A trackball is a three dimensional positioning device while as a spaceball provides six degrees of freedom.
(A) I & II
(B) II & III
(C) II only
(D) III only
62. Which of the following statement(s) is (are) true ?
I. Two successive translations are additive.
II. Two successive rotations are additive.
I. A trackball is a two dimensional positioning device while as a spaceball provides six degrees of freedom.
II. Unlike the trackball a spaceball does not actually move.
III. A trackball is a three dimensional positioning device while as a spaceball provides six degrees of freedom.
(A) I & II
(B) II & III
(C) II only
(D) III only
62. Which of the following statement(s) is (are) true ?
I. Two successive translations are additive.
II. Two successive rotations are additive.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
UGC Net Computer Science Paper 3 Dec 13 Solved Page 6
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
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
Z ∈ L for all .z = 0, 1, 2, ....... .(A) ≤ m, ≤ 1
(B) ≤ m, ≥ 1
(C) ≥ m, ≤ 1
(D) ≥ m, ≥ 1
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
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
A) Translator
B)Compiler
C)Both
D) None
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
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());
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 5 October 2017
Timer Java Script
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
{
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 3 October 2017
UGC Net Computer Science December 13 Paper 3 Page 4 Solved
31. Consider the formula in image
processing
CR is called as compression ratio n1 and n2 denotes the number of information carrying units in two
datasets that represent the same information. In this situation RD is called as relative _________ of thefirst data set.
(A) Data Compression
(B) Data Redundancy
(C) Data Relation
(D) Data Representation
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 2 October 2017
Linear Search VS Binary Search
A linear search works by looking at each element in a list
of data until it either finds the target or reaches the end. This results in
O(n) performance on a given list. A binary search comes with the prerequisite
that the data must be sorted. We can leverage this information to decrease the
number of items we need to look at to find our target. We know that if we look
at a random item in the data (let's say the middle item) and that item is
greater than our target, then all items to the right of that item will also be
greater than our target. This means that we only need to look at the left part
of the data. Basically, each time we search for the target and miss, we can
eliminate half of the remaining items. This gives us a nice O(log n) time
complexity.
Just remember that sorting data, even with the most
efficient algorithm, will always be slower than a linear search (the fastest
sorting algorithms are O(n * log n)). So you should never sort data just to
perform a single binary search later on. But if you will be performing many
searches (say at least O(log n) searches), it may be worthwhile to sort the
data so that you can perform binary searches. You might also consider other
data structures such as a hash table in such situations.
Image Source : https://en.wikipedia.org/wiki/Binary_search_algorithm
Example : Array is best example of linear search and tree
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
CSS 360 Rotation
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Subscribe to:
Posts (Atom)