Search Header Logo

Basic C language quiz

Authored by vijetha c

English

University

Used 4+ times

Basic C language quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who invented c language

James Gosling

Dennis Ritchie

Bjarne Stroustrup

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid C variable name?

int a;

float b1;

char 2b;

double a;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is valid C expression?

int my_num = 100,000;

int my_num = 100000;

int my num = 1000;

int $my_num = 10000;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an example of iteration in C?

for

do-while

while

All the mentioned above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Symbol used for Single Line Comment

..

**

//

/*

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following variable cannot be used by switch-case statement?

char

int

float

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The Given expression represent (exp1 ? exp2 : exp3;)

Unary operator

Conditional operator

Arithmetic operator

Relational operator

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?