Brocode questions
Brocode questions
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 ?
Q3. Write a C program to swap two numbers without using the 3rd variable ?
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 ?
Time : 5 Minutes
Point : 5
*
* *
* * *
* * * *
* * * * *
* * * * * *
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 :
*
**
*
*
*
****
*
*
*
*
*
******
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: