Sunday 10 September 2017

Explain the working of shorthand assignment operators, pre and post increment operator and the ternary operator.

Q : Explain the working of shorthand assignment operators, pre and post increment operator and the ternary operator.

Solution : 

Assignment Operator

Prefix operator

Add or subtract a variable value by one. There are two types of prefix operator increment and decrement. If use in any expression or equation then first increment or decrement variable then solve related equitation with new value of related variable.

int a,b=10;

Assignment Operator


Question: What is the name = operator in mathematics?
Answer: is equal to

Write In C language terminology this operator is known as Assignment operator which is use to assign right hand side value into left hand size variable with overwrite mode. An assignment operator has following attributes.
  • Place right hand side data into left hand side variable.

Saturday 9 September 2017

Vowel count separately Program

Q : Write a program to calculate number of vowels (a,e,i,o,u) separately in an entered string.?

Solution :


#include<stdio.h>
void main()
{
     int a,e,i,o,u,index;
     char str[50];
     a=e=i=o=u=0;
     printf("Enter string>> ");
     gets(str);
     for(index=0;str[index]!='\0';index++)
     {
          switch(str[index

Thursday 7 September 2017

CSS Media Query

<html>
<head>
<title>@Media Query Girfa</title>
<style>
.container h1
{
     margin-top:15%;
     font-size:4em;
      line-height: 1.2em;
    text-transform: uppercase;
    font-weight: bold;

Wednesday 6 September 2017

Identifier C Language

Identifier is user defined name given to function, variable, structure, union, array etc. followings are rules to name an identifier.
  • Name must be start with alphabet or underscores
  • An identifier may have numbers but not used as first c

Saturday 2 September 2017

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE July- 2013 Answer

 M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE July- 2013, Answer

1. Multiple Choice

1.1 : D
Explanation :  Smallest individual unit of program is known token. Eg. (,},1,A,;

1.2 : A

Friday 1 September 2017

Jquery to PDF Generator


Jquery to PDF Generator

PDF Generator


Steps to make PDF document

  • Add jspdf.min.js
  • Make a divison and put all your HTML content
  • Make a control on call GetPDF function on click event
  • Copy Paste GetPDF Code into your script section


HTML


<div id="content">
      
        <h3>Steps to make PDF document</h3>
        <ul>

Thursday 31 August 2017

Preprocessor Directive

A pre-processor directory is a set of text which is start with # symbol. When C source code compile then process of compilation get start from pre-processor directory. It means all pre-processor directories compile before actual compilation.

Preprocessor Directive C Language

Example
  • Header fil

Computer Fundamental MCQ CCC

CCC Fundamental MCQ/True-False Question with Answer

Multiple Choice

1. How many types of memory used in computer?
A) 1
B)  2
C) 3
D) 4

2.  Which Type of memory got outdated?
A) PROM
B)EEPROM
C)CD

Wednesday 23 August 2017

Command Line Argument

C language is known as a language of building block of function. It means all the things achieved by the language using function.

A function is a set of some valid statements of language. Which achieved some specific task? You need to know some information about function before using it.
  • Function name
  • Return type

Tuesday 22 August 2017

Print Some Character from a File

Q : Write a ‘C’ program to print only first 12 characters including blank space from file test.txt.
Solution :

#include<stdio.h>
#include<conio.h>

void main()
{
     FILE *pt;
     int i;
     char ch;
     pt=fopen("test.txt","r");
     if(pt==NULL)

Structure size without sizeof operator

Q : Write a ‘C’ program to find size of structure without using sizeof operator.

Solution :


#include<stdio.h>
typedef struct stu
{
     int roll;
     char name[20];

Monday 21 August 2017

Write A Line to File

Q: Write a ‘C’ program to write a line of string at a text file.

Solution : 


#include<stdio.h>
void main()
{
     FILE *pt;
     char ar[100];
     int i;
     printf("Enter the Text>> ");
     gets(ar);
     pt=fopen("test.txt","w");
     if(pt==NULL)
          puts("Unable to open file");
     else
     {
          for(i=0;ar[i]!='\0';i++)
               putc(ar[i],pt);
     }
     printf("\nData created successfully");
     fclose(pt);
    
}

Saturday 19 August 2017

Sorting C Language Keyword Program

Q : Write a ‘C’ program to list of keywords which must be sorted in increasing order in the table.

Solution : 


#include<stdio.h>
int power(int,int);
void main()
{

     char keyword[][15]={"char","do","extern","if","return","static","union","while","case","default","enum","goto","register","

Friday 18 August 2017

Disable Enable Datagrid column Editing

You can  disable to edit some column and make other read only from DataGridview in Windows Programming, For some special circumstances like on a shop sales bill editing . A user need to change product, quantity and rate but not Total . Total will be calculated by product of rate and quantity. If Total pr

CCC Syllabus



COURSE ON COMPUTER CONCEPTS (CCC)


OBJECTIVE:


The course is designed to equip a person to use computers for professional as well as day to day use. It provides theoretical background as well as in depth knowledge of Software/ packages. After completing the course the incumbent will be digitally literate and will be able to:

Thursday 17 August 2017

Power of number using function

Q: Write a ‘C’ program to find the power of number using function.?

Solution :


#include<stdio.h>
int power(int,int);
void main()
{
     int n,p;
     printf("Enter number>> ");
     scanf("%d",&n);

Wednesday 16 August 2017

Word Count

Q : Write a ‘C’ program to count number of words in a string.

Solution :



#include<stdio.h>
void main()
{
      char str[50];

Sunday 13 August 2017

Jquery HTML Tag Select


Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero.

Jquery Name Selector


You can select html control by its name. Selecting a single control or group of controls is become important in some special web operation requirement. I am going to demonstrate you to select more than one checkbox for payment which may be useful to design some payment related website.


Roll Name Subject
101 Sona Hindi
102 Mona Art
103 Sita Maths
104 Anita English
105 Babita Hindi


Code : 



<html>
<head>