ByteBattle2.0(C)

ByteBattle2.0(C)

University

30 Qs

quiz-placeholder

Similar activities

Fluid Mechanics Quiz

Fluid Mechanics Quiz

University

25 Qs

Instrumentation - Chap I & II

Instrumentation - Chap I & II

University

25 Qs

DBMS Quiz

DBMS Quiz

University

25 Qs

Programming Lab Quiz

Programming Lab Quiz

University

25 Qs

CUDA C/C++ Basics Quiz

CUDA C/C++ Basics Quiz

University

25 Qs

FT-1

FT-1

University

30 Qs

S&S CIE-III: MCQ on Unit 5 and 6_ AY 2024-25 Term II

S&S CIE-III: MCQ on Unit 5 and 6_ AY 2024-25 Term II

University

26 Qs

SCAVENGER

SCAVENGER

University

25 Qs

 ByteBattle2.0(C)

ByteBattle2.0(C)

Assessment

Quiz

Engineering

University

Easy

Created by

Shiva Gaur

Used 13+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the extension of C programming files?

.txt

.c

.cpp

.java

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which function is used to display output in C?

print()

System.out.println()

cout

printf()

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which symbol is used to end a statement in C?

:

.

;

,

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a valid variable declaration in C?

int 1num

int num1;

int #num;

int num ;

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct syntax for a main function in C?

int main()

void main()

main()

public main()

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will the following code print? printf("Hello, World!");

Hello

World

Hello, World!

Error

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a valid comment in C?

# This is a comment

// This is a comment

/* This is a comment */

Both b) and c)

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?