C Basic_Questions_1

C Basic_Questions_1

University

10 Qs

quiz-placeholder

Similar activities

TIK-REKAM MEDIS

TIK-REKAM MEDIS

University

10 Qs

Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

14 Qs

ITPC 102 2E NORMANS PRINCIPLES RECAP

ITPC 102 2E NORMANS PRINCIPLES RECAP

University

15 Qs

2025_PE_U4_act19

2025_PE_U4_act19

University

10 Qs

Refresh Python

Refresh Python

University

10 Qs

QUIZ 2 PLC

QUIZ 2 PLC

10th Grade - University

10 Qs

IMSD_Week-1_CSE-1

IMSD_Week-1_CSE-1

University

10 Qs

CLC Lesson 7 Quiz

CLC Lesson 7 Quiz

University

12 Qs

C Basic_Questions_1

C Basic_Questions_1

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

Dinesh Kushwaha

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the C code?

Hello World! x;

Hello World! followed by a junk value

Compile time error

Hello World!

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The format identifier ‘%i’ is also used for _____ data type.


char

int

float


double

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

ariable can be of any length

4.

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;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following C code?

Compile time error

Hello World! 34

Hello World! 1000

Hello World! followed by a junk value

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will happen if the following C code is executed?

It will cause a compile-time error

It will cause a run-time error

It will run without any error and prints 3

It will experience infinite looping

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Directives are translated by the

  1. Pre-processor

  1. Compiler

  1. Linker

  1. Editor

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?