Quiz on C Programming

Quiz on C Programming

University

12 Qs

quiz-placeholder

Similar activities

PSPD NOOBS

PSPD NOOBS

University

15 Qs

Review Ciclo 1

Review Ciclo 1

University

11 Qs

Understanding the Evolution of Programming Languages-Quiz

Understanding the Evolution of Programming Languages-Quiz

University

16 Qs

C Language Quiz-1

C Language Quiz-1

University - Professional Development

15 Qs

BOP-1

BOP-1

University - Professional Development

15 Qs

GDSC

GDSC

University

10 Qs

CO - 1 Quiz - 1-DB_Python Basic

CO - 1 Quiz - 1-DB_Python Basic

10th Grade - University

15 Qs

Python Basics

Python Basics

KG - University

15 Qs

Quiz on C Programming

Quiz on C Programming

Assessment

Quiz

Computers

University

Medium

Created by

Rashmi Upadhyay

Used 3+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Who is the father of C Language?

Bjarne Stroustrup

James A. Gosling

Dennis Ritchie

Dr. E.F. Codd

Answer explanation

Dennis Ritchie is recognized as the father of the C Language, having developed it in the early 1970s at Bell Labs. Bjarne Stroustrup created C++, James A. Gosling is known for Java, and Dr. E.F. Codd is famous for relational databases.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why is C considered a foundational programming language?

It was the first language to support object-oriented programming.

It provides low-level access to memory and system resources.

It was developed as a successor to the A language.

It is the only language that can be used for system programming.

It has a simple syntax that is easy for beginners to learn.

Answer explanation

C is considered foundational because it provides low-level access to memory and system resources, allowing programmers to write efficient code and interact closely with hardware, which is essential for system programming.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is an invalid variable name in C?

myVariable

2ndVariable

_variable

varName

var-name

Answer explanation

In C, variable names cannot start with a digit. Therefore, '2ndVariable' is invalid. The other options are valid as they start with a letter or underscore.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following are C preprocessors?

##define

#define

$define

all of the mentioned

Answer explanation

For a 16-bit computer, integers are typically represented using 16 bits, allowing for a range from -32768 to 32767. This is the correct choice, as the other options either exceed or do not fit within this range.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Standard ANSI C recognizes number of keywords?

30

32

24

36

Answer explanation

Standard ANSI C recognizes 32 keywords, which include control structures, data types, and other essential components of the language. Therefore, the correct answer is 32.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is sizeof in 'C' ?

Operator

Reserved Keyword

Both (a) and (b)

Function

Answer explanation

In C, 'sizeof' is an operator that returns the size of a data type or object in bytes. It is also considered a reserved keyword in the language, making 'Both (a) and (b)' the correct choice.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A C variable cannot start with

Number

special symbol other than underscore

both a and b

alphabet

Answer explanation

A C variable cannot start with a number or a special symbol other than an underscore. Therefore, the correct answer is 'both a and b', as both conditions are not allowed for variable names.

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?