C Programming

C Programming

5th - 12th Grade

31 Qs

quiz-placeholder

Similar activities

Practice AP CSA: Unit 3 - Boolean Expressions and If Statements

Practice AP CSA: Unit 3 - Boolean Expressions and If Statements

10th - 12th Grade

27 Qs

PENILAIAN HARIAN 1 - PD (OPERATOR ARITMETIKA DAN LOGIKA)

PENILAIAN HARIAN 1 - PD (OPERATOR ARITMETIKA DAN LOGIKA)

10th Grade

30 Qs

C pro test

C pro test

8th Grade - Professional Development

35 Qs

BCA_Departmental_Competition_2022

BCA_Departmental_Competition_2022

12th Grade - University

30 Qs

Ulangan Harian 1 (struktur kontrol)

Ulangan Harian 1 (struktur kontrol)

10th Grade

35 Qs

Soal Pemrograman Bahasa C

Soal Pemrograman Bahasa C

9th Grade

35 Qs

Year 8 Python

Year 8 Python

8th Grade

29 Qs

Basic of Programming Dev C++

Basic of Programming Dev C++

1st - 12th Grade

30 Qs

C Programming

C Programming

Assessment

Quiz

Computers

5th - 12th Grade

Medium

Created by

Aarya Aarya

Used 12+ times

FREE Resource

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen when the following code is executed?

void main()

{

printf("MIET");

main();

}

Wrong statement

It will keep on printing MIET

It will print MIET once

None of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result after execution of the following code if a is 10, b is 5, and c is 10?

if ((a > b) && (a <= c))

a = a + 1;

else

c = c+1;

a = 10, c = 10

a = 11, c = 10

a = 10, c = 11

a = 11, c = 11

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the result of 'num' variable after execution of the following statements?

int num = 58;

num % = 11;

3

5

8

11

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

#include <stdio.h>

void main()

{

int x = 5;

if (x < 1)

printf("hello");

if (x == 5)

printf("hi");

else

printf("no");

}

hi

hello

no

error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

#include <stdio.h>

int main()

{

int x = 0;

if (x == 1)

if (x == 0)

printf("inside if\n");

else

printf("inside else if\n");

else

printf("inside else\n");

}

inside if

inside else if

inside else

compile time error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The value of i after the execution of the following segment is

i = 2;

for( i=0; i>10; i=i+1);

1

2

0

11

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

C language developed at _____?

AT & T's Bell Laboratories of USA in 1972

AT & T's Bell Laboratories of USA in 1970

Sun Microsystems in 1973

Cambridge University in 1972

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?