ad
Tuesday, February 25, 2025
C Program Print Right Half Pyramid pattern
#include<stdio.h>
Q.1] C Program Print Right Half Pyramid pattern
Q.1] C Program Print Right Half Pyramid pattern
Monday, February 24, 2025
C Program to Check Whether a People is Eligible to Vote or Not
C Program
Q.1] C Program to Check Whether a People is Eligible to Vote or Not
Example :-
Q.1 ]C Program to Check Whether a People is Eligible to Vote or Not
Program Output :- Run 1 time
Program Output :- Run 2 Time
Program Output :- Run 3 Time
Related Post :-
type of css
php syntax
c program to check number prime or not
Sunday, February 23, 2025
C Program To Print Day of Week using If else case in switch case
c program
Q. ] C Program To Print Day of Week using switch case
Example :-
#include<stdio.h>
#include<conio.h>
void main()
{
int num;
clrscr();
printf("enter a number between 1 to 7 :-");
num=getchar ()-'0';
if (num>=1&& num<=7)
{
switch(num)
{
case 1:
printf("monday \n");
break;
case 2:
printf("tuesday \n");
break;
case 3:
printf("wednesday \n");
break;
case 4:
printf("Thursday \n");
break;
case 5:
printf("Friday \n");
break;
case 6:
printf("Saturday \n");
break;
case 7:
printf("Sunday \n");
break;}
}
else{
printf("enter number between 1 to 7");
}
getch();
}
Q. ] C Program To Print Day of Week using switch case
Output :-
Enter a number between 1 ro 7 :- 5
Friday
Related post :-
javascript do while loop
Project navigation bar page
php number increasing reverse pyramid
Saturday, February 22, 2025
c program to check number is even or odd use if else
c program
Examples :-
- ] c program to check number is even or odd
Output
enter a number
7 is Odd
- ] c program to check number is even or odd
Output
enter a number
2 is even
Related post :-
c program add two integer number
left pascal star pattern in php
Friday, February 21, 2025
C Program to Check Number is prime or Not prime
C Program
1] C Program to Check Number is prime or Not prime
Examples :-
C Program to Check Number is prime or Not prime
Output
enter a positive integer 133
133 is not prime number
C Program to Check Number is prime or Not prime
Output
enter a positive integer 61
61 prime number
Thursday, February 20, 2025
C Program to Add Two Integers number
C Program
1] C Program to Add Two Integers number
Examples :-
#include<stdio.h>
#include<conio.h>
int main()
{
int V, W, sum =0 ;
printf("Enter Two number integer:");
scanf( "%d%d", &V, &W );
sum=V+W;
printf( "sum %d",sum );
getch();
return 0;
}
C Program to Add Two Integers number
Output
Enter Two number integer :
5
5
Sum =10
2] C Program to Add Three Integers number
Examples :-
#include<stdio.h>
#include<conio.h>
int main()
{
int V,W,sum =0;
printf("Enter Two number integer:");
scanf( "%d%d", &V,&W,&X );
sum=V+W+X;
printf( "sum %d",sum );
getch();
return 0;
}
C Program to Add Three Integers number
Output
Enter Two number integer :
5
5
5
Sum =15
Friday, February 14, 2025
What is the C language
What is the C language
1] full form c stands for computer programming language .
2] C
language developed and father by Dennis Ritchie at
the Bell Laboratories in 1972 .
3] C
is widely use programming language they are important for the c is low level
programming efficiency simplicity and flexibly,
portability influence, system and application software embedded system,
large ecosystem, interfacing with hardware is programming language .
4] C
Is a general-purpose programming language.
5]
C is middle level programming language.
6]
Used c language developing computer software, system programming, application,
games such as windows and complicated programs such oracle database, python,
git, interpreter
7] C
is an imperative procedural language supporting structured programming.
8] C
language is a procedural and general-purpose programming language.
9] C
is portable assembly language. designed to ease to implementation of compiler
the produce high quality code
10] C
uses t0 blocks to separate pieces of code that performing different tasks that
helps easier clean code and easier to understand and easy to
find mistake of program
11] C allows low level memory access provide simple and clean structure.
C Program Structure
#include<stdio.h>
#include<conio.h>
int main()
{
printf(" Hi Friend");
return 0;
}
Output :-
Hi Friend
Related Post :-
php echo function
Creating Sample Customer order Form Using HTML
css column gap property
Sunday, February 9, 2025
Top 10 html MCQ with Answers
Top 10 HTML MCQ With Answers
1] CSS full form?
- color and style sheets
- Cascade style sheets
- Cascading style sheets
- None of the above
Answer: 3) Cascading style sheets
2] Which of the following is the correct syntax for external style sheet?
- <style src="example.css>
- <style src= example.css>
- <stylesheet> example.css </stylesheet>
- <link rel="stylesheet"
type="text/css" href="main.css">
Answer: 4)
<link rel="stylesheet" type="text/css" href="main.css"
3] The property in CSS use to change the background color of element ?
- bgcolor
- background-color
- color
- All of the above
Answer: (c)
background-color
4] The property in CSS use to change the text color of element
- bgcolor
- background-color
- color
- All of the above
Answer: 3) color
5) The CSS property use to control the element
font-size
- text-size
- text-style
- font-size
- None of the above
Answer: 3 )
font-size
6] The HTML attribute use to define the inline styles
- styles
- style
- class
- None of the above
Answer: 2)
style
7] The HTML attribute use to define the internal stylesheet
- <style>
- style
- <link>
- <script>
Answer: (a)
<style>
8] Which of the following CSS property is use to set the background image of element?
- background-attachment
- background- color
- background-image
- None of the above
Answer: 3)
background-image
9] How to create an unordered list in HTML?
- <ul>
- <li>
- <ol>
- <i>
Answer: 1) <ul>
10] Which character is use to represent the closing of a tag HTML?
- \
- !
- /
- \\
Answer: 3) /
Related Post :-
how to create login form
php program to print hear star pattern
css border property
Saturday, February 8, 2025
Top 15 html MCQ with Answers
Top 15 HTML MCQ With Answers
1] What is the purpose of the <a>
A) To insert images
B) To define a paragraph
C) To create a hyperlink
D) To create headings
Answer: C) To create a hyperlink
2] <a> tag specifies URL of the link destination
A) link
B) src
C) url
D) href
Answer: D) href
3] Which of the NOT a valid target value for the <a> tag
A) _parent
B) _top
C) _newtab
D) _self
Answer: C) _newtab
4] Which tag is commonly used with <a> tag to define navigation link?
A) <nav>
B) <section>
C) <header>
D) <footer>
Answer: A) <nav>
5] What attribute is used to group radio buttons
A) value
B) group
C) name
D) id
Answer: C) name
6] How can you hide a radio button but functional?
A) display: none;
B) visibility: hidden;
C) opacity: 0;
D) Both A and C
Answer: D) Both A and C
7] HTML element for creating a dropdown list?
A) <dropdown>
B) <option>
C)<select>
D) <list>
Answer: C) <select>
8] Which tag is usedto define individual items inside a dropdown
A) <list>
B) <option>
C) <dropdown-item>
D) <item>
Answer: B) <option>
9] Which attribute defines the default value submitted with a dropdown LIST ?
A) value
B) default
C) selected
D) name
Answer: A) value
10] assign a name to a dropdown in a form?
A) Use id="dropdown"
B) Use name="dropdown"
C) Use label="dropdown"
D) Use value="dropdown"
Answer: B) Use name="dropdown"
11] How can you group related options in a dropdown
A) Using <group>
B) Using <fieldset>
C) Using <optgroup>
D) Using <category>
Answer: C) Using <optgroup>
12] How can you create a dropdown with a custom button instead of a <select> ?
A) Using <button> and JavaScript
B) Using <input type="dropdown">
C) Using <menu> and <option>
D) Using <drop-button>
Answer: A) Using <button> and JavaScript
13] How can you prevent use from selecting a particular option dropdown?
A) Add disabled to the <option>
B) Add hidden to the <option>
C) Add readonly to the <option>
D) Both A and B
Answer: D) Both A and B
14] HTML tag to create a file upload input?
A) <upload>
B) <file>
C) <input type="file">
D) <input type="upload">
Answer: C) <input type="file">
15] Which attribute is required for selecting multiple files in upload field?
A) multiple
B) multiselect
C) select="multiple"
D) multi-file
Answer: A) multiple
Related Post :-
php if else statements
php program to print alphabet pattern U
Friday, February 7, 2025
Top 20 html MCQ with Answers
Top 20 HTML MCQ With Answers
1] <form> tag specifies where to send form data
Answer: A) action
2] <form> tag specifies how form data should be sent?
Answer: C) method
3] What are the valid value for the method attribute
Answer: C) get, post
3] default method if the method attribute is not specified?
Answer: C) GET
4] Which input type is use for passwords?
Answer: B) password
5] Which element is used to create a dropdown menu in a form?
Answer: B) <select>
6] Which attribute makes an input field required?
Answer: A) required
7] What input type allow users to select multiple options?
Answer: A) checkbox
8] What does the name attribute in an input tag
Answer: C) Identifies the input when sending data
9] create a multi-line text input field
Answer: A) <textarea>
11] Which tag groups form element together?
Answer: B) <fieldset>
12] What does the <legend>
Answer: C) Provides a caption for <fieldset>
13] Which tag is use to define a label for an input field
Answer: C) <label>
15] How do you associate a label with an input field
Answer: C) Both A and B
16] input type restricts users to selecting a date
Answer: B) date
17] Which attribute sets a maximum value for an input field
Answer: A) max
18] input type is used for numeric input
Answer: A) number
19] What does the <ol> tag stand
A) Ordered Listing
B) Ordered Link
C) Ordered List
D) Online List
Answer: C) Ordered List
20] Which tag is use to define an item inside an ordered list
A) <item>
B) <ol>
C) <li>
D) <ul>
Answer: C) <li>
Wednesday, February 5, 2025
Top 10 HTML MCQ With Answers part(10)