Search Header Logo

CSE-QUIZ-02

Authored by Priom Saha

Mathematics

University

Used 3+ times

CSE-QUIZ-02
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Who developed the C programming language?

  • A) James Gosling

  • B) Dennis Ritchie

  • C) Bjarne Stroustrup

  • D) Ken Thompson

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the standard library in C used for input and output functions?

  • A) stdlib.h

  • B) stdio.h

  • C) math.h

  • D) string.h

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the output of the following code?

#include <stdio.h>

int main(void) {

printf("Hello, World!\n");

return 0;

}

  • A) Hello, World

  • B) Hello World!

  • C) Error

  • D) Hello, World!

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What does the main function return in a successful program execution?

  • A) 0

  • B) 1

  • C) -1

  • D) It doesn’t return anything

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following symbols is used to indicate the end of a statement in C?

  • A) .

  • B) ;

  • C) :

  • D) ,

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How do you declare an integer variable num in C?

  • A) int num

  • B) integer num;

  • C) num int;

  • D) int num;

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does %d represent in the printf and scanf functions?

  • A) A placeholder for a decimal number (integer)

  • B) A placeholder for a floating-point number

  • C) A placeholder for a character

  • D) A placeholder for a string

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?