0% found this document useful (0 votes)
4 views

Brocode questions

Uploaded by

munnugaming48
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Brocode questions

Uploaded by

munnugaming48
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

NAME: ROLL NO:

ROUND 1
Q1. Write a C program to print pattern shown below:

* * * * *
* * * *
* * *
* *
*

Q2. What is the equivalent code of the following statement in WHILE LOOP format in C
program ?

for (a=1; a<=100; a++)

printf ("%d\n", a * a);

Q3. Write a C program to swap two numbers without using the 3rd variable ?

NAME: ROLL NO:

ROUND 1
Q1. Write a C program to print pattern shown below:

* * * * *
* * * *
* * *
* *
*

Q2. What is the equivalent code of the following statement in WHILE LOOP format in C
program ?

for (a=1; a<=100; a++)

printf ("%d\n", a * a);


Q3. Write a C program to swap two numbers without using the 3rd variable ?
Extra Questions For Round 1 :

EQ1. Write a C program to print pattern shown below

Time : 5 Minutes
Point : 5

*
* *
* * *
* * * *
* * * * *
* * * * * *

EQ2. Write a C program to print Pattern Shown Below ?

B
BR
BRO
BROT
BROTO
BROTOT
BROTOTY
BROTOTYP
BROTOTYPE
NAME: ROLL:

ROUND 2
Q1. Write a C program to find a missing number in an array of numbers between 1 to 10 ?

Q2. Sort the array of random numbers in ascending order and print array elements in the given
pattern format.

XXXXX
XX
XX
XXXXX
XXXXX
XXX
XXX
XXXXX
XXXXX
XXXXX

Q3. Write a c program to print kth smallest and largest element in an array?

NAME: ROLL:

ROUND 2
Q1. Write a C program to find a missing number in an array of numbers between 1 to 10 ?

Q2. Sort the array of random numbers in ascending order and print array elements in the given
pattern format.

XXXXX
XX
XX
XXXXX
XXXXX
XXX
XXX
XXXXX
XXXXX
XXXXX

Q3. Write a c program to print kth smallest and largest element in an array?
Extra questions for round 2 :

R2E1. Write a program to print pattern ?

*
**
*
*
*
****
*
*
*
*
*
******
R2E2. Write a program in C to print the following pattern.?

$*

*$*

$*$*

*$*$*
NAME: ROLL:

ROUND 3
R3Q1. Write a c program to print the pattern with specifications mentioned below

Time: 20
Points : 10 points

● size must be N X M. ( N is an odd natural number between 5 to 101, and M is 3 times N.)
● The design should have 'WELCOME' written in the center.
● The design pattern should only use | , . and - characters.

Sample Pattern 1 :

N = 11 M = 33

Sample Pattern 2 :

N=7 M=21
ROUND 3
Name: Roll NO:

You might also like