C Progamming - 1

C Progamming - 1

University

5 Qs

quiz-placeholder

Similar activities

C Programming Quiz-1

C Programming Quiz-1

University

10 Qs

CSC301 Chapter 2

CSC301 Chapter 2

University

10 Qs

C++ Array Quick Review

C++ Array Quick Review

University

10 Qs

Expression in C Programming

Expression in C Programming

University

10 Qs

C Programming Basics -  002

C Programming Basics - 002

University

10 Qs

Cloud Lab

Cloud Lab

University

6 Qs

C++ Identifiers and Constants Quiz

C++ Identifiers and Constants Quiz

University

10 Qs

Programming in C Test-1

Programming in C Test-1

University

10 Qs

C Progamming - 1

C Progamming - 1

Assessment

Quiz

Computers

University

Easy

Created by

Amit Khomane

Used 3+ times

FREE Resource

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.