C Basic_Questions_1

C Basic_Questions_1

University

10 Qs

quiz-placeholder

Similar activities

Python Programming Quiz

Python Programming Quiz

University

13 Qs

Computer Programming I Finals

Computer Programming I Finals

University

11 Qs

Introduction To Programming - Lesson Exception Handling

Introduction To Programming - Lesson Exception Handling

11th Grade - University

13 Qs

Code2Duo

Code2Duo

University

15 Qs

NESTED-IF, FOR & WHILE LOOP By handawnz

NESTED-IF, FOR & WHILE LOOP By handawnz

University

12 Qs

Quiz Pemrograman Arduino

Quiz Pemrograman Arduino

10th Grade - University

15 Qs

Refresh Python

Refresh Python

University

10 Qs

CMDP2063 Unix and C Programming

CMDP2063 Unix and C Programming

University

15 Qs

C Basic_Questions_1

C Basic_Questions_1

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Dinesh Kushwaha

Used 5+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?