TOTAL QS = 10Time [ 00 : 00 : 00 ]
00:00:00

C Programming Basics Tutorial - Loops FOR While Do While - Online Test 2

Instructions

Total Questions: 10

Total Minutes: 10

This ExamTray Free Online Exam tests your C Programming Skills on C Loops or Iterations with FOR, WHILE and DO WHILE Syntax. Know about continue and break statements. Exam displays Questions and Answers after finishing. Easily Attend Competitive Exams and Job Interview Questions.

Go through C Theory Notes on Loops before attempting this test.

All the Best

Challenge SCORE

0 / 10

Take This Exam
1) Choose facts about continue; statement is C Language.
2) What is the output of C Program.?
int main()
{
    int a=14;
    
    while(a<20)
    {
        ++a;
        if(a>=16 && a<=18)
        {
            continue;
        }
        printf("%d ", a);
       
    }

    return 0;
}
3) Choose a correct statement about C break; statement.?
4) Choose a correct statement about C language break; statement.
5) Choose a correct C Statement regarding for loop.
for(; ;);
6) What is the output of C Program.?
int main()
{
    int a=10, b, c;
    b=a++;
    c=++a;
    printf("%d %d %d", a, b, c);

    return 0;
}
7) What is the output of C Program.?
int main()
{
    int a=0, b=0;
    while(++a < 4)
        printf("%d ", a);

    while(b++ < 4)
        printf("%d ", b);

    return 0;
}
8) What is the output of C Program.?
int main()
{
    int a=10,b=20;
    
    if(a==9 AND b==20)
    {
        printf("Hurray..");
    }
    
    if(a==10 OR b==21)
    {
        printf("Theatre");
    }

    return 0;
}
9) What are C ASCII character ranges.?
10) Expand or Abbreviate ASCII with regard to C Language.
Certification Group ID
3858

Open Certification Helper Popup Reset Popup