Class 6  >  C Programming for Beginners  >  Test: C Loops - 1 Download as PDF

Test: C Loops - 1


Test Description

10 Questions MCQ Test C Programming for Beginners | Test: C Loops - 1

Test: C Loops - 1 for Class 6 2023 is part of C Programming for Beginners preparation. The Test: C Loops - 1 questions and answers have been prepared according to the Class 6 exam syllabus.The Test: C Loops - 1 MCQs are made for Class 6 2023 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: C Loops - 1 below.
Solutions of Test: C Loops - 1 questions in English are available as part of our C Programming for Beginners for Class 6 & Test: C Loops - 1 solutions in Hindi for C Programming for Beginners course. Download more important topics, notes, lectures and mock test series for Class 6 Exam by signing up for free. Attempt Test: C Loops - 1 | 10 questions in 10 minutes | Mock test for Class 6 preparation | Free important questions MCQ to study C Programming for Beginners for Class 6 Exam | Download free PDF with solutions
1 Crore+ students have signed up on EduRev. Have you?
Test: C Loops - 1 - Question 1

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;
}

Detailed Solution for Test: C Loops - 1 - Question 1

Between 16 - 18, continue statement skips all other statements below it. So a will not be printed during that time.
15 printed
16 not printed
17 not printed
18 not printed
19 printed
20 printed

Test: C Loops - 1 - Question 2

Choose a correct statement about C language break; statement.

Test: C Loops - 1 - Question 3

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;
}

Detailed Solution for Test: C Loops - 1 - Question 3

a++ first assigns 10 to b. Next a is incremented separately. ++a increments from 11 to 12. Final ++a value is assigned to the left side variable C.

Test: C Loops - 1 - Question 4

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;
}

Detailed Solution for Test: C Loops - 1 - Question 4

There are no keywords like AND / OR in C language. Logical OR is represented with two Pipes ||. Logical AND is represented with two Ampersands &&.

Test: C Loops - 1 - Question 5

Expand or Abbreviate ASCII with regard to C Language.

Detailed Solution for Test: C Loops - 1 - Question 5

There were only 128 Characters with 7 Bits in Original ASCII specification. Present character standard in all modern programming languages is UNICODE which covers all languages, Emojis and other special symbols all over the world.

Test: C Loops - 1 - Question 6

Choose facts about continue; statement is C Language.

Test: C Loops - 1 - Question 7

Choose a correct statement about C break; statement.?

Test: C Loops - 1 - Question 8

Choose a correct C Statement regarding for loop.
for(; ;);

Detailed Solution for Test: C Loops - 1 - Question 8

We are not specifying condition to exit the loop. Eg. for(a=0;a<10;a++)

Test: C Loops - 1 - Question 9

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;
}

Detailed Solution for Test: C Loops - 1 - Question 9

(++a < 4) first increments and compares afterwards. (b++ < 4) first compares and increments afterwards.

Test: C Loops - 1 - Question 10

What are C ASCII character ranges.?

Detailed Solution for Test: C Loops - 1 - Question 10

All remaining characters are special characters or symbols in C Language. 0 to 47, 58 to 64, 91 to 96, 123 to 127.

10 videos|13 docs|15 tests
Use Code STAYHOME200 and get INR 200 additional OFF
Use Coupon Code
Information about Test: C Loops - 1 Page
In this test you can find the Exam questions for Test: C Loops - 1 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: C Loops - 1, EduRev gives you an ample number of Online tests for practice