Search Header Logo

C Progamming - 1

Authored by Amit Khomane

Computers

University

Used 3+ times

C Progamming - 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Who is the father of C language?

Steve Jobs

James Gosling

Dennis Ritchie

Rasmus Lerdorf

Answer explanation

Dennis Ritchie is the father of C Programming Language. C programming language was developed in 1972 at American Telephone & Telegraph Bell Laboratories of USA.

2.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

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

int number;

float rate;

int variable_count;

int $main;

Answer explanation

Since only underscore and no other special character is allowed in a variable name, it results in an error.

3.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

All keywords in C are in ____________

LowerCase letters

UpperCase letters

CamelCase letters

None of the mentioned

4.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Which of the following is true for variable names in C?

They can contain alphanumeric characters as well as special characters

It is not an error to declare a variable to be one of the keywords(like goto, static)

Variable names cannot start with a digit

Variable can be of any length

5.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Which is valid C expression?

int my_num = 100,000;

int my_num = 100000;

int my num = 1000;

int $my_num = 10000;

Answer explanation

Space, comma and $ cannot be used in a variable name.

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?