Quiz on C Programming

Quiz on C Programming

University

12 Qs

quiz-placeholder

Similar activities

Examen Tema 1 - Simulación

Examen Tema 1 - Simulación

University

11 Qs

Vocabulary Quiz - Computer - 01

Vocabulary Quiz - Computer - 01

12th Grade - University

10 Qs

Decrypt it! Level 1

Decrypt it! Level 1

University

10 Qs

C Wrapup Quiz Deutsch

C Wrapup Quiz Deutsch

University

12 Qs

Data Warehouse - Foundations

Data Warehouse - Foundations

University

10 Qs

GIS Unit III

GIS Unit III

University

15 Qs

Robotics Prelim

Robotics Prelim

University

15 Qs

AB1401 Case Study: Facebook

AB1401 Case Study: Facebook

University

12 Qs

Quiz on C Programming

Quiz on C Programming

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Rashmi Upadhyay

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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.

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?